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

Commit

Permalink
refactor(scripts): serve build via npm run build:serve
Browse files Browse the repository at this point in the history
BREAKING CHANGE: Change the npm script name fpr serving the dist directory from `npm run build:check ` to `npm run build:serve`
  • Loading branch information
mischah committed Apr 3, 2018
1 parent 32c00a0 commit ce2cc70
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ When completed the setup, you'll be able to run various npm scripts from the com
| `npm test` | *Lints your JavaScript files and runs unit test via the Jest CLI.* |
| `npm run test:watch` | *Runs unit test with Jests watch option.* |
| `npm run build` | *Builds for production to `dist` directory.* |
| `npm run build:check` | *Starts a static fileserver serving the `dist` directory.* |
| `npm run build:serve` | *Starts a static fileserver serving the `dist` directory.* |
| `npm run build:analyze` | *Starts »webpack bundle analyzer« to visualize size of webpack output files* |


Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"start": "npm-run-all clean:dev handlebars --parallel handlebars:watch webpack:server eslint:watch stylelint:watch --silent",
"build": "npm-run-all security test handlebars clean webpack --silent",
"build:dev": "npm-run-all security test handlebars clean:dev webpack:dev --silent",
"build:check": "serve dist --open",
"build:serve": "serve dist --open",
"build:analyze": "npm run webpack:stats --silent && webpack-bundle-analyzer ./.webpack-stats.json ./dist -s parsed",
"pretest": "npm run eslint --silent",
"test": "cross-env NODE_ENV=test jest",
Expand Down

0 comments on commit ce2cc70

Please sign in to comment.