-
Notifications
You must be signed in to change notification settings - Fork 5
/
meta.js
100 lines (99 loc) · 2.68 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
91
92
93
94
95
96
97
98
99
100
module.exports = {
"helpers": {
"if_or": function (v1, v2, options) {
if (v1 || v2) {
return options.fn(this);
}
return options.inverse(this);
}
},
"prompts": {
"name": {
"type": "string",
"required": true,
"message": "项目名称"
},
"description": {
"type": "string",
"required": false,
"message": "项目描述",
"default": "基于Vue.js的前端项目"
},
"author": {
"type": "string",
"message": "作者"
},
"build": {
"type": "list",
"message": "Vue 编译",
"choices": [
{
"name": "运行时+编译器:推荐大多数用户使用",
"value": "standalone",
"short": "standalone"
},
{
"name": "运行时版本:约6KB的打包机最小+ gzip,但模板(或任何Vue特定的HTML)只允许在.vue文件中 - 渲染功能需要在其他地方",
"value": "runtime",
"short": "runtime"
}
]
},
"router": {
"type": "confirm",
"message": "安装 路由?"
},
"lint": {
"type": "confirm",
"message": "使用 ESLint 规范 你的代码?"
},
"lintConfig": {
"when": "lint",
"type": "list",
"message": "选择一个默认ESLint标准",
"choices": [
{
"name": "Standard (https://github.com/standard/standard)",
"value": "standard",
"short": "Standard"
},
{
"name": "Airbnb (https://github.com/airbnb/javascript)",
"value": "airbnb",
"short": "Airbnb"
},
{
"name": "none (自定义配置)",
"value": "none",
"short": "none"
}
]
},
"vuesocket": {
"type": "confirm",
"message": "集成vue-socket.io开发响应式项目?"
},
"socketio": {
"type": "string",
"message": "如果你选择集成vue-socket.io请输入你的远程服务端地址否则请忽略此项:"
},
"unit": {
"type": "confirm",
"message": "安装测试框架 Karma + Mocha?"
},
"e2e": {
"type": "confirm",
"message": "使用Nightwatch进行端到端测试?"
}
},
"filters": {
".eslintrc.js": "lint",
".eslintignore": "lint",
"config/test.env.js": "unit || e2e",
"test/unit/**/*": "unit",
"build/webpack.test.conf.js": "unit",
"test/e2e/**/*": "e2e",
"src/router/**/*": "router"
},
"completeMessage": "友情提示: 编程有害身体,为了你和家人的健康,请到野外编程\n\n {{^inPlace}}cd {{destDirName}}\n {{/inPlace}}npm install\n npm run dev\n\n如有疑问请联系QQ:121625933"
};