Skip to content

Commit

Permalink
fix(gen): set scriptExt, templateExt, & styleExt when re-using a .yo-…
Browse files Browse the repository at this point in the history
…rc.json
  • Loading branch information
Awk34 committed Dec 20, 2015
1 parent 9f2c5d8 commit 6e59229
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions app/generator.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,13 @@ export default class Generator extends Base {

if (this.skipConfig) {
this.filters = existingFilters;

this.scriptExt = this.filters.ts ? 'ts' : 'js';
this.templateExt = this.filters.jade ? 'jade' : 'html';
this.styleExt = this.filters.sass ? 'scss' :
this.filters.less ? 'less' :
this.filters.stylus ? 'styl' :
'css';
} else {
this.filters = {};
this.forceConfig = true;
Expand Down

0 comments on commit 6e59229

Please sign in to comment.