From 9f4fc2e0cfa4df640cc72b3458d9c6ed424a9619 Mon Sep 17 00:00:00 2001 From: ndxbxrme Date: Mon, 18 Jan 2016 13:26:55 +0000 Subject: [PATCH] possible fix for issue #3 --- generators/app/index.js | 3 +++ src/app/index.coffee | 3 +++ 2 files changed, 6 insertions(+) diff --git a/generators/app/index.js b/generators/app/index.js index 5f0548e..840485c 100644 --- a/generators/app/index.js +++ b/generators/app/index.js @@ -292,6 +292,9 @@ this.filters.appname = this.appname + 'App'; this.filters.projectname = this.config.get('appname'); this.filters.modules = '\'' + (this.filters.js ? angularModules.join('\',\n \'') : angularModules.join('\'\n \'')) + '\''; + this.filters.usedBower = this.filters.bower === true; + this.filters.bower = false; + this.config.set('filters', this.filters); this.sourceRoot(path.join(__dirname, './templates/' + this.filters.framework)); genUtils.write(this, this.filters); }, diff --git a/src/app/index.coffee b/src/app/index.coffee index 8a278eb..9123b32 100644 --- a/src/app/index.coffee +++ b/src/app/index.coffee @@ -287,6 +287,9 @@ module.exports = yeoman.generators.Base.extend( @filters.appname = @appname + 'App' @filters.projectname = @config.get('appname') @filters.modules = '\'' + (if @filters.js then angularModules.join('\',\n \'') else angularModules.join('\'\n \'')) + '\'' + @filters.usedBower = @filters.bower is true + @filters.bower = false #fix for issue #3 + @config.set 'filters', @filters @sourceRoot path.join(__dirname, './templates/' + @filters.framework) genUtils.write this, @filters return