Skip to content

Commit be35e9e

Browse files
committed
feat(gen): always use Babel
leave in supporting code for use with eventually supporting typescript
1 parent cb0e4ab commit be35e9e

26 files changed

Lines changed: 6 additions & 74 deletions

app/generator.js

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -90,18 +90,13 @@ export default class Generator extends Base {
9090

9191
this.log('# Client\n');
9292

93-
this.prompt([{
93+
this.prompt([/*{
9494
type: 'list',
9595
name: 'script',
9696
message: 'What would you like to write scripts with?',
97-
choices: [ 'JavaScript', 'JavaScript + Babel'],
98-
filter: function( val ) {
99-
return {
100-
'JavaScript': 'js',
101-
'JavaScript + Babel': 'babel'
102-
}[val];
103-
}
104-
}, {
97+
choices: ['Babel', 'TypeScript'],
98+
filter: function(val) { return val.toLowerCase(); }
99+
}, */{
105100
type: 'list',
106101
name: 'markup',
107102
message: 'What would you like to write markup with?',
@@ -133,10 +128,8 @@ export default class Generator extends Base {
133128
return answers.bootstrap;
134129
}
135130
}], function (answers) {
136-
137-
// also set 'js' to true if using babel
138-
if(answers.script === 'babel') { this.filters.js = true; }
139-
this.filters[answers.script] = true;
131+
this.filters.js = true
132+
this.filters.babel = true;
140133
this.filters[answers.markup] = true;
141134
this.filters[answers.stylesheet] = true;
142135
this.filters[answers.router] = true;
File renamed without changes.

app/templates/client/app/account(auth)/login/login.controller(js).js renamed to app/templates/client/app/account(auth)/login/login.controller.js

File renamed without changes.

app/templates/client/app/account(auth)/settings/settings.controller(js).js renamed to app/templates/client/app/account(auth)/settings/settings.controller.js

File renamed without changes.

app/templates/client/app/account(auth)/signup/signup.controller(js).js renamed to app/templates/client/app/account(auth)/signup/signup.controller.js

File renamed without changes.

app/templates/client/app/admin(auth)/admin.controller(js).js renamed to app/templates/client/app/admin(auth)/admin.controller.js

File renamed without changes.
File renamed without changes.
File renamed without changes.

app/templates/client/app/main/main.controller.spec(js).js renamed to app/templates/client/app/main/main.controller.spec.js

File renamed without changes.

0 commit comments

Comments
 (0)