This commit is contained in:
Stuart Colville 2016-05-30 18:51:36 +01:00 коммит произвёл Mark Striemer
Родитель 2537150a2d
Коммит 92ab0125ee
3 изменённых файлов: 6 добавлений и 3 удалений

Просмотреть файл

@ -27,7 +27,7 @@ nvm. See https://github.com/creationix/nvm for more info.
| npm run start:disco | Starts the express server (prod mode disco pane) | | npm run start:disco | Starts the express server (prod mode disco pane) |
| npm run start:search | Starts the express server (prod mode search) | | npm run start:search | Starts the express server (prod mode search) |
| npm run build | Builds the libs (all apps) | | npm run build | Builds the libs (all apps) |
| npm run build-l10n | Builds the libs + extracts translations | | npm run extract-locales| Builds the libs + extracts translations |
| npm run build:disco | Builds the libs (discovery pane) | | npm run build:disco | Builds the libs (discovery pane) |
| npm run build:search | Builds the libs (search) | | npm run build:search | Builds the libs (search) |
| npm run dev:search | Starts the dev server (search app) | | npm run dev:search | Starts the dev server (search app) |

3
bin/extract-locales Executable file
Просмотреть файл

@ -0,0 +1,3 @@
#!/usr/bin/env sh
npm run extract-locales

Просмотреть файл

@ -6,7 +6,7 @@
"private": true, "private": true,
"scripts": { "scripts": {
"build": "better-npm-run build", "build": "better-npm-run build",
"build-l10n": "better-npm-run build-l10n", "extract-locales": "better-npm-run extract-locales",
"build:disco": "better-npm-run build:disco", "build:disco": "better-npm-run build:disco",
"build:search": "better-npm-run build:search", "build:search": "better-npm-run build:search",
"clean": "rimraf './dist/*+(css|js|map|json)' './webpack-assets.json'", "clean": "rimraf './dist/*+(css|js|map|json)' './webpack-assets.json'",
@ -55,7 +55,7 @@
"NODE_APP_INSTANCE": "search" "NODE_APP_INSTANCE": "search"
} }
}, },
"build-l10n": { "extract-locales": {
"command": "webpack --verbose --display-error-details --progress --colors --config webpack.l10n.config.babel.js", "command": "webpack --verbose --display-error-details --progress --colors --config webpack.l10n.config.babel.js",
"env": { "env": {
"NODE_PATH": "./:./src", "NODE_PATH": "./:./src",