-
Notifications
You must be signed in to change notification settings - Fork 5
/
metadata.js
92 lines (92 loc) · 3.37 KB
/
metadata.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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
module.exports = {
"prompts": {
"name": {
"type": "string",
"message": "Project name"
},
"description": {
"type": "string",
"message": "Project description",
"default": "application created by thinkjs"
},
"author": {
"type": "string",
"message": "Author"
}
},
"new": {
"default": [
["src/bootstrap", "src/bootstrap"],
["src/config", "src/config"],
["src/controller/base.ts", "src/controller/base.ts"],
["src/controller/index.ts", "src/controller/index.ts"],
["src/logic", "src/logic"],
["src/model", "src/model"],
["src/index.ts", "src/index.ts"],
["test/index.ts", "test/index.ts"],
["view/index_index.html", "view/index_index.html"],
["development.js", "development.js"],
["gitignore", ".gitignore"],
["nginx.conf", "nginx.conf"],
["package.json", "package.json"],
["pm2.json", "pm2.json"],
["production.js", "production.js"],
["README.md", "README.md"],
["tsconfig.json", "tsconfig.json"],
["tslint.json", "tslint.json"]
],
"multiModule": [
["src/bootstrap", "src/common/bootstrap"],
["src/config", "src/common/config"],
["src/config/config.ts", "src/[moduleName]/config/config.ts"],
["src/controller/base.ts", "src/[moduleName]/controller/base.ts"],
["src/controller/index.ts", "src/[moduleName]/controller/index.ts"],
["src/logic", "src/[moduleName]/logic"],
["src/model", "src/[moduleName]/model"],
["src/index.ts", "src/index.ts"],
["test/index.ts", "test/index.ts"],
["view/index_index.html", "view/[moduleName]/index_index.html"],
["development.js", "development.js"],
["gitignore", ".gitignore"],
["nginx.conf", "nginx.conf"],
["package.json", "package.json"],
["pm2.json", "pm2.json"],
["production.js", "production.js"],
["README.md", "README.md"],
["tsconfig.json", "tsconfig.json"],
["tslint.json", "tslint.json"]
]
},
"controller": {
"default": [
["src/controller/index.ts", "src/[moduleName]/controller/[action].ts"],
["src/logic/index.ts", "src/[moduleName]/logic/[action].ts"]
],
"rest": [
["src/controller/rest.ts", "src/[moduleName]/controller/rest.ts"],
["src/controller/restIndex.ts", "src/[moduleName]/controller/[action].ts"],
["src/logic/index.ts", "src/[moduleName]/logic/[action].ts"]
]
},
"model": [
["src/model/index.ts", "src/[moduleName]/model/[action].ts"]
],
"service": [
["src/service/index.ts", "src/[moduleName]/service/[action].ts"]
],
"middleware": [
["src/middleware/base.ts", "src/[moduleName]/middleware/[action].ts"]
],
"adapter": [
["src/adapter/base.ts", "src/[moduleName]/adapter/[type]/[action].ts"]
],
"module": [
["src/config/config.ts", "src/[moduleName]/config/config.ts"],
["src/controller/base.ts", "src/[moduleName]/controller/base.ts"],
["src/controller/index.ts", "src/[moduleName]/controller/index.ts"],
["src/logic/index.ts", "src/[moduleName]/logic/index.ts"],
["src/model/index.ts", "src/[moduleName]/model/index.ts"],
["view/index_index.html", "view/[moduleName]/index_index.html"]
],
"completeMessage": "To get started:\n\n<% if (!inPlace) { %># enter path\n$ cd <%= destDirName %>\n\n<% } %># install dependencies:\n$ npm install\n\n# run the app\n$ npm start"
}