1
1
{
2
- "container" : " /shared/container" ,
3
- "dumb" : " /shared/components" ,
4
- "functional" : " /shared/components" ,
5
- "model" : " /server/models" ,
6
- "route" : " /server/routes" ,
7
- "controller" : " /server/controllers"
8
- }
2
+ "blueprints" : [
3
+ {
4
+ "name" : " dumb-s" ,
5
+ "description" : " Generates a dumb react component in shared components" ,
6
+ "usage" : " dumb-s [component-name]" ,
7
+ "files" : [
8
+ {
9
+ "blueprint-path" : " config/blueprints/dumb-component.ejs" ,
10
+ "target-path" : " client/components/<%= helpers.capitalize(name) %>.js"
11
+ }
12
+ ]
13
+ },
14
+ {
15
+ "name" : " dumb-m" ,
16
+ "description" : " Generates a dumb react component in a module directory" ,
17
+ "usage" : " dumb-m <module-name>/<component-name>" ,
18
+ "files" : [
19
+ {
20
+ "blueprint-path" : " config/blueprints/dumb-component.ejs" ,
21
+ "parent-path" : " client/modules/<%= helpers.capitalize(parent) %>" ,
22
+ "target-path" : " components/<%= helpers.capitalize(name) %>/<%= helpers.capitalize(name) %>.js"
23
+ }
24
+ ]
25
+ },
26
+ {
27
+ "name" : " functional-s" ,
28
+ "description" : " Generates a functional react component in shared components" ,
29
+ "usage" : " functional-s [component-name]" ,
30
+ "files" : [
31
+ {
32
+ "blueprint-path" : " config/blueprints/functional-component.ejs" ,
33
+ "target-path" : " client/components/<%= helpers.capitalize(name) %>.js"
34
+ }
35
+ ]
36
+ },
37
+ {
38
+ "name" : " functional-m" ,
39
+ "description" : " Generates a functional react component in a module directory" ,
40
+ "usage" : " functional-m <module-name>/<component-name>" ,
41
+ "files" : [
42
+ {
43
+ "blueprint-path" : " config/blueprints/functional-component.ejs" ,
44
+ "parent-path" : " client/modules/<%= helpers.capitalize(parent) %>" ,
45
+ "target-path" : " components/<%= helpers.capitalize(name) %>/<%= helpers.capitalize(name) %>.js"
46
+ }
47
+ ]
48
+ },
49
+ {
50
+ "name" : " module" ,
51
+ "description" : " Generates a module including react components, reducer, action, style & express route, controller, model" ,
52
+ "usage" : " module [module-name]" ,
53
+ "files" : [
54
+ {
55
+ "blueprint-path" : " config/blueprints/module/module.ejs" ,
56
+ "target-path" : " client/modules/<%= helpers.capitalize(name) %>/<%= helpers.capitalize(name) %>.js"
57
+ },
58
+ {
59
+ "blueprint-path" : " config/blueprints/module/module-actions.ejs" ,
60
+ "target-path" : " client/modules/<%= helpers.capitalize(name) %>/<%= helpers.capitalize(name) %>Actions.js"
61
+ },
62
+ {
63
+ "blueprint-path" : " config/blueprints/module/module-reducer.ejs" ,
64
+ "target-path" : " client/modules/<%= helpers.capitalize(name) %>/<%= helpers.capitalize(name) %>Reducer.js"
65
+ },
66
+ {
67
+ "blueprint-path" : " config/blueprints/module/module-styles.ejs" ,
68
+ "target-path" : " client/modules/<%= helpers.capitalize(name) %>/<%= helpers.capitalize(name) %>.css"
69
+ },
70
+ {
71
+ "blueprint-path" : " config/blueprints/module/controller.ejs" ,
72
+ "target-path" : " server/controllers/<%= name %>.controller.js"
73
+ },
74
+ {
75
+ "blueprint-path" : " config/blueprints/module/express-route.ejs" ,
76
+ "target-path" : " server/routes/<%= name %>.routes.js"
77
+ },
78
+ {
79
+ "blueprint-path" : " config/blueprints/module/model.ejs" ,
80
+ "target-path" : " server/models/<%= name %>.js"
81
+ }
82
+ ]
83
+ }
84
+ ]
85
+ }
0 commit comments