@simitgroup/simpleapp-generator 1.6.6-k-alpha → 1.6.6-l-alpha
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/ReleaseNote.md
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@simitgroup/simpleapp-generator",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.6l-alpha",
|
|
4
4
|
"description": "frontend nuxtjs and backend nests code generator using jsonschema",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"tslog": "^4.9.1"
|
|
40
40
|
},
|
|
41
41
|
"bin": {
|
|
42
|
-
"simpleapp-generator": "dist/index.js"
|
|
42
|
+
"simpleapp-generator": "./dist/index.js"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"@types/node": "^20.5.2",
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was automatically generated by simpleapp generator. It is changable.
|
|
3
|
+
* --remove-this-line-to-prevent-override--
|
|
4
|
+
* last change 2025-05-22
|
|
5
|
+
* Author:
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
export default {
|
|
9
|
+
imports: [],
|
|
10
|
+
controllers: [],
|
|
11
|
+
providers: [],
|
|
12
|
+
exports: [],
|
|
13
|
+
}
|
|
@@ -32,37 +32,26 @@ import { <%=capitalizeFirstLetter(bpmn)%>ListenerService } from 'src/simpleapp/w
|
|
|
32
32
|
<%}%>
|
|
33
33
|
// import {ServiceModule} from "../services/service.module"
|
|
34
34
|
//import { <%= it.typename %>Service } from '../../generate/<%= it.doctype %>/<%= it.doctype %>.service';
|
|
35
|
-
|
|
36
|
-
// ------------------------ Start additionalNestModules ------------------------
|
|
37
|
-
<% const nestmodules = it.configs.additionalNestModules%>
|
|
38
|
-
<% for(let i=0; i<nestmodules.length;i++){ %>
|
|
39
|
-
<% const modulename = capitalizeFirstLetter(nestmodules[i]) %>
|
|
40
|
-
import {<%= modulename %>Module } from '../<%=nestmodules[i]%>/<%=nestmodules[i]%>.module';
|
|
41
|
-
<%}%>
|
|
42
|
-
// ------------------------- End additionalNestModules -------------------------
|
|
35
|
+
import additionalModule from './additional.module';
|
|
43
36
|
|
|
44
37
|
//<%if(it.doctype != 'autoinc'){%>import {AutoincreamentModule} from '../autoinc/autoinc.module'<%}%>
|
|
45
38
|
//encryption use for model (not class and cant inject, use singleton instead and init as early as possible)
|
|
46
39
|
|
|
47
40
|
@Module({
|
|
48
41
|
imports: [
|
|
42
|
+
...additionalModule.imports,
|
|
49
43
|
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
MongooseModule.forFeature([
|
|
58
|
-
<% for(let i=0;i<it.modules.length; i++){ %>
|
|
59
|
-
<% let obj = it.modules[i]%>
|
|
60
|
-
{ name: '<%= obj.docname %>', schema: <%= obj.docname %>MongoSchema },
|
|
61
|
-
<%}%>
|
|
62
|
-
]),
|
|
44
|
+
MongooseModule.forFeature([
|
|
45
|
+
<% for(let i=0;i<it.modules.length; i++){ %>
|
|
46
|
+
<% let obj = it.modules[i]%>
|
|
47
|
+
{ name: '<%= obj.docname %>', schema: <%= obj.docname %>MongoSchema },
|
|
48
|
+
<%}%>
|
|
49
|
+
]),
|
|
63
50
|
],
|
|
64
|
-
controllers: [
|
|
65
|
-
|
|
51
|
+
controllers: [
|
|
52
|
+
<% for(let i=0;i<it.modules.length; i++){ %><%= it.modules[i].docname %>Controller,<%}%> ProfileController,
|
|
53
|
+
//WorkflowController
|
|
54
|
+
...additionalModule.controllers,
|
|
66
55
|
],
|
|
67
56
|
providers: [
|
|
68
57
|
SimpleAppRobotUserService,
|
|
@@ -76,12 +65,16 @@ import { <%=capitalizeFirstLetter(bpmn)%>ListenerService } from 'src/simpleapp/w
|
|
|
76
65
|
<%let bpmn = it.allbpmn[i]%>
|
|
77
66
|
<%=capitalizeFirstLetter(bpmn)%>ListenerService,
|
|
78
67
|
<%}%> UserResolverService,
|
|
68
|
+
...additionalModule.providers,
|
|
79
69
|
],
|
|
80
|
-
exports:[
|
|
70
|
+
exports:[
|
|
71
|
+
SimpleAppRobotUserService,AuditTrail,DocNumberFormatGenerator,<% for(let i=0;i<it.modules.length; i++){ %>
|
|
81
72
|
<%= it.modules[i].docname %>Service,
|
|
82
73
|
<%= it.modules[i].docname %>Resolver,
|
|
83
74
|
<%}%> ProfileService,
|
|
84
75
|
//WorkflowDelegate,WorkflowConfig,WorkflowService,WorkflowUserService,
|
|
85
|
-
UserResolverService,
|
|
76
|
+
UserResolverService,
|
|
77
|
+
...additionalModule.exports,
|
|
78
|
+
]
|
|
86
79
|
})
|
|
87
80
|
export class GenerateModule {}
|