Browse Source

scaffolding: Add scripts clean, init and reset.

Herby Vojčík 5 years ago
parent
commit
19cc6c4b6d
1 changed files with 3 additions and 0 deletions
  1. 3 0
      grunt-init-project/template.js

+ 3 - 0
grunt-init-project/template.js

@@ -128,6 +128,9 @@ exports.template = function (grunt, init, done) {
         };
         props.node_version = '>=4.0.0';
         props.scripts = {
+            "reset": "npm run clean && npm run init",
+            "clean": "(rm -rf bower_components || rd /s/q bower_components) && (rm -rf node_modules || rd /s/q node_modules)",
+            "init": "npm install && bower install && grunt devel",
             "test": "grunt test"
         };