Skip to content
This repository was archived by the owner on Oct 12, 2021. It is now read-only.

Commit ec12a12

Browse files
committed
Docker cleanup
2 parents 3a46db0 + 61519e9 commit ec12a12

File tree

11 files changed

+493
-329
lines changed

11 files changed

+493
-329
lines changed

api/build.sh

100644100755
File mode changed.

api/scripts/make-build.sh

+16-7
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,25 @@
11
#!/bin/bash
22

3-
# Create a fresh dist directory
3+
# Remove the existing build directory and create a fresh one
44
rm -rf ../dist && mkdir ../dist
55

6-
# Transpile src to JavaScript
7-
npx babel ../src --out-dir ../dist
6+
# Transpile ES6 to JavaScript
7+
npx babel ../src --out-dir ../dist --ignore node_modules
88

9-
# Copy pm2 runtime file
10-
cp ../process_prod.json ../dist/process_prod.json
9+
# Copy build files to fresh /dist directory
10+
cp ../src/package.json ../dist/package.json
11+
12+
# Copy build files to fresh /dist directory
13+
cp ../src/workers/package.json ../dist/workers/package.json
1114

1215
# Copy build files to fresh /dist directory
13-
cp ../package.json ../dist/package.json
16+
cp process_prod.json ../dist/process_prod.json
17+
18+
# Copy email files to fresh /dist directory
19+
cp -R ../src/utils/email/templates ../dist/utils/email
20+
21+
# Install node modules via yarn
22+
cd ../dist && yarn install --production --modules-folder node_modules
1423

1524
# Install node modules via yarn
16-
cd ../dist && yarn install --modules-folder node_modules
25+
cd workers && yarn install --production --modules-folder node_modules

api/src/commands/winds.js

+7-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,13 @@
22
import program from 'commander';
33
import logger from '../utils/logger';
44

5-
import { version } from '../../../app/package.json';
5+
let version;
6+
7+
if (process.env.DOCKER) {
8+
version = { version: 'DOCKER' };
9+
} else {
10+
version = require('../../../app/package.json');
11+
}
612

713
program
814
.version(version)

api/src/controllers/health.js

-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import Queue from 'bull';
99
import logger from '../utils/logger';
1010

1111
let version;
12-
1312
if (process.env.DOCKER) {
1413
version = 'DOCKER';
1514
} else {

app/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "Winds",
3-
"version": "2.1.172",
3+
"version": "2.1.173",
44
"description": "Winds is a beatiful open source RSS Reader and Podcast app. Wind 2.0 was created using React/Redux/Node.\nFor more information, visit https://getstream.io/winds/.\nTo contribute or run your own version head over to Github: https://github.com/getstream/winds",
55
"private": true,
66
"author": "Winds Team <[email protected]>",

app/src/components/ArticleListItem.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ class ArticleListItem extends React.Component {
5252
}}
5353
>
5454
{this.props.pinned ? (
55-
<i className="fa fa-bookmark" />
55+
<i className="fas fa-bookmark" />
5656
) : (
5757
<i className="far fa-bookmark" />
5858
)}

app/src/components/RSSArticle.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ class RSSArticle extends React.Component {
217217
}}
218218
>
219219
{this.props.pinned ? (
220-
<i className="fa fa-bookmark" />
220+
<i className="fas fa-bookmark" />
221221
) : (
222222
<i className="far fa-bookmark" />
223223
)}

app/src/styles/components/_item-info.scss

+4
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@
2424
color: $batman;
2525
font-size: 1.5em;
2626
font-weight: normal;
27+
28+
&.fa-bookmark.fas {
29+
font-weight: 900;
30+
}
2731
}
2832

2933
.muted {

app/src/styles/global.css

+6-2
Original file line numberDiff line numberDiff line change
@@ -187,11 +187,13 @@ textarea {
187187
top: 0;
188188
z-index: 100000; }
189189

190-
.delete-account-confirmation-popover .message {
190+
.delete-account-confirmation-popover .message,
191+
.save-account-error-popover .message {
191192
font-size: 0.9em;
192193
font-weight: lighter; }
193194

194-
.delete-account-confirmation-popover .menu-item {
195+
.delete-account-confirmation-popover .menu-item,
196+
.save-account-error-popover .menu-item {
195197
cursor: pointer; }
196198

197199
label {
@@ -1073,6 +1075,8 @@ a.column-header:hover, .column-header:hover {
10731075
color: #000;
10741076
font-size: 1.5em;
10751077
font-weight: normal; }
1078+
.item-info i.fa-bookmark.fas {
1079+
font-weight: 900; }
10761080
.item-info .muted {
10771081
color: #aaa; }
10781082
.item-info a {

0 commit comments

Comments
 (0)