Skip to content

Commit

Permalink
Rename grunt publish task
Browse files Browse the repository at this point in the history
  • Loading branch information
ediblecode committed Sep 15, 2016
1 parent 49e0417 commit e2655ac
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ module.exports = grunt => {
r("dist", ["env:dist", "clean", "sass:dist", "webpack:dist"]);

// For building before publishing to NPM etc
r("publish", ["env:dist", "clean", "sass:publish", "sass:publishMin", "webpack:dist"]);
r("prepublish", ["env:dist", "clean", "sass:publish", "sass:publishMin", "webpack:dist"]);

r("default", ["lint", "concurrent:default", "watch"]);
};
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ Before you run any tasks, you'll have to run the following from the command line
| `grunt` | Default. Lints, builds everything in parallel and runs an express server and a watch task for dev changes. |
| `grunt lint` | Lints SASS (sasslint) and JS (eslint) |
| `grunt dist` | Builds documentation, modernizr, CSS and JS in production mode (minified etc). Fro deploying the web app itself. |
| `grunt publish` | Builds minified code for publishing to NPM etc |
| `grunt prepublish` | Builds minified code for publishing to NPM etc |

#### NPM

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"test": "echo \"Error: no test specified\" && exit 1",
"lint": "grunt lint",
"serve": "set PORT=54321&& node web/server",
"prepublish": "grunt publish"
"prepublish": "grunt prepublish"
},
"author": "NICE Digital Services (https://github.com/nhsevidence/nice-experience/graphs/contributors)",
"contributors": [
Expand Down

0 comments on commit e2655ac

Please sign in to comment.