-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathinit.js
38 lines (36 loc) · 1016 Bytes
/
init.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
exports.configure = [
{
name: 'name',
message: 'What is the name of your project?'
}, {
name: 'description',
message: 'Describe your project'
}, {
name: 'github_username',
message: 'What is your github username?'
}, {
name: 'sugar',
message: 'Would you like to use whitespace-sensitive syntax?',
type: 'confirm',
default: false
}, {
name: 'production',
message: 'Would you like a production config file?',
type: 'confirm',
default: true
}
]
exports.after = (util, config) => {
if (!config.production) util.target.remove('app.production.js')
if (config.sugar) {
util.target.remove('views/index.html')
util.target.remove('views/layout.html')
util.target.remove('assets/css/_global.css')
util.target.remove('assets/css/index.css')
} else {
util.target.remove('views/index.sgr')
util.target.remove('views/layout.sgr')
util.target.remove('assets/css/_global.sss')
util.target.remove('assets/css/index.sss')
}
}