This repository has been archived by the owner on Jul 31, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 16
/
meta.js
90 lines (90 loc) · 2.01 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
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
module.exports = {
prompts: {
name: {
type: 'string',
required: true,
message: 'Project name'
},
description: {
type: 'string',
required: false,
message: 'Project description'
},
author: {
type: 'string',
message: 'Author'
},
port: {
type: 'string',
required: false,
message: 'Listening port',
default: '4000'
},
routerMode: {
type: 'list',
required: true,
message: 'Select router mode',
choices: ['hash', 'history']
},
theme: {
type: 'list',
required: true,
message: 'Select which UI framework to install',
choices: [
{
name: 'Element UI (https://github.com/ElemeFE/element)',
value: 'element-ui',
short: 'ElementUI'
},
{
name: 'Mint UI (https://github.com/ElemeFE/mint-ui)',
value: 'mint-ui',
short: 'MintUI'
},
{
name: 'none',
value: 'none',
short: 'none'
}
]
},
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'
}
]
},
vcc: {
type: 'confirm',
message: 'Trying to use vue-class-component?'
},
unit: {
type: 'confirm',
message: 'Setup unit tests with Karma + Mocha?'
}
},
filters: {
'.eslintignore': 'eslint',
'.eslintrc.js': 'eslint',
'test/unit/**/*': 'unit',
'configs/webpack.test.js': 'unit'
},
completeMessage: 'To get started:\n\n cd {{destDirName}}\n npm install\n npm start'
}