forked from dwqs/vue-startup
-
Notifications
You must be signed in to change notification settings - Fork 0
/
meta.js
64 lines (64 loc) · 1.82 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
module.exports = {
"prompts": {
"name": {
"type" : "string",
"required": false,
"message" : "Project name",
"default" : "vue-startup"
},
"author": {
"type" : "string",
"message": "Author"
},
"version": {
"type" : "string",
"message" : "Project version",
"default" : "0.0.1"
},
"description": {
"type" : "string",
"required": false,
"message" : "Project description",
"default" : "A new Vue.js project"
},
"state": {
"type": "list",
"message": "state manage for your app",
"choices": [
{
"name": "Revuejs (https://github.com/dwqs/revuejs)",
"value": "revue",
"short": "revue"
},
{
"name": "Vuex (https://github.com/vuejs/vuex)",
"value": "vuex",
"short": "vuex"
},
{
"name": "Mobx (https://github.com/mobxjs/mobx)",
"value": "mobx",
"short": "mobx"
}
]
},
"port": {
"type" : "string",
"required": false,
"message" : "client port",
"default" : 3000
},
"prefix": {
"type" : "string",
"required": false,
"message" : "the host name for Ajax request",
"default" : ''
}
},
"filters": {
"src/vuex/**/*": "state === 'vuex'",
"src/modules/**/*": "state === 'revue'",
"src/mobx/**/*": "state === 'mobx'"
},
"completeMessage": "To get started:\n\n cd {{destDirName}}\n npm install\n npm run dev\n\nDocumentation can be found at https://github.com/dwqs/vue-startup"
}