Skip to content

Commit 8c0deba

Browse files
committed
feat(gen): make sure users know that the gulpfile is experimental
1 parent 2b12087 commit 8c0deba

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

Diff for: app/generator.js

+12-2
Original file line numberDiff line numberDiff line change
@@ -259,12 +259,12 @@ export default class Generator extends Base {
259259
type: 'list',
260260
name: 'buildtool',
261261
message: 'Would you like to use Gulp (experimental) instead of Grunt?',
262-
choices: ['Grunt', 'Gulp', 'Both'],
262+
choices: ['Grunt', 'Gulp (experimental)', 'Both'],
263263
default: 0,
264264
filter: function(val) {
265265
return {
266266
'Grunt': 'grunt',
267-
'Gulp': 'gulp',
267+
'Gulp (experimental)': 'gulp',
268268
'Both': 'grunt_and_gulp'
269269
}[val];
270270
}
@@ -296,6 +296,16 @@ export default class Generator extends Base {
296296
this.filters.grunt = answers.buildtool === 'grunt' || answers.buildtool === 'grunt_and_gulp';
297297
this.filters.gulp = answers.buildtool === 'gulp' || answers.buildtool === 'grunt_and_gulp';
298298

299+
if(this.filters.gulp) {
300+
this.log(chalk.red(`
301+
################################################################
302+
# NOTE: You have chosen to use the experimental gulp file.
303+
# This build tool is still in the experimental stage, and most
304+
# likely still has many bugs and/or missing features.
305+
# Use at your own risk.
306+
################################################################`));
307+
}
308+
299309
this.filters[answers.testing] = true;
300310
if (answers.testing === 'mocha') {
301311
this.filters.jasmine = false;

0 commit comments

Comments
 (0)