-
Notifications
You must be signed in to change notification settings - Fork 4
/
meta.js
63 lines (63 loc) · 1.42 KB
/
meta.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
module.exports = {
prompts: {
name: {
type: 'string',
required: true,
message: 'Project name'
},
description: {
type: 'string',
required: false,
message: 'Project description',
default: 'My React Project'
},
author: {
type: 'string',
message: 'Author'
},
port: {
type: 'string',
required: false,
message: 'Listening port',
default: '4000'
},
theme: {
type: 'list',
required: true,
message: 'Select which UI framework to install',
choices: ['antd', 'antd-mobile']
},
eslint: {
type: 'confirm',
require: true,
message: 'Use linting with ESLint?',
default: true
},
eslintConfig: {
when: 'eslint',
type: 'list',
message: 'Which eslint config would you like to use?',
choices: [{
name: 'Standard (https://github.com/feross/standard)',
value: 'standard',
short: 'Standard'
}, {
name: 'none (configure it yourself)',
value: 'none',
short: 'none'
}]
},
unit: {
type: 'confirm',
require: true,
message: 'Setup unit tests with Karma + Mocha?',
default: true
}
},
filters: {
'.eslintignore': 'eslint',
'.eslintrc.js': 'eslint',
'test/**/*': 'unit'
},
completeMessage: 'To get started:\n\n cd {{destDirName}}\n npm install\n npm run dev'
}