-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplopfile.js
48 lines (48 loc) · 1.98 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
module.exports = function (plop) {
// create your generators here
plop.setGenerator('feature', {
description: 'creates a basic feature structure',
prompts: [{
type: 'input',
name: 'name',
message: 'What\'s the Feature Name (including spaces) ? (Ex: Question List)'
}],
actions: [
{
type: 'add',
path: 'RallyUI/Sources/RallyUI/Features/{{name}}/{{properCase name}}Configurator.swift',
templateFile: 'templates/plop/Feature/Configurator.swift.hbs'
},
{
type: 'add',
path: 'RallyUI/Sources/RallyUI/Features/{{name}}/{{properCase name}}Models.swift',
templateFile: 'templates/plop/Feature/Models.swift.hbs'
},
{
type: 'add',
path: 'RallyUI/Sources/RallyUI/Features/{{name}}/{{properCase name}}Interactor.swift',
templateFile: 'templates/plop/Feature/Interactor.swift.hbs'
},
{
type: 'add',
path: 'RallyUI/Sources/RallyUI/Features/{{name}}/{{properCase name}}Presenter.swift',
templateFile: 'templates/plop/Feature/Presenter.swift.hbs'
},
{
type: 'add',
path: 'RallyUI/Sources/RallyUI/Features/{{name}}/{{properCase name}}ViewController.swift',
templateFile: 'templates/plop/Feature/ViewController.swift.hbs'
},
{
type: 'add',
path: 'RallyUI/Sources/RallyUI/Features/{{name}}/{{properCase name}}Router.swift',
templateFile: 'templates/plop/Feature/Router.swift.hbs'
},
{
type: 'add',
path: 'RallyUI/Sources/RallyUI/Features/{{name}}/{{properCase name}}Assembly.swift',
templateFile: 'templates/plop/Feature/Assembly.swift.hbs'
}
]
});
};