Skip to content

Commit af9da1d

Browse files
committed
feat(gen:app): deprecate grunt
1 parent 4a17d76 commit af9da1d

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

Diff for: src/generators/app/index.js

+6-3
Original file line numberDiff line numberDiff line change
@@ -297,9 +297,12 @@ export class Generator extends Base {
297297
type: 'list',
298298
name: 'buildtool',
299299
message: 'Would you like to use Gulp or Grunt?',
300-
choices: ['Grunt', 'Gulp'],
301-
default: 1,
302-
filter: val => val.toLowerCase()
300+
choices: ['Gulp', 'Grunt (deprecated)'],
301+
default: 0,
302+
filter: val => ({
303+
'Gulp': 'gulp',
304+
'Grunt (deprecated)': 'grunt'
305+
})[val]
303306
}, {
304307
type: 'list',
305308
name: 'testing',

0 commit comments

Comments
 (0)