Skip to content

Commit

Permalink
Build only apps component via docker (polkadot-js#2231)
Browse files Browse the repository at this point in the history
  • Loading branch information
jacogr authored Feb 4, 2020
1 parent ff8675a commit fdd66e7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ COPY . .

RUN npm install yarn -g
RUN yarn
RUN NODE_ENV=production yarn build
RUN NODE_ENV=production yarn build:www

FROM ubuntu:18.04

Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,10 @@
},
"scripts": {
"analyze": "yarn run build && cd packages/apps && yarn run source-map-explorer build/main.*.js",
"build": "yarn run build:code && yarn run build:i18n",
"build": "yarn run build:i18n && yarn run build:code",
"build:code": "NODE_ENV=production polkadot-dev-build-ts",
"build:i18n": "i18next-scanner --config i18next-scanner.config.js",
"build:www": "rm -rf packages/apps/build && mkdir -p packages/apps/build && yarn run build:i18n && cd packages/apps && NODE_ENV=production webpack --config webpack.config.js",
"docs": "echo \"skipping docs\"",
"clean": "polkadot-dev-clean-build",
"clean:i18n": "rm -rf packages/apps/public/locales/en && mkdir -p packages/apps/public/locales/en",
Expand Down
2 changes: 1 addition & 1 deletion packages/app-tech-comm/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export default function TechCommApp ({ basePath, className }: Props): React.Reac
},
{
name: 'proposals',
text: t('Proposals ({{count}})', { replace: { count: proposals?.length || 0 } })
text: t('Proposals ({{count}})', { replace: { count: (proposals && proposals.length) || 0 } })
}
], [proposals, t]);

Expand Down

0 comments on commit fdd66e7

Please sign in to comment.