From 5073e1f9e00b4eb0c095918e5c3d58ea66fcd7c2 Mon Sep 17 00:00:00 2001 From: Michael Krotscheck Date: Fri, 10 Jun 2016 12:12:01 -0700 Subject: [PATCH] Run `npm install` after project has been updated. When initializing a new project, we should run `npm install` so that the project directory starts off clean. When updating an old project, this will update dependencies. Change-Id: Idd7602875480b57ab96d5151773761650a94f58c --- generators/app/index.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/generators/app/index.js b/generators/app/index.js index 0db8604..ed68aec 100644 --- a/generators/app/index.js +++ b/generators/app/index.js @@ -106,6 +106,10 @@ excluded.forEach(function (path) { self.fs.delete(self.destinationPath(path)); }); + }, + + install: function () { + this.npmInstall(); } }); })();