-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmeta.js
executable file
·76 lines (73 loc) · 1.44 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
'use strict';
module.exports = function(values) {
return {
questions: [
{
type: 'confirm',
name: 'needTransporter',
message: 'Do you want to connect several nodes with each other?',
default: false
},
{
type: 'list',
name: 'transporter',
message: 'Select a transport adapter',
choices: [
{ name: 'Redis (recommended)', value: 'Redis' },
{ name: 'NATS', value: 'NATS' }
],
when (answers) {
return answers.needTransporter
},
default: 'Redis'
},
{
type: 'confirm',
name: 'needCaching',
message: 'Would you like to use caching?',
default: false
},
{
type: 'list',
name: 'cache',
message: 'Select a caching solution',
choices: [
{ name: 'Memory', value: 'Memory' },
{ name: 'Redis', value: 'Redis' }
],
when (answers) {
return answers.needCaching
},
default: 'Memory'
},
{
type: 'confirm',
name: 'webGateway',
message: 'Add a web gateway service service',
default: true
},
{
type: 'confirm',
name: 'lint',
message: 'Use ESLint to lint your code?',
default: true
},
{
type: 'confirm',
name: 'jest',
message: 'Setup unit tests with Jest?',
default: true
}
],
'filters': {
'services/api.service.js': 'webGateway',
'.eslintrc.js': 'lint',
'test/**/*': 'jest',
},
completeMessage: `
To get started:
cd {{projectName}}
npm run dev
`
};
};