-
Notifications
You must be signed in to change notification settings - Fork 0
/
kws-cli.json
73 lines (73 loc) · 2.06 KB
/
kws-cli.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
{
"generators":{
"module":{
"name": "Generate all files for a full module",
"description":"Will create 3 views for CRUD and a model. Will also update routes and routeHandler",
"command": "node scripts/generators modules ${module} --colors",
"Input":{
"name": "module",
"validate": {
"module": "required"
},
"message": "What is the module name?",
"initial": ""
}
},
"route":{
"name": "Generate routes",
"description":"Will update routes.js with new routes",
"command": "node scripts/generators route ${route} --colors",
"Input":{
"name": "route",
"validate": {
"route": "required"
},
"message": "What is the route name?",
"initial": ""
}
},
"route_handler":{
"name": "Generate template file imports",
"description":"Will update RouteHandler.html with new template import statements",
"command": "node scripts/generators route_handler ${module} --colors",
"Input":{
"name": "module",
"validate": {
"module": "required"
},
"message": "What is the module name?",
"initial": ""
}
},
"model":{
"name": "Generate model",
"description":"Will generate a model file extended from baseModel",
"command": "node scripts/generators model ${model} --colors",
"Input":{
"name": "model",
"validate": {
"model": "required"
},
"message": "What is the model name?",
"initial": ""
}
},
"views":{
"name": "Generate views",
"description":"Will create 3 views for CRUD. List view, Edit view and Add view",
"command": "node scripts/generators views ${module} --colors",
"Input":{
"name": "module",
"validate": {
"module": "required"
},
"message": "What is the module name?",
"initial": ""
}
}
},
"scripts":{
"run-tests-gui": "npm run test:ui",
"run-tests": "npm run test"
}
}