Skip to content

Commit

Permalink
Move webpack stats to dedicated command (#1023)
Browse files Browse the repository at this point in the history
  • Loading branch information
stefk authored and Elorfin committed Dec 7, 2016
1 parent 175e4c4 commit 736c3c3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion package.json
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
"old-themes": "node vendor/claroline/distribution/main/core/Resources/server/scripts/build-old-themes", "old-themes": "node vendor/claroline/distribution/main/core/Resources/server/scripts/build-old-themes",
"uglify": "for f in web/dist/*.js; do echo \"Uglifying ${f}...\" && ./node_modules/.bin/uglifyjs $f -o $f; done", "uglify": "for f in web/dist/*.js; do echo \"Uglifying ${f}...\" && ./node_modules/.bin/uglifyjs $f -o $f; done",
"dll": "node_modules/webpack/bin/webpack.js --config=vendor/claroline/distribution/webpack.dll.js --progress --colors --display-error-details", "dll": "node_modules/webpack/bin/webpack.js --config=vendor/claroline/distribution/webpack.dll.js --progress --colors --display-error-details",
"webpack": "export NODE_ENV=production && rm -rf web/dist/* && npm run dll && node_modules/webpack/bin/webpack.js --json --config=vendor/claroline/distribution/webpack.prod.js --progress --colors --display-error-details > webpack-stats.json && npm run uglify", "webpack": "export NODE_ENV=production && rm -rf web/dist/* && npm run dll && node_modules/webpack/bin/webpack.js --config=vendor/claroline/distribution/webpack.prod.js --progress --colors --display-error-details && npm run uglify",
"webpack:stats": "export NODE_ENV=production && rm -rf web/dist/* && npm run dll && node_modules/webpack/bin/webpack.js --json --config=vendor/claroline/distribution/webpack.prod.js --progress --colors --display-error-details > webpack-stats.json && npm run uglify",
"watch": "npm run dll && node_modules/webpack-dev-server/bin/webpack-dev-server.js --hot --config=vendor/claroline/distribution/webpack.dev.js --inline --content-base web --claro-tgt=watch --display-error-details", "watch": "npm run dll && node_modules/webpack-dev-server/bin/webpack-dev-server.js --hot --config=vendor/claroline/distribution/webpack.dev.js --inline --content-base web --claro-tgt=watch --display-error-details",
"karma": "node_modules/.bin/karma start vendor/claroline/distribution/karma.conf.js", "karma": "node_modules/.bin/karma start vendor/claroline/distribution/karma.conf.js",
"mocha": "./node_modules/mocha/bin/mocha vendor/claroline/distribution/main/core/Resources/server/**/*.test.js", "mocha": "./node_modules/mocha/bin/mocha vendor/claroline/distribution/main/core/Resources/server/**/*.test.js",
Expand Down

0 comments on commit 736c3c3

Please sign in to comment.