This repository has been archived by the owner on Feb 16, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathmeta.js
82 lines (82 loc) · 2 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
77
78
79
80
81
82
module.exports = {
"prompts": {
"name": {
"type": "string",
"required": true,
"label": "Project name"
},
"description": {
"type": "string",
"required": true,
"label": "Project description",
"default": "A Hapi Vue project"
},
"author": {
"type": "string",
"label": "Author"
},
"private": {
"type": "boolean",
"default": true
},
"lint": {
"type": "confirm",
"message": "Include code linter (ESlint)?",
"default": true
},
"unit": {
"type": "confirm",
"message": "Include unit tests (Karma + Mocha + Sinon + Chai)?",
"default": false
},
"headlessBrowser": {
"when": "unit",
"type": "list",
"message": "Pick a browser",
"choices": [
{
"name": "ChromeHeadless (Chrome >=59)",
"value": "ChromeHeadless"
},
{
"name": "ChromiumHeadless (Chromium >=59)",
"value": "ChromiumHeadless"
},
{
"name": "FirefoxHeadless (FF [Linux] >=55 [Win/Mac] >=56)",
"value": "FirefoxHeadless"
},
{
"name": "PhantomJS",
"value": "PhantomJS"
}
]
},
"unitApi": {
"type": "confirm",
"message": "Include dedicated, Hapi unit test utility (Lab + Chai)?",
"default": false
}
},
"helpers": {
"if_or": function (a, b, opts) {
if (a || b) {
return opts.fn(this)
}
return opts.inverse(this)
},
"if_eq_or": function (option, a, b, opts) {
if (option === a || option === b) {
return opts.fn(this)
}
return opts.inverse(this)
}
},
"filters": {
".eslintrc.js": "lint",
"test": "unit || unitApi",
"test/unit/**/*": "unit",
"test/api/**/*": "unitApi"
},
"completeMessage": "To run dev version:\n\n cd {{destDirName}}\n npm install\n npm run dev\n\n"
}