Skip to content

Commit 88ebfc8

Browse files
committed
fix(gen): heroku and openshift generators requiring .yo-rc file to work
closes angular-fullstack#318
1 parent 7d56eda commit 88ebfc8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

heroku/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ var Generator = module.exports = function Generator() {
1515
this.appname = path.basename(process.cwd());
1616
}
1717
this.appname = this._.slugify(this.appname);
18-
this.filters = this.config.get('filters');
18+
this.filters = this.config.get('filters') || {};
1919
};
2020

2121
util.inherits(Generator, yeoman.generators.NamedBase);

openshift/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ var Generator = module.exports = function Generator() {
1515
this.appname = path.basename(process.cwd());
1616
}
1717
this.appname = this._.slugify(this.appname).split('-').join('');
18-
this.filters = this.config.get('filters');
18+
this.filters = this.config.get('filters') || {};
1919
};
2020

2121
util.inherits(Generator, yeoman.generators.NamedBase);

0 commit comments

Comments
 (0)