From 1c620393cdc8fb953bdc95bdaabcf70ff88fc4b3 Mon Sep 17 00:00:00 2001 From: yo mama Date: Thu, 4 Dec 2014 12:00:43 -0800 Subject: added some stuff --- app/index.js | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) (limited to 'app/index.js') diff --git a/app/index.js b/app/index.js index 300cc12..7f24639 100644 --- a/app/index.js +++ b/app/index.js @@ -75,12 +75,25 @@ var UnsemanticExpressGenerator = yeoman.generators.Base.extend({ installingExpress: function() { if (this.jQuery){ // var done = this.async(); - this.npmInstall(['express'], { 'saveDev': true }); + this.npmInstall(['express'], { 'save': true }); // this.npmInstall(['express'], { 'saveDev': true }, done); } }, - installingUnsemantic: function() { - if (! this.jQuery){ + installingTaskEngine: function(){ + this.npmInstall(['grunt'], { 'save': true }); + }, + installingDevelopmentTools: function(){ + this.npmInstall(['grunt-contrib-watch'], { 'saveDev': true }); + this.npmInstall(['grunt-contrib-concat'], { 'saveDev': true }); + this.npmInstall(['grunt-contrib-uglify'], { 'saveDev': true }); + this.npmInstall(['grunt-traceur'], { 'saveDev': true }); + }, + installingProductionTools: function() { + this.npmInstall(['grunt-google-cdn'], { 'save': true }); + this.npmInstall(['google-cdn-data'], { 'save': true }); + }, + installingCss: function() { + if (this.unsemantic){ this.bowerInstall(['unsemantic'], { 'saveDev': true }); } }, -- cgit v1.2.3-70-g09d2