@wavemaker/angular-codegen 11.7.5-1.5782 → 11.7.5-1.5784
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 +1886 -0
- {package → angular-codegen}/angular-app/package-lock.json +5910 -3908
- {package → angular-codegen}/angular-app/package.json +26 -30
- {package → angular-codegen}/angular-app/src/setup-jest.js +2 -33
- {package → angular-codegen}/angular-app/tsconfig.json +0 -1
- {package → angular-codegen}/build-angular-app.js +11 -30
- angular-codegen/dependencies/expression-parser.cjs.js +21294 -0
- {package → angular-codegen}/dependencies/pipe-provider.cjs.js +76381 -144140
- {package → angular-codegen}/dependencies/transpilation-mobile.cjs.js +30087 -52793
- {package → angular-codegen}/dependencies/transpilation-web.cjs.js +30055 -63952
- {package → angular-codegen}/download-packages.js +0 -9
- angular-codegen/package-lock.json +5746 -0
- {package → angular-codegen}/package.json +1 -6
- angular-codegen/src/codegen-cli.js +1 -0
- {package → angular-codegen}/src/codegen.js +1 -1
- angular-codegen/src/gen-app-skeleton.js +1 -0
- package/angular-app/angular.json +0 -269
- package/dependencies/expression-parser.cjs.js +0 -50533
- package/package-lock.json +0 -7134
- package/src/codegen-cli.js +0 -1
- package/src/gen-app-skeleton.js +0 -1
- {package → angular-codegen}/.npmrc +0 -0
- {package → angular-codegen}/angular-app/.npmrc +0 -0
- {package → angular-codegen}/angular-app/build-scripts/build.js +0 -0
- {package → angular-codegen}/angular-app/build-scripts/index-html-transform.js +0 -0
- {package → angular-codegen}/angular-app/build-scripts/optimize-css.gulpfile.js +0 -0
- {package → angular-codegen}/angular-app/build-scripts/post-build.js +0 -0
- {package → angular-codegen}/angular-app/src/.browserslistrc +0 -0
- {package → angular-codegen}/angular-app/src/app/app-codegen.module.ts +0 -0
- {package → angular-codegen}/angular-app/src/app/app.component.css +0 -0
- {package → angular-codegen}/angular-app/src/app/app.component.script.js +0 -0
- {package → angular-codegen}/angular-app/src/app/app.component.variables.ts +0 -0
- {package → angular-codegen}/angular-app/src/app/app.routes.ts +0 -0
- {package → angular-codegen}/angular-app/src/app/lazy-load-scripts.resolve.ts +0 -0
- {package → angular-codegen}/angular-app/src/app/prefabs/prefab-config.js +0 -0
- {package → angular-codegen}/angular-app/src/app/wm-project-properties.ts +0 -0
- {package → angular-codegen}/angular-app/src/assets/.gitkeep +0 -0
- {package → angular-codegen}/angular-app/src/assets/print.css +0 -0
- {package → angular-codegen}/angular-app/src/assets/styles/css/bootstrap.css.map +0 -0
- {package → angular-codegen}/angular-app/src/assets/styles/css/font/summernote.eot +0 -0
- {package → angular-codegen}/angular-app/src/assets/styles/css/font/summernote.ttf +0 -0
- {package → angular-codegen}/angular-app/src/assets/styles/css/font/summernote.woff +0 -0
- {package → angular-codegen}/angular-app/src/assets/styles/css/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
- {package → angular-codegen}/angular-app/src/assets/styles/css/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
- {package → angular-codegen}/angular-app/src/assets/styles/css/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
- {package → angular-codegen}/angular-app/src/assets/styles/css/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
- {package → angular-codegen}/angular-app/src/assets/styles/css/images/ui-bg_glass_75_dadada_1x400.png +0 -0
- {package → angular-codegen}/angular-app/src/assets/styles/css/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
- {package → angular-codegen}/angular-app/src/assets/styles/css/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
- {package → angular-codegen}/angular-app/src/assets/styles/css/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
- {package → angular-codegen}/angular-app/src/assets/styles/css/images/ui-icons_222222_256x240.png +0 -0
- {package → angular-codegen}/angular-app/src/assets/styles/css/images/ui-icons_2e83ff_256x240.png +0 -0
- {package → angular-codegen}/angular-app/src/assets/styles/css/images/ui-icons_444444_256x240.png +0 -0
- {package → angular-codegen}/angular-app/src/assets/styles/css/images/ui-icons_454545_256x240.png +0 -0
- {package → angular-codegen}/angular-app/src/assets/styles/css/images/ui-icons_555555_256x240.png +0 -0
- {package → angular-codegen}/angular-app/src/assets/styles/css/images/ui-icons_777620_256x240.png +0 -0
- {package → angular-codegen}/angular-app/src/assets/styles/css/images/ui-icons_777777_256x240.png +0 -0
- {package → angular-codegen}/angular-app/src/assets/styles/css/images/ui-icons_888888_256x240.png +0 -0
- {package → angular-codegen}/angular-app/src/assets/styles/css/images/ui-icons_cc0000_256x240.png +0 -0
- {package → angular-codegen}/angular-app/src/assets/styles/css/images/ui-icons_cd0a0a_256x240.png +0 -0
- {package → angular-codegen}/angular-app/src/assets/styles/css/images/ui-icons_ffffff_256x240.png +0 -0
- {package → angular-codegen}/angular-app/src/assets/styles/css/wm-responsive.css +0 -0
- {package → angular-codegen}/angular-app/src/assets/styles/css/wm-style.css +0 -0
- {package → angular-codegen}/angular-app/src/assets/styles/fonts/FontAwesome.otf +0 -0
- {package → angular-codegen}/angular-app/src/assets/styles/fonts/fontawesome-webfont.eot +0 -0
- {package → angular-codegen}/angular-app/src/assets/styles/fonts/fontawesome-webfont.svg +0 -0
- {package → angular-codegen}/angular-app/src/assets/styles/fonts/fontawesome-webfont.ttf +0 -0
- {package → angular-codegen}/angular-app/src/assets/styles/fonts/fontawesome-webfont.woff +0 -0
- {package → angular-codegen}/angular-app/src/assets/styles/fonts/fontawesome-webfont.woff2 +0 -0
- {package → angular-codegen}/angular-app/src/assets/styles/fonts/glyphicons-halflings-regular.eot +0 -0
- {package → angular-codegen}/angular-app/src/assets/styles/fonts/glyphicons-halflings-regular.svg +0 -0
- {package → angular-codegen}/angular-app/src/assets/styles/fonts/glyphicons-halflings-regular.ttf +0 -0
- {package → angular-codegen}/angular-app/src/assets/styles/fonts/glyphicons-halflings-regular.woff +0 -0
- {package → angular-codegen}/angular-app/src/assets/styles/fonts/glyphicons-halflings-regular.woff2 +0 -0
- {package → angular-codegen}/angular-app/src/assets/styles/fonts/wavicon.eot +0 -0
- {package → angular-codegen}/angular-app/src/assets/styles/fonts/wavicon.ttf +0 -0
- {package → angular-codegen}/angular-app/src/assets/styles/fonts/wavicon.woff +0 -0
- {package → angular-codegen}/angular-app/src/assets/styles/fonts/wm-streamline-light-icon.eot +0 -0
- {package → angular-codegen}/angular-app/src/assets/styles/fonts/wm-streamline-light-icon.ttf +0 -0
- {package → angular-codegen}/angular-app/src/assets/styles/fonts/wm-streamline-light-icon.woff +0 -0
- {package → angular-codegen}/angular-app/src/assets/styles/fonts/wm-streamline-regular-icon.eot +0 -0
- {package → angular-codegen}/angular-app/src/assets/styles/fonts/wm-streamline-regular-icon.ttf +0 -0
- {package → angular-codegen}/angular-app/src/assets/styles/fonts/wm-streamline-regular-icon.woff +0 -0
- {package → angular-codegen}/angular-app/src/assets/styles/images/live-sync-icon.png +0 -0
- {package → angular-codegen}/angular-app/src/assets/styles/images/live-sync-touch-icon.png +0 -0
- {package → angular-codegen}/angular-app/src/assets/styles/images/loader.gif +0 -0
- {package → angular-codegen}/angular-app/src/assets/styles/images/spinner-small.gif +0 -0
- {package → angular-codegen}/angular-app/src/assets/styles/images/ui-icons.png +0 -0
- {package → angular-codegen}/angular-app/src/environments/environment.dev.ts +0 -0
- {package → angular-codegen}/angular-app/src/environments/environment.prod.ts +0 -0
- {package → angular-codegen}/angular-app/src/environments/environment.ts +0 -0
- {package → angular-codegen}/angular-app/src/framework/angular1.polyfills.ts +0 -0
- {package → angular-codegen}/angular-app/src/framework/services/app-extension.service.ts +0 -0
- {package → angular-codegen}/angular-app/src/framework/services/app-js-provider.service.ts +0 -0
- {package → angular-codegen}/angular-app/src/framework/services/app-variables-provider.service.ts +0 -0
- {package → angular-codegen}/angular-app/src/framework/services/component-ref-provider.service.ts +0 -0
- {package → angular-codegen}/angular-app/src/framework/services/lazy-component-ref-provider.service.ts +0 -0
- {package → angular-codegen}/angular-app/src/framework/services/prefab-config-provider.service.ts +0 -0
- {package → angular-codegen}/angular-app/src/framework/util/lazy-module-routes.ts +0 -0
- {package → angular-codegen}/angular-app/src/framework/util/page-util.ts +0 -0
- {package → angular-codegen}/angular-app/src/index.html +0 -0
- {package → angular-codegen}/angular-app/src/main.ts +0 -0
- {package → angular-codegen}/angular-app/src/polyfills.ts +0 -0
- {package → angular-codegen}/angular-app/src/styles.css +0 -0
- {package → angular-codegen}/angular-app/src/tsconfig.app.json +0 -0
- {package → angular-codegen}/angular-app/src/tslint.json +0 -0
- {package → angular-codegen}/angular-app/tsconfig.web-app.json +0 -0
- {package → angular-codegen}/angular-app/wm-custom-webpack.config.js +0 -0
- {package → angular-codegen}/build-util.js +0 -0
- {package → angular-codegen}/dependencies/app.component.html +0 -0
- {package → angular-codegen}/generate-angular-app.js +0 -0
- {package → angular-codegen}/pwa-assets/icons/icon-128x128.png +0 -0
- {package → angular-codegen}/pwa-assets/icons/icon-144x144.png +0 -0
- {package → angular-codegen}/pwa-assets/icons/icon-152x152.png +0 -0
- {package → angular-codegen}/pwa-assets/icons/icon-192x192.png +0 -0
- {package → angular-codegen}/pwa-assets/icons/icon-384x384.png +0 -0
- {package → angular-codegen}/pwa-assets/icons/icon-512x512.png +0 -0
- {package → angular-codegen}/pwa-assets/icons/icon-72x72.png +0 -0
- {package → angular-codegen}/pwa-assets/icons/icon-96x96.png +0 -0
- {package → angular-codegen}/pwa-assets/manifest.json +0 -0
- {package → angular-codegen}/pwa-assets/ngsw-config.json +0 -0
- {package → angular-codegen}/pwa-assets/wmsw-worker.js +0 -0
- {package → angular-codegen}/src/codegen-args-cli.js +0 -0
- {package → angular-codegen}/src/expr-parser-utils.js +0 -0
- {package → angular-codegen}/src/gen-app-codegen-module.js +0 -0
- {package → angular-codegen}/src/gen-app-js.js +0 -0
- {package → angular-codegen}/src/gen-app-prefabs-module.js +0 -0
- {package → angular-codegen}/src/gen-app-routes.js +0 -0
- {package → angular-codegen}/src/gen-app-variables.js +0 -0
- {package → angular-codegen}/src/gen-components.js +0 -0
- {package → angular-codegen}/src/gen-index-html.js +0 -0
- {package → angular-codegen}/src/gen-layouts.js +0 -0
- {package → angular-codegen}/src/gen-lazy-module-routes.js +0 -0
- {package → angular-codegen}/src/gen-prefabs.js +0 -0
- {package → angular-codegen}/src/gen-pwa-files.js +0 -0
- {package → angular-codegen}/src/gen-tsconfig.js +0 -0
- {package → angular-codegen}/src/gen-wm-project-properties.js +0 -0
- {package → angular-codegen}/src/handlebar-helpers.js +0 -0
- {package → angular-codegen}/src/pages-util.js +0 -0
- {package → angular-codegen}/src/project-meta.js +0 -0
- {package → angular-codegen}/src/update-angular-json.js +0 -0
- {package → angular-codegen}/src/wm-utils.js +0 -0
- {package → angular-codegen}/templates/app-codegen.module.ts.hbs +0 -0
- {package → angular-codegen}/templates/app-prefabs.module.ts.hbs +0 -0
- {package → angular-codegen}/templates/app-routes.ts.hbs +0 -0
- {package → angular-codegen}/templates/app.component.script.js.hbs +0 -0
- {package → angular-codegen}/templates/app.module.ts.hbs +0 -0
- {package → angular-codegen}/templates/component.expressions.ts.hbs +0 -0
- {package → angular-codegen}/templates/component.variables.ts.hbs +0 -0
- {package → angular-codegen}/templates/expr-vs-fn.hbs +0 -0
- {package → angular-codegen}/templates/layout/layout.component.ts.hbs +0 -0
- {package → angular-codegen}/templates/layout/layout.module.ts.hbs +0 -0
- {package → angular-codegen}/templates/lazy-module-routes.ts.hbs +0 -0
- {package → angular-codegen}/templates/page/page.component.script.js.hbs +0 -0
- {package → angular-codegen}/templates/page/page.component.ts.hbs +0 -0
- {package → angular-codegen}/templates/page/page.module.ts.hbs +0 -0
- {package → angular-codegen}/templates/partial/partial.component.script.js.hbs +0 -0
- {package → angular-codegen}/templates/partial/partial.component.ts.hbs +0 -0
- {package → angular-codegen}/templates/partial/partial.module.ts.hbs +0 -0
- {package → angular-codegen}/templates/prefab/prefab-config.ts.hbs +0 -0
- {package → angular-codegen}/templates/prefab/prefab.component.script.js.hbs +0 -0
- {package → angular-codegen}/templates/prefab/prefab.component.ts.hbs +0 -0
- {package → angular-codegen}/templates/prefab/prefab.module.ts.hbs +0 -0
- {package → angular-codegen}/templates/wm-project-properties.ts.hbs +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
|
-
"name": "
|
|
3
|
-
"version": "
|
|
2
|
+
"name": "wavemaker-ng-runtime-new",
|
|
3
|
+
"version": "0.0.0",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"ng": "ng",
|
|
6
6
|
"start": "./node_modules/.bin/ng serve",
|
|
@@ -15,20 +15,17 @@
|
|
|
15
15
|
"optimizecss": "gulp --gulpfile build-scripts/optimize-css.gulpfile.js",
|
|
16
16
|
"owasp": "owasp-dependency-check --project \"wavemaker-ng-runtime\" -f \"ALL\""
|
|
17
17
|
},
|
|
18
|
-
"
|
|
19
|
-
"**/*",
|
|
20
|
-
".npmrc"
|
|
21
|
-
],
|
|
18
|
+
"private": true,
|
|
22
19
|
"dependencies": {
|
|
23
|
-
"@angular/animations": "
|
|
24
|
-
"@angular/common": "
|
|
25
|
-
"@angular/compiler": "
|
|
26
|
-
"@angular/core": "
|
|
27
|
-
"@angular/forms": "
|
|
28
|
-
"@angular/platform-browser": "
|
|
29
|
-
"@angular/platform-browser-dynamic": "
|
|
30
|
-
"@angular/router": "
|
|
31
|
-
"@angular/service-worker": "
|
|
20
|
+
"@angular/animations": "16.2.12",
|
|
21
|
+
"@angular/common": "16.2.12",
|
|
22
|
+
"@angular/compiler": "16.2.12",
|
|
23
|
+
"@angular/core": "16.2.12",
|
|
24
|
+
"@angular/forms": "16.2.12",
|
|
25
|
+
"@angular/platform-browser": "16.2.12",
|
|
26
|
+
"@angular/platform-browser-dynamic": "16.2.12",
|
|
27
|
+
"@angular/router": "16.2.12",
|
|
28
|
+
"@angular/service-worker": "16.2.12",
|
|
32
29
|
"@awesome-cordova-plugins/app-version": "5.39.1",
|
|
33
30
|
"@awesome-cordova-plugins/barcode-scanner": "5.39.1",
|
|
34
31
|
"@awesome-cordova-plugins/calendar": "5.39.1",
|
|
@@ -46,9 +43,9 @@
|
|
|
46
43
|
"@awesome-cordova-plugins/vibration": "5.39.1",
|
|
47
44
|
"@babel/runtime": "7.14.8",
|
|
48
45
|
"@metrichor/jmespath": "0.3.1",
|
|
49
|
-
"@wavemaker/focus-trap": "1.0.
|
|
46
|
+
"@wavemaker/focus-trap": "1.0.0",
|
|
50
47
|
"@wavemaker/nvd3": "1.8.11",
|
|
51
|
-
"@wavemaker/variables": "11.7.5-1.
|
|
48
|
+
"@wavemaker/variables": "11.7.5-1.5784",
|
|
52
49
|
"@ztree/ztree_v3": "3.5.48",
|
|
53
50
|
"angular-imask": "^7.6.1",
|
|
54
51
|
"angular2-websocket": "0.9.7",
|
|
@@ -56,12 +53,13 @@
|
|
|
56
53
|
"d3": "7.8.5",
|
|
57
54
|
"fullcalendar": "5.3.1",
|
|
58
55
|
"hammerjs": "2.0.8",
|
|
56
|
+
"he": "1.2.0",
|
|
59
57
|
"iscroll": "5.2.0",
|
|
60
58
|
"jquery": "3.7.1",
|
|
61
|
-
"jquery-ui": "1.13.
|
|
59
|
+
"jquery-ui": "1.13.2",
|
|
62
60
|
"js-cookie": "2.2.0",
|
|
63
61
|
"jssha": "3.1.2",
|
|
64
|
-
"lodash
|
|
62
|
+
"lodash": "4.17.21",
|
|
65
63
|
"ng-circle-progress": "1.7.1",
|
|
66
64
|
"ngx-bootstrap": "9.0.0",
|
|
67
65
|
"ngx-color-picker": "16.0.0",
|
|
@@ -72,16 +70,16 @@
|
|
|
72
70
|
"ts-jest": "29.1.1",
|
|
73
71
|
"tslib": "2.4.1",
|
|
74
72
|
"x2js": "3.4.4",
|
|
75
|
-
"zone.js": "0.
|
|
76
|
-
"@wavemaker/app-ng-runtime": "11.7.5-1.
|
|
73
|
+
"zone.js": "0.13.3",
|
|
74
|
+
"@wavemaker/app-ng-runtime": "11.7.5-1.5784"
|
|
77
75
|
},
|
|
78
76
|
"devDependencies": {
|
|
79
77
|
"@ampproject/rollup-plugin-closure-compiler": "^0.27.0",
|
|
80
|
-
"@angular-builders/custom-webpack": "
|
|
81
|
-
"@angular-devkit/build-angular": "
|
|
82
|
-
"@angular/cli": "
|
|
83
|
-
"@angular/compiler-cli": "
|
|
84
|
-
"@angular/language-service": "
|
|
78
|
+
"@angular-builders/custom-webpack": "16.0.1",
|
|
79
|
+
"@angular-devkit/build-angular": "16.2.11",
|
|
80
|
+
"@angular/cli": "16.2.11",
|
|
81
|
+
"@angular/compiler-cli": "16.2.12",
|
|
82
|
+
"@angular/language-service": "16.2.12",
|
|
85
83
|
"@babel/plugin-transform-runtime": "^7.14.5",
|
|
86
84
|
"@compodoc/compodoc": "^1.1.19",
|
|
87
85
|
"@rollup/plugin-alias": "4.0.2",
|
|
@@ -90,7 +88,6 @@
|
|
|
90
88
|
"@rollup/plugin-node-resolve": "15.0.1",
|
|
91
89
|
"@types/jest": "^29.5.12",
|
|
92
90
|
"@types/jquery": "3.3.22",
|
|
93
|
-
"@types/lodash-es": "4.17.12",
|
|
94
91
|
"@types/node": "12.11.1",
|
|
95
92
|
"@types/sizzle": "^2.3.3",
|
|
96
93
|
"babel-loader": "^9.1.2",
|
|
@@ -101,11 +98,10 @@
|
|
|
101
98
|
"fs": "0.0.1-security",
|
|
102
99
|
"fs-extra": "7.0.1",
|
|
103
100
|
"jest": "^29.7.0",
|
|
104
|
-
"jest-canvas-mock": "^2.5.2",
|
|
105
101
|
"jest-preset-angular": "^14.1.0",
|
|
106
102
|
"moment": "2.29.4",
|
|
107
103
|
"moment-timezone": "^0.5.34",
|
|
108
|
-
"ng-packagr": "
|
|
104
|
+
"ng-packagr": "16.2.3",
|
|
109
105
|
"npm-run-all": "4.1.5",
|
|
110
106
|
"owasp-dependency-check": "0.0.21",
|
|
111
107
|
"rimraf": "2.6.3",
|
|
@@ -115,7 +111,7 @@
|
|
|
115
111
|
"terser": "^5.15.1",
|
|
116
112
|
"ts-node": "7.0.1",
|
|
117
113
|
"tslint": "~6.1.0",
|
|
118
|
-
"typescript": "
|
|
114
|
+
"typescript": "4.9.5",
|
|
119
115
|
"util": "0.11.1",
|
|
120
116
|
"yargs": "^17.3.1"
|
|
121
117
|
},
|
|
@@ -1,17 +1,15 @@
|
|
|
1
1
|
import "jest-preset-angular/setup-jest";
|
|
2
2
|
import { ToastrModule } from 'ngx-toastr';
|
|
3
3
|
import { TestBed } from '@angular/core/testing';
|
|
4
|
-
import _ from 'lodash-es';
|
|
5
|
-
import 'jest-canvas-mock';
|
|
6
4
|
|
|
7
5
|
// Mock global objects if necessary
|
|
8
6
|
global.jQuery = require("jquery");
|
|
9
7
|
global.$ = global.jQuery;
|
|
10
|
-
global._ = _;
|
|
11
8
|
|
|
12
9
|
|
|
13
|
-
global.moment = require("moment");
|
|
14
10
|
|
|
11
|
+
global._ = require("lodash");
|
|
12
|
+
global.moment = require("moment");
|
|
15
13
|
class IntersectionObserver {
|
|
16
14
|
constructor(callback, options) {
|
|
17
15
|
|
|
@@ -89,32 +87,3 @@ beforeEach(() => {
|
|
|
89
87
|
},
|
|
90
88
|
});
|
|
91
89
|
});
|
|
92
|
-
|
|
93
|
-
// jest.setup.js
|
|
94
|
-
Object.defineProperty(global.HTMLMediaElement.prototype, 'load', {
|
|
95
|
-
configurable: true,
|
|
96
|
-
enumerable: true,
|
|
97
|
-
writable: true,
|
|
98
|
-
value: jest.fn(),
|
|
99
|
-
});
|
|
100
|
-
|
|
101
|
-
Object.defineProperty(global.HTMLMediaElement.prototype, 'play', {
|
|
102
|
-
configurable: true,
|
|
103
|
-
enumerable: true,
|
|
104
|
-
writable: true,
|
|
105
|
-
value: jest.fn().mockResolvedValue(),
|
|
106
|
-
});
|
|
107
|
-
|
|
108
|
-
Object.defineProperty(global.HTMLMediaElement.prototype, 'pause', {
|
|
109
|
-
configurable: true,
|
|
110
|
-
enumerable: true,
|
|
111
|
-
writable: true,
|
|
112
|
-
value: jest.fn(),
|
|
113
|
-
});
|
|
114
|
-
|
|
115
|
-
Object.defineProperty(global.HTMLMediaElement.prototype, 'addTextTrack', {
|
|
116
|
-
configurable: true,
|
|
117
|
-
enumerable: true,
|
|
118
|
-
writable: true,
|
|
119
|
-
value: jest.fn(),
|
|
120
|
-
});
|
|
@@ -13,10 +13,9 @@
|
|
|
13
13
|
* optimizeUIBuild : By default this flag will be true. If it's windows platform we are making the flag to false, it means no optimisation for windows.
|
|
14
14
|
*/
|
|
15
15
|
const fs = require('fs');
|
|
16
|
-
const {
|
|
17
|
-
const os = require("os");
|
|
16
|
+
const { downloadNPMPackage } = require('./download-packages');
|
|
18
17
|
|
|
19
|
-
const
|
|
18
|
+
const { executeSyncCmd, MSG_NG_RUNTIME_LOG, MSG_NG_RUNTIME_SUCCESS } = require('./build-util');
|
|
20
19
|
|
|
21
20
|
/**
|
|
22
21
|
* @TODO: This is a temporary workaround to extract deploy-url from 'ngBuildParams', need to be replaced in future.
|
|
@@ -44,42 +43,24 @@ const updateDeployUrl = (args) => {
|
|
|
44
43
|
* Run the ng build and post build for the project
|
|
45
44
|
*/
|
|
46
45
|
const buildAngularApp = (args) => {
|
|
47
|
-
const HOME_DIR = os.homedir(), ANGULAR_APP_TEMPLATE_NAME = "angular-app";
|
|
48
|
-
const TARBALL_DOWNLOAD_PATH = (HOME_DIR + '/.wm/node_modules') + '/' + ANGULAR_APP_TEMPLATE_NAME + '/' + args.runtimeUIVersion;
|
|
49
|
-
const PACKAGE_NAME = NPM_PACKAGE_SCOPE + '/' + ANGULAR_APP_TEMPLATE_NAME + '@' + args.runtimeUIVersion;
|
|
50
|
-
const TARBALL_NAME = 'wavemaker' + '-' + ANGULAR_APP_TEMPLATE_NAME + '-' + args.runtimeUIVersion + '.tgz';
|
|
51
|
-
|
|
52
|
-
fs.mkdirSync(TARBALL_DOWNLOAD_PATH, { recursive: true });
|
|
53
|
-
//npm pack will download the given package as a tar file
|
|
54
|
-
executeSyncCmd('cd ' + TARBALL_DOWNLOAD_PATH + ` && npm pack ${PACKAGE_NAME}`, null, `Downloading tarball - ${PACKAGE_NAME} to the location - ${TARBALL_DOWNLOAD_PATH}`);
|
|
55
|
-
executeSyncCmd('cd ' + TARBALL_DOWNLOAD_PATH + ` && tar -xvf ${TARBALL_NAME}`, null, `Unzipping the tarball - ${TARBALL_NAME}`);
|
|
56
|
-
|
|
57
46
|
let packageInfo = {
|
|
58
|
-
|
|
59
|
-
name: ANGULAR_APP_TEMPLATE_NAME,
|
|
47
|
+
name: 'app-ng-runtime',
|
|
60
48
|
version: args.runtimeUIVersion,
|
|
61
|
-
packageJsonFile:
|
|
62
|
-
packageJsonLockFile: `${TARBALL_DOWNLOAD_PATH}/package/package-lock.json`,
|
|
49
|
+
packageJsonFile: args.codegenPath + '/angular-app/package.json',
|
|
63
50
|
successMsg: MSG_NG_RUNTIME_SUCCESS,
|
|
64
51
|
infoMsg: MSG_NG_RUNTIME_LOG
|
|
52
|
+
|
|
65
53
|
}
|
|
66
54
|
|
|
67
55
|
try {
|
|
56
|
+
// Symlink to reuse the existing node_modules
|
|
68
57
|
if (args.optimizeUIBuild) {
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
fs.
|
|
72
|
-
|
|
73
|
-
// Download angular-app node_modules
|
|
74
|
-
executeSyncCmd('cd ' + TARBALL_DOWNLOAD_PATH + ' && npm install ', null, "Installing app dependencies...");
|
|
75
|
-
|
|
76
|
-
// Symlink to reuse the existing node_modules
|
|
77
|
-
fs.symlinkSync(TARBALL_DOWNLOAD_PATH + `/node_modules`, args.appTarget + '/node_modules', 'dir');
|
|
58
|
+
// Download app-ng-runtime node modules
|
|
59
|
+
let pathNGRuntimePackage = downloadNPMPackage(packageInfo);
|
|
60
|
+
fs.symlinkSync(pathNGRuntimePackage + '/node_modules', args.appTarget + '/node_modules', 'dir');
|
|
78
61
|
} else {
|
|
79
|
-
fs.copyFileSync(
|
|
80
|
-
|
|
81
|
-
fs.copyFileSync(TARBALL_DOWNLOAD_PATH + `/package/.npmrc`, args.appTarget + '/.npmrc');
|
|
82
|
-
executeSyncCmd('cd ' + args.appTarget + ` && npm install `, null, MSG_NG_RUNTIME_LOG);
|
|
62
|
+
fs.copyFileSync(packageInfo.packageJsonFile, args.appTarget + '/package.json');
|
|
63
|
+
executeSyncCmd('cd ' + args.appTarget + ' && npm install', null, MSG_NG_RUNTIME_LOG);
|
|
83
64
|
}
|
|
84
65
|
} catch (err) {
|
|
85
66
|
console.log(MSG_NG_RUNTIME_LOG + 'FAILED the symlink for the node_modules', err);
|