-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmeta.js
53 lines (53 loc) · 1.36 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
module.exports = {
prompts: {
name: {
type: 'string',
required: true,
message: 'project name'
},
description: {
type: 'string',
message: 'description',
default: 'a node website backend'
},
author: {
type: 'string',
message: 'author',
required: true
},
pm2: {
type: "confirm",
message: "create pm2 deploy config file?"
},
tair: {
type: "confirm",
message: "need tair?"
},
mysql: {
type: 'confirm',
message: 'need mysql database?'
},
sentry: {
type: 'confirm',
message: 'need sentry?'
},
oauth: {
type: "confirm",
message: "need neixin/大象 oauth?"
},
pug: {
type: 'confirm',
message: 'add pug/jade template engine? (swig is build-in already)'
}
},
filters:{
'deploy/pm2/*':'pm2',
'lib/tair.js':'tair',
'service/db/*':'mysql',
'service/use_db_demo/*':'mysql',
'lib/sentry.js':'sentry',
'views/home/author.pug':'pug',
'router/auth.js':'oauth'
},
completeMessage: "init project successfully. \n read more in readme.md"
};