-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprompts.js
91 lines (90 loc) · 1.64 KB
/
prompts.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
'use strict';
module.exports = [
{
type: 'input',
name: 'name',
message: 'Input project name',
default: 'app'
},
{
type: 'list',
name: 'templates',
message: 'Choose your preferred template engine',
choices: [
{
name: 'Nunjucks',
value: 'nunjucks'
},
{
name: 'Swig',
value: 'swig'
},
{
name: 'Pug (Jade)',
value: 'jade'
},
{
name: 'I will write my own task for handling HTML',
value: null
}
],
default: 0
},
{
type: 'list',
name: 'bundler',
message: 'What we do with JS code?',
choices: [
{
name: 'Let Webpack does magic to me',
value: 'webpack'
},
{
name: 'I will handle it manually (with gulp-include)',
value: 'include'
},
// {
// name: 'Browserify',
// value: 'browserify'
// },
{
name: 'I will write my own task for handling JS',
value: null
}
]
},
{
type: 'checkbox',
name: 'sprites',
message: 'Which from icon system would be used',
choices: [
{
name: 'SVG sprites',
value: 'svg',
checked: true
},
{
name: 'Iconfonts',
value: 'iconfont',
checked: false
},
{
name: 'PNG sprites',
value: 'png',
checked: false
}
]
},
{
type: 'confirm',
name: 'svgo',
message: 'Use SVGO for svg optimization?',
default: true
},
{
type: 'confirm',
name: 'install',
message: 'Install dependencies right now?',
default: false
}
];