-
Notifications
You must be signed in to change notification settings - Fork 66
/
meta.js
67 lines (67 loc) · 1.96 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
module.exports = {
"prompts": {
"name": {
"type": "string",
"required": true,
"message": "Project name",
"default": "vue-fullstack"
},
"description": {
"type": "string",
"required": false,
"message": "Project description",
"default": "A vue-fullstack project"
},
"author": {
"type": "string",
"message": "Author"
},
"mock": {
"type": "list",
"message": "Use real backend server or mock server",
"choices": [{
"name": "Backend server",
"value": "backend",
"short": "Backend"
}, {
"name": "Mock server",
"value": "mock",
"short": "Mock"
}]
},
"backendPort": {
"type": "string",
"when": "mock==='backend'",
"message": "Port that backend server listen at development environment",
"default": 9000
},
"frontendPort": {
"type": "string",
"message": "Port that frontend server listen at development environment",
"default": 9001
},
"mongoUri": {
"type": "string",
"when": "mock==='backend'",
"message": "MongoDB uri, '-dev' will be appended in development, default is local uri"
},
"mockPort": {
"type": "string",
"when": "mock==='mock'",
"message": "Port that mock server listen at",
"default": 7878
},
"i18n": {
"type": "confirm",
"message": "Need vue-i18n?"
}
},
"filters": {
"tasks/replaceI18n.js": "!i18n",
"tasks/mock.js": "mock==='mock'",
"tasks/remove.js": "!i18n||mock==='mock'",
"mock/**/*": "mock==='mock'"
},
"skipInterpolation": "{client/**/*.vue,tasks/**/*.*}",
"completeMessage": "To get started:\n\n cd {{destDirName}}\n npm install\n{{#if_eq mock 'mock'}} npm run remove:mock\n{{/if_eq}}{{#unless i18n}} npm run remove:i18n\n{{/unless}}{{#if_eq mock 'backend'}} npm run server\n{{/if_eq}}{{#if_eq mock 'mock'}} npm run mock\n{{/if_eq}} npm run client"
};