@wavemaker/angular-codegen 12.0.0-next.1417175 → 12.0.0-next.1417180
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.
- angular-codegen/angular-app/angular.json +301 -311
- angular-codegen/angular-app/package-lock.json +4 -4
- angular-codegen/angular-app/package.json +2 -2
- angular-codegen/angular-app/tsconfig.json +27 -27
- angular-codegen/angular-app/tsconfig.web-app.json +24 -24
- angular-codegen/build-angular-app.js +25 -2
- angular-codegen/package-lock.json +439 -4
- angular-codegen/package.json +2 -1
@@ -45,7 +45,7 @@
|
|
45
45
|
"@metrichor/jmespath": "0.3.1",
|
46
46
|
"@wavemaker/focus-trap": "1.0.1",
|
47
47
|
"@wavemaker/nvd3": "1.8.12",
|
48
|
-
"@wavemaker/variables": "12.0.0-next.
|
48
|
+
"@wavemaker/variables": "12.0.0-next.1417180",
|
49
49
|
"@ztree/ztree_v3": "3.5.48",
|
50
50
|
"angular-imask": "^7.6.1",
|
51
51
|
"angular2-websocket": "0.9.7",
|
@@ -70,7 +70,7 @@
|
|
70
70
|
"tslib": "2.4.1",
|
71
71
|
"x2js": "3.4.4",
|
72
72
|
"zone.js": "0.14.7",
|
73
|
-
"@wavemaker/app-ng-runtime": "12.0.0-next.
|
73
|
+
"@wavemaker/app-ng-runtime": "12.0.0-next.1417180"
|
74
74
|
},
|
75
75
|
"devDependencies": {
|
76
76
|
"@ampproject/rollup-plugin-closure-compiler": "^0.27.0",
|
@@ -30,85 +30,85 @@
|
|
30
30
|
"node_modules/rxjs-compat/_esm2015/Observable"
|
31
31
|
],
|
32
32
|
"@wm/build-task": [
|
33
|
-
"
|
33
|
+
"node_modules/@wavemaker/app-ng-runtime/build-task/"
|
34
34
|
],
|
35
35
|
"@wm/mobile-build-task": [
|
36
|
-
"
|
36
|
+
"node_modules/@wavemaker/app-ng-runtime/mobile-build-task"
|
37
37
|
],
|
38
38
|
"@wm/core": [
|
39
|
-
"
|
39
|
+
"node_modules/@wavemaker/app-ng-runtime/core"
|
40
40
|
],
|
41
41
|
"@wavemaker/variables": [
|
42
42
|
"node_modules/@wavemaker/variables/"
|
43
43
|
],
|
44
44
|
"@wm/components/base": [
|
45
|
-
"
|
45
|
+
"node_modules/@wavemaker/app-ng-runtime/components/base"
|
46
46
|
],
|
47
47
|
"@wm/components/basic": [
|
48
|
-
"
|
48
|
+
"node_modules/@wavemaker/app-ng-runtime/components/basic/default"
|
49
49
|
],
|
50
50
|
"@wm/components/input": [
|
51
|
-
"
|
51
|
+
"node_modules/@wavemaker/app-ng-runtime/components/input/default"
|
52
52
|
],
|
53
53
|
"@wm/components/page": [
|
54
|
-
"
|
54
|
+
"node_modules/@wavemaker/app-ng-runtime/components/page/default"
|
55
55
|
],
|
56
56
|
"@wm/mobile/components/basic": [
|
57
|
-
"
|
57
|
+
"node_modules/@wavemaker/app-ng-runtime/mobile/components/basic/default"
|
58
58
|
],
|
59
59
|
"@wm/mobile/components/page": [
|
60
|
-
"
|
60
|
+
"node_modules/@wavemaker/app-ng-runtime/mobile/components/page/default"
|
61
61
|
],
|
62
62
|
"@wm/components/dialogs": [
|
63
|
-
"
|
63
|
+
"node_modules/@wavemaker/app-ng-runtime/components/dialogs/default"
|
64
64
|
],
|
65
65
|
"@wm/mobile/components/*": [
|
66
|
-
"
|
66
|
+
"node_modules/@wavemaker/app-ng-runtime/mobile/components/*"
|
67
67
|
],
|
68
68
|
"@wm/components/*": [
|
69
|
-
"
|
69
|
+
"node_modules/@wavemaker/app-ng-runtime/components/*"
|
70
70
|
],
|
71
71
|
"@wm/transpiler": [
|
72
|
-
"
|
72
|
+
"node_modules/@wavemaker/app-ng-runtime/transpiler"
|
73
73
|
],
|
74
74
|
"@wm/security": [
|
75
|
-
"
|
75
|
+
"node_modules/@wavemaker/app-ng-runtime/security"
|
76
76
|
],
|
77
77
|
"@swipey": [
|
78
|
-
"
|
78
|
+
"node_modules/@wavemaker/app-ng-runtime/swipey"
|
79
79
|
],
|
80
80
|
"@wm/http": [
|
81
|
-
"
|
81
|
+
"node_modules/@wavemaker/app-ng-runtime/http"
|
82
82
|
],
|
83
83
|
"@wm/oAuth": [
|
84
|
-
"
|
84
|
+
"node_modules/@wavemaker/app-ng-runtime/oAuth"
|
85
85
|
],
|
86
86
|
"@wm/variables": [
|
87
|
-
"
|
87
|
+
"node_modules/@wavemaker/app-ng-runtime/variables"
|
88
88
|
],
|
89
89
|
"@wm/mobile/core": [
|
90
|
-
"
|
90
|
+
"node_modules/@wavemaker/app-ng-runtime/mobile/core"
|
91
91
|
],
|
92
92
|
"@wm/mobile/components": [
|
93
|
-
"
|
93
|
+
"node_modules/@wavemaker/app-ng-runtime/mobile/components"
|
94
94
|
],
|
95
95
|
"@wm/mobile/offline": [
|
96
|
-
"
|
96
|
+
"node_modules/@wavemaker/app-ng-runtime/mobile/offline"
|
97
97
|
],
|
98
98
|
"@wm/mobile/variables": [
|
99
|
-
"
|
99
|
+
"node_modules/@wavemaker/app-ng-runtime/mobile/variables"
|
100
100
|
],
|
101
101
|
"@wm/runtime/base": [
|
102
|
-
"
|
102
|
+
"node_modules/@wavemaker/app-ng-runtime/runtime/base"
|
103
103
|
],
|
104
104
|
"@wm/runtime/dynamic": [
|
105
|
-
"
|
105
|
+
"node_modules/@wavemaker/app-ng-runtime/runtime/dynamic"
|
106
106
|
],
|
107
107
|
"@wm/mobile/runtime": [
|
108
|
-
"
|
108
|
+
"node_modules/@wavemaker/app-ng-runtime/mobile/runtime"
|
109
109
|
],
|
110
110
|
"@wm/mobile/runtime/dynamic": [
|
111
|
-
"
|
111
|
+
"node_modules/@wavemaker/app-ng-runtime/mobile/runtime-dynamic"
|
112
112
|
]
|
113
113
|
},
|
114
114
|
"useDefineForClassFields": false
|
@@ -118,4 +118,4 @@
|
|
118
118
|
"strictMetadataEmit": false,
|
119
119
|
"fullTemplateTypeCheck": false
|
120
120
|
}
|
121
|
-
}
|
121
|
+
}
|
@@ -29,74 +29,74 @@
|
|
29
29
|
"node_modules/rxjs-compat/_esm2015/Observable"
|
30
30
|
],
|
31
31
|
"@wm/build-task": [
|
32
|
-
"
|
32
|
+
"node_modules/@wavemaker/app-ng-runtime/build-task/"
|
33
33
|
],
|
34
34
|
"@wm/mobile-build-task": [
|
35
|
-
"
|
35
|
+
"node_modules/@wavemaker/app-ng-runtime/mobile-build-task"
|
36
36
|
],
|
37
37
|
"@wm/core": [
|
38
|
-
"
|
38
|
+
"node_modules/@wavemaker/app-ng-runtime/core"
|
39
39
|
],
|
40
40
|
"@wm/components/basic": [
|
41
|
-
"
|
41
|
+
"node_modules/@wavemaker/app-ng-runtime/components/basic/default"
|
42
42
|
],
|
43
43
|
"@wm/components/input": [
|
44
|
-
"
|
44
|
+
"node_modules/@wavemaker/app-ng-runtime/components/input/default"
|
45
45
|
],
|
46
46
|
"@wm/components/page": [
|
47
|
-
"
|
47
|
+
"node_modules/@wavemaker/app-ng-runtime/components/page/default"
|
48
48
|
],
|
49
49
|
"@wm/components/dialogs": [
|
50
|
-
"
|
50
|
+
"node_modules/@wavemaker/app-ng-runtime/components/dialogs/default"
|
51
51
|
],
|
52
52
|
"@wm/components/*": [
|
53
|
-
"
|
53
|
+
"node_modules/@wavemaker/app-ng-runtime/components/*"
|
54
54
|
],
|
55
55
|
"@wm/transpiler": [
|
56
|
-
"
|
56
|
+
"node_modules/@wavemaker/app-ng-runtime/transpiler"
|
57
57
|
],
|
58
58
|
"@wm/security": [
|
59
|
-
"
|
59
|
+
"node_modules/@wavemaker/app-ng-runtime/security"
|
60
60
|
],
|
61
61
|
"@swipey": [
|
62
|
-
"
|
62
|
+
"node_modules/@wavemaker/app-ng-runtime/swipey"
|
63
63
|
],
|
64
64
|
"@wm/http": [
|
65
|
-
"
|
65
|
+
"node_modules/@wavemaker/app-ng-runtime/http"
|
66
66
|
],
|
67
67
|
"@wm/oAuth": [
|
68
|
-
"
|
68
|
+
"node_modules/@wavemaker/app-ng-runtime/oAuth"
|
69
69
|
],
|
70
70
|
"@wm/variables": [
|
71
|
-
"
|
71
|
+
"node_modules/@wavemaker/app-ng-runtime/variables"
|
72
72
|
],
|
73
73
|
"@wm/mobile/core": [
|
74
|
-
"
|
74
|
+
"node_modules/@wavemaker/app-ng-runtime/mobile/core"
|
75
75
|
],
|
76
76
|
"@wm/mobile/components": [
|
77
|
-
"
|
77
|
+
"node_modules/@wavemaker/app-ng-runtime/mobile/components"
|
78
78
|
],
|
79
79
|
"@wm/mobile/offline": [
|
80
|
-
"
|
80
|
+
"node_modules/@wavemaker/app-ng-runtime/mobile/offline"
|
81
81
|
],
|
82
82
|
"@wm/mobile/variables": [
|
83
|
-
"
|
83
|
+
"node_modules/@wavemaker/app-ng-runtime/mobile/variables"
|
84
84
|
],
|
85
85
|
"@wm/runtime/base": [
|
86
|
-
"
|
86
|
+
"node_modules/@wavemaker/app-ng-runtime/runtime/base"
|
87
87
|
],
|
88
88
|
"@wm/runtime/dynamic": [
|
89
|
-
"
|
89
|
+
"node_modules/@wavemaker/app-ng-runtime/runtime/dynamic"
|
90
90
|
],
|
91
91
|
"@wm/mobile/runtime": [
|
92
|
-
"
|
92
|
+
"node_modules/@wavemaker/app-ng-runtime/mobile/placeholder/runtime"
|
93
93
|
],
|
94
94
|
"@wm/mobile/runtime-dynamic": [
|
95
|
-
"
|
95
|
+
"node_modules/@wavemaker/app-ng-runtime/mobile/placeholder/runtime/dynamic"
|
96
96
|
]
|
97
97
|
}
|
98
98
|
},
|
99
|
-
"angularCompilerOptions":{
|
99
|
+
"angularCompilerOptions": {
|
100
100
|
"compilationMode": "full"
|
101
101
|
}
|
102
|
-
}
|
102
|
+
}
|
@@ -14,7 +14,8 @@
|
|
14
14
|
*/
|
15
15
|
const fs = require('fs');
|
16
16
|
const { downloadNPMPackage } = require('./download-packages');
|
17
|
-
|
17
|
+
const archiver = require('archiver');
|
18
|
+
const path = require("path");
|
18
19
|
const { executeSyncCmd, MSG_NG_RUNTIME_LOG, MSG_NG_RUNTIME_SUCCESS } = require('./build-util');
|
19
20
|
|
20
21
|
/**
|
@@ -73,7 +74,29 @@ const buildAngularApp = (args) => {
|
|
73
74
|
executeSyncCmd('cd ' + args.appTarget + ' && node ./build-scripts/build.js ' + ngBuildParams, null, MSG_NG_RUNTIME_LOG, false, NG_BUILD_MSG);
|
74
75
|
}
|
75
76
|
|
77
|
+
const generateUiZip = async( sourceDir ) => {
|
78
|
+
return new Promise((resolve, reject) => {
|
79
|
+
const distDir = path.resolve(sourceDir + '/target/ui-build/output-files');
|
80
|
+
const zipFile = path.resolve(sourceDir + '/target/ui-artifact.zip');
|
81
|
+
|
82
|
+
const output = fs.createWriteStream(zipFile);
|
83
|
+
const archive = archiver('zip', {
|
84
|
+
zlib: {level: 9}
|
85
|
+
});
|
86
|
+
output.on('close', () => {
|
87
|
+
console.log(`✅ ui-artifact.zip created successfully: ${zipFile}`);
|
88
|
+
resolve();
|
89
|
+
});
|
90
|
+
archive.on('error', (err) => {
|
91
|
+
reject(err);
|
92
|
+
});
|
93
|
+
archive.pipe(output);
|
94
|
+
archive.directory(distDir, false);
|
95
|
+
archive.finalize();
|
96
|
+
});
|
97
|
+
}
|
76
98
|
|
77
99
|
module.exports = {
|
78
|
-
buildAngularApp
|
100
|
+
buildAngularApp,
|
101
|
+
generateUiZip
|
79
102
|
}
|