-
Notifications
You must be signed in to change notification settings - Fork 1
/
sao.js
65 lines (65 loc) · 1.34 KB
/
sao.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
module.exports = {
prompts: {
name: {
message: 'What is the name of the new project?',
role: 'folder:name'
},
description: {
message: 'How would you descripe the new project?',
default: `my awesome react project`
},
username: {
message: 'What is your GitHub username?',
role: 'git:name',
store: true
},
email: {
message: 'What is your GitHub email?',
role: 'git:email',
store: true
},
website: {
message: 'The URL of your website?',
default({username}) {
return `github.com/${username}`
},
store: true
},
pwa: {
message: 'PWA support?',
type: 'confirm',
default: true
},
lint: {
message: 'Choose the eslint mode:',
type: 'list',
choices: [
'all mode',
'only prod',
'only dev',
'never'
]
},
test: {
message: 'Need jest for testing?',
type: 'confirm',
default: false
},
enzyme: {
message: 'Need enzyme shallow lib with test?',
type: 'confirm',
default: true,
when: answers => answers.test
}
},
filters: {
'src/__test__/**': 'test',
'static/manifest.json': 'pwa'
},
move: {
'gitignore': '.gitignore'
},
showTip: true,
installDependencies: false,
gitInit: true
}