forked from launchdarkly/integration-framework
-
Notifications
You must be signed in to change notification settings - Fork 0
/
plopfile.js
61 lines (59 loc) · 1.7 KB
/
plopfile.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
module.exports = function (plop) {
plop.setGenerator('integration', {
description: 'add a new integration to integration framework',
// inquirer prompts
prompts: [
{
type: 'input',
name: 'name',
message: 'Company or Integration name:',
},
{
type: 'input',
name: 'website',
message: 'Company URL:',
},
{
type: 'input',
name: 'supportEmail',
message: 'Support Email Address:',
},
{
type: 'input',
name: 'author',
message: 'Author, can be company or individual:',
},
{
type: 'input',
name: 'overview',
message:
'Quick overview of the integration. (minimum 10 characters). Longer description will be asked next:',
},
{
type: 'input',
name: 'description',
message:
'In-depth description of the integration when user clicks on? Minimum 50 characters:',
},
],
// actions to perform
actions: [
{
type: 'add',
path: 'integrations/{{dashCase name}}/manifest.json',
templateFile: 'template/integration/manifest.json.hbs',
},
{
type: 'add',
path: 'integrations/{{dashCase name}}/assets/horizontal.svg',
},
{
type: 'add',
path: 'integrations/{{dashCase name}}/assets/square.svg',
},
'Congratulations! You have created a new LaunchDarkly integration.',
"Don't forget, any lines in the manifest.json with $FIX_ME will need to be manually updated in the manifest.",
'The empty files in under your new directory `/assets` should be replaced with SVGs of the logo.',
],
});
};