-
Notifications
You must be signed in to change notification settings - Fork 4
/
meta.js
59 lines (58 loc) · 1.41 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
module.exports = {
helpers: {
if_or: function (v1, v2, options) {
if (v1 || v2) {
return options.fn(this)
}
return options.inverse(this)
}
},
prompts: {
name: {
type: "string",
required: true,
message: "What is the name of the new theme?"
},
description: {
type: "string",
required: false,
message: "How would you describe the new theme?",
default: "My superb Wordpress theme"
},
title: {
message: 'The title of your website?',
default: 'Orthodox Union'
},
website: {
message: 'The URL of your production website (no trailing slash)?',
default: 'https://www.ou.org'
},
dev_website: {
message: 'The URL of your local development website (no trailing slash)?',
default({website}) {
var url = website.split("/")
return `${url[0]}//local.${url[2]}`
},
store: true
},
text_domain: {
message: 'Domain to retrieve the translated text?',
default({name}) {
return `${name}`
}
},
username: {
type: "string",
message: "What is your GitHub username"
},
email: {
type: "string",
message: "What is your GitHub email"
},
eslint: {
type: "confirm",
message: "Use ESLint to lint your code?"
},
},
completeMessage: 'To get started:\n\n cd {{destDirName}}\n yarn\n yarn dev\n'
}