-
Notifications
You must be signed in to change notification settings - Fork 0
/
meta.js
62 lines (61 loc) · 1.8 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
/**
* Created by pomy on 24/07/2017.
*/
module.exports = {
"prompts": {
"name": {
"type" : "string",
"required": false,
"message" : "Project name",
"default" : "react-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 React project"
},
"state": {
"type": "list",
"message": "state manage for your app",
"choices": [
{
"name": "Mobx (https:/mobxjs/mobx)",
"value": "mobx",
"short": "mobx"
},
{
"name": "Redux (https:/reactjs/redux)",
"value": "redux",
"short": "redux"
}
]
},
"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/redux/**/*": "state === 'redux'",
"src/mobx/**/*": "state === 'mobx'"
},
"completeMessage": "To get started:\n\n cd {{destDirName}}\n npm install\n npm run dll\n npm run dev\n\nDocumentation can be found at https:/dwqs/react-startup"
}