-
Notifications
You must be signed in to change notification settings - Fork 2
/
mern.json
85 lines (85 loc) · 3.15 KB
/
mern.json
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
83
84
85
{
"blueprints": [
{
"name": "dumb-s",
"description": "Generates a dumb react component in shared components",
"usage": "dumb-s [component-name]",
"files": [
{
"blueprint-path": "config/blueprints/dumb-component.ejs",
"target-path": "client/components/<%= helpers.capitalize(name) %>.js"
}
]
},
{
"name": "dumb-m",
"description": "Generates a dumb react component in a module directory",
"usage": "dumb-m <module-name>/<component-name>",
"files": [
{
"blueprint-path": "config/blueprints/dumb-component.ejs",
"parent-path": "client/modules/<%= helpers.capitalize(parent) %>",
"target-path": "components/<%= helpers.capitalize(name) %>/<%= helpers.capitalize(name) %>.js"
}
]
},
{
"name": "functional-s",
"description": "Generates a functional react component in shared components",
"usage": "functional-s [component-name]",
"files": [
{
"blueprint-path": "config/blueprints/functional-component.ejs",
"target-path": "client/components/<%= helpers.capitalize(name) %>.js"
}
]
},
{
"name": "functional-m",
"description": "Generates a functional react component in a module directory",
"usage": "functional-m <module-name>/<component-name>",
"files": [
{
"blueprint-path": "config/blueprints/functional-component.ejs",
"parent-path": "client/modules/<%= helpers.capitalize(parent) %>",
"target-path": "components/<%= helpers.capitalize(name) %>/<%= helpers.capitalize(name) %>.js"
}
]
},
{
"name": "module",
"description": "Generates a module including react components, reducer, action, style & express route, controller, model",
"usage": "module [module-name]",
"files": [
{
"blueprint-path": "config/blueprints/module/module.ejs",
"target-path": "client/modules/<%= helpers.capitalize(name) %>/<%= helpers.capitalize(name) %>.js"
},
{
"blueprint-path": "config/blueprints/module/module-actions.ejs",
"target-path": "client/modules/<%= helpers.capitalize(name) %>/<%= helpers.capitalize(name) %>Actions.js"
},
{
"blueprint-path": "config/blueprints/module/module-reducer.ejs",
"target-path": "client/modules/<%= helpers.capitalize(name) %>/<%= helpers.capitalize(name) %>Reducer.js"
},
{
"blueprint-path": "config/blueprints/module/module-styles.ejs",
"target-path": "client/modules/<%= helpers.capitalize(name) %>/<%= helpers.capitalize(name) %>.css"
},
{
"blueprint-path": "config/blueprints/module/controller.ejs",
"target-path": "server/controllers/<%= name %>.controller.js"
},
{
"blueprint-path": "config/blueprints/module/express-route.ejs",
"target-path": "server/routes/<%= name %>.routes.js"
},
{
"blueprint-path": "config/blueprints/module/model.ejs",
"target-path": "server/models/<%= name %>.js"
}
]
}
]
}