@wavemaker/angular-codegen 11.0.0-next.138578 → 11.0.0-next.138579
Sign up to get free protection for your applications and to get access to all the features.
- angular-codegen/angular-app/angular.json +18 -6
- angular-codegen/angular-app/build-scripts/post-build.js +0 -2
- angular-codegen/angular-app/package-lock.json +35272 -27088
- angular-codegen/angular-app/package.json +29 -29
- angular-codegen/angular-app/src/.browserslistrc +1 -1
- angular-codegen/angular-app/src/environments/environment.ts +1 -1
- angular-codegen/angular-app/src/polyfills.ts +1 -1
- angular-codegen/build-angular-app.js +7 -4
- angular-codegen/dependencies/transpilation-mobile.cjs.js +4675 -1969
- angular-codegen/dependencies/transpilation-web.cjs.js +4675 -1969
- angular-codegen/package.json +1 -1
@@ -3,30 +3,30 @@
|
|
3
3
|
"version": "0.0.0",
|
4
4
|
"scripts": {
|
5
5
|
"ng": "ng",
|
6
|
-
"start": "ng serve",
|
7
|
-
"build": "ng build",
|
8
|
-
"
|
9
|
-
"
|
10
|
-
"
|
11
|
-
"
|
6
|
+
"start": "./node_modules/@angular/cli/bin/ng serve",
|
7
|
+
"build": "./node_modules/@angular/cli/bin/ng build",
|
8
|
+
"postbuild": "node build-scripts/post-build.js",
|
9
|
+
"test": "./node_modules/@angular/cli/bin/ng test",
|
10
|
+
"test_components": "./node_modules/@angular/cli/bin/ng t @wm/components/base",
|
11
|
+
"test_mobile": "./node_modules/@angular/cli/bin/ng t @wm/mobile/components/basic",
|
12
|
+
"test_variables": "./node_modules/@angular/cli/bin/ng t @wm/variables",
|
12
13
|
"test-all": "npm run test_variables && npm run test_components",
|
13
14
|
"test-prod": "npm run test-all > karma-test-report.txt; node combine-coverage.js >> karma-test-report.txt",
|
14
|
-
"lint": "ng lint",
|
15
|
-
"e2e": "ng e2e",
|
16
|
-
"optimizecss": "gulp --gulpfile build-scripts/optimize-css.gulpfile.js"
|
17
|
-
"postbuild": "node build-scripts/post-build.js"
|
15
|
+
"lint": "./node_modules/@angular/cli/bin/ng lint",
|
16
|
+
"e2e": "./node_modules/@angular/cli/bin/ng e2e",
|
17
|
+
"optimizecss": "gulp --gulpfile build-scripts/optimize-css.gulpfile.js"
|
18
18
|
},
|
19
19
|
"private": true,
|
20
20
|
"dependencies": {
|
21
|
-
"@angular/animations": "
|
22
|
-
"@angular/common": "
|
23
|
-
"@angular/compiler": "
|
24
|
-
"@angular/core": "
|
25
|
-
"@angular/forms": "
|
26
|
-
"@angular/platform-browser": "
|
27
|
-
"@angular/platform-browser-dynamic": "
|
28
|
-
"@angular/router": "
|
29
|
-
"@angular/service-worker": "
|
21
|
+
"@angular/animations": "12.2.16",
|
22
|
+
"@angular/common": "12.2.16",
|
23
|
+
"@angular/compiler": "12.2.16",
|
24
|
+
"@angular/core": "12.2.16",
|
25
|
+
"@angular/forms": "12.2.16",
|
26
|
+
"@angular/platform-browser": "12.2.16",
|
27
|
+
"@angular/platform-browser-dynamic": "12.2.16",
|
28
|
+
"@angular/router": "12.2.16",
|
29
|
+
"@angular/service-worker": "12.2.16",
|
30
30
|
"@babel/runtime": "^7.14.8",
|
31
31
|
"@awesome-cordova-plugins/app-version": "5.39.1",
|
32
32
|
"@awesome-cordova-plugins/barcode-scanner": "5.39.1",
|
@@ -53,7 +53,7 @@
|
|
53
53
|
"hammerjs": "2.0.8",
|
54
54
|
"he": "1.2.0",
|
55
55
|
"iscroll": "5.2.0",
|
56
|
-
"jquery": "3.
|
56
|
+
"jquery": "3.6.0",
|
57
57
|
"jquery-ui": "1.13.0",
|
58
58
|
"js-cookie": "2.2.0",
|
59
59
|
"jssha": "^3.1.2",
|
@@ -67,16 +67,16 @@
|
|
67
67
|
"summernote": "0.8.11",
|
68
68
|
"tslib": "^2.0.0",
|
69
69
|
"x2js": "3.2.6",
|
70
|
-
"zone.js": "~0.
|
71
|
-
"@wavemaker/app-ng-runtime": "11.0.0-next.
|
70
|
+
"zone.js": "~0.11.4",
|
71
|
+
"@wavemaker/app-ng-runtime": "11.0.0-next.138579"
|
72
72
|
},
|
73
73
|
"devDependencies": {
|
74
74
|
"@ampproject/rollup-plugin-closure-compiler": "0.8.5",
|
75
75
|
"@angular-builders/custom-webpack": "11.1.1",
|
76
|
-
"@angular-devkit/build-angular": "
|
77
|
-
"@angular/cli": "
|
78
|
-
"@angular/compiler-cli": "
|
79
|
-
"@angular/language-service": "
|
76
|
+
"@angular-devkit/build-angular": "12.2.16",
|
77
|
+
"@angular/cli": "12.2.16",
|
78
|
+
"@angular/compiler-cli": "12.2.16",
|
79
|
+
"@angular/language-service": "12.2.16",
|
80
80
|
"@babel/plugin-transform-runtime": "^7.14.5",
|
81
81
|
"@compodoc/compodoc": "1.1.11",
|
82
82
|
"@types/jasmine": "2.8.8",
|
@@ -96,14 +96,14 @@
|
|
96
96
|
"jasmine": "3.5.0",
|
97
97
|
"jasmine-core": "~3.5.0",
|
98
98
|
"jasmine-spec-reporter": "~5.0.0",
|
99
|
-
"karma": "~
|
99
|
+
"karma": "~6.3.15",
|
100
100
|
"karma-chrome-launcher": "~3.1.0",
|
101
101
|
"karma-coverage-istanbul-reporter": "~3.0.2",
|
102
102
|
"karma-jasmine": "~4.0.0",
|
103
103
|
"karma-jasmine-html-reporter": "^1.5.0",
|
104
104
|
"karma-mocha-reporter": "2.2.5",
|
105
105
|
"moment": "2.24.0",
|
106
|
-
"ng-packagr": "
|
106
|
+
"ng-packagr": "12.2.7",
|
107
107
|
"npm-run-all": "4.1.5",
|
108
108
|
"rimraf": "2.6.3",
|
109
109
|
"rollup": "0.65.2",
|
@@ -114,7 +114,7 @@
|
|
114
114
|
"rollup-plugin-node-resolve": "3.4.0",
|
115
115
|
"ts-node": "7.0.1",
|
116
116
|
"tslint": "~6.1.0",
|
117
|
-
"typescript": "4.
|
117
|
+
"typescript": "4.3.5",
|
118
118
|
"util": "0.11.1",
|
119
119
|
"yargs": "^17.3.1"
|
120
120
|
}
|
@@ -13,4 +13,4 @@ export const environment = {
|
|
13
13
|
* This import should be commented out in production mode because it will have a negative impact
|
14
14
|
* on performance if an error is thrown.
|
15
15
|
*/
|
16
|
-
// import 'zone.js/
|
16
|
+
// import 'zone.js/plugins/zone-error'; // Included with Angular CLI.
|
@@ -61,7 +61,7 @@ import 'core-js/es6/reflect';
|
|
61
61
|
/***************************************************************************************************
|
62
62
|
* Zone JS is required by default for Angular itself.
|
63
63
|
*/
|
64
|
-
import 'zone.js
|
64
|
+
import 'zone.js'; // Included with Angular CLI.
|
65
65
|
|
66
66
|
|
67
67
|
/***************************************************************************************************
|
@@ -20,10 +20,13 @@ const { executeSyncCmd, MSG_NG_RUNTIME_LOG, MSG_NG_RUNTIME_SUCCESS } = require(
|
|
20
20
|
/**
|
21
21
|
* @TODO: This is a temporary workaround to extract deploy-url from 'ngBuildParams', need to be replaced in future.
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const updateDeployUrl = (ngBuildParams) => {
|
24
24
|
let buildArgs = ngBuildParams.split(' ');
|
25
25
|
const deployParam = buildArgs.find(i => i.startsWith("--deploy-url="));
|
26
|
-
|
26
|
+
if(!deployParam) {
|
27
|
+
buildArgs.push("--deploy-url=ng-bundle/");
|
28
|
+
}
|
29
|
+
return ngBuildParams = buildArgs.join(" ");
|
27
30
|
};
|
28
31
|
|
29
32
|
/**
|
@@ -56,10 +59,10 @@ const buildAngularApp = (args) => {
|
|
56
59
|
process.exit(err.code || err.pid);
|
57
60
|
}
|
58
61
|
|
59
|
-
|
62
|
+
let ngBuildParams = updateDeployUrl(args.ngBuildParams);
|
60
63
|
const NG_BUILD_MSG = 'NG BUILD MIGHT HAVE FAILED WITH HEAP OUT OF MEMORY, RE-EXECUTE THE BUILD BY INCREASING THE MAX-OLD-SPACE-SIZE ARGUMENT VALUE FOR BUILD.UI.NODE.ARGS PROPERTY IN DEPLOYMENT PROFILE';
|
61
64
|
// Generating the angular build and post build process.
|
62
|
-
executeSyncCmd('cd ' + args.appTarget + ' && node ' + args.nodeVMArgs + '
|
65
|
+
executeSyncCmd('cd ' + args.appTarget + ' && node ' + args.nodeVMArgs + ' `which npm`' + ' run build -- ' + ngBuildParams, null, MSG_NG_RUNTIME_LOG, false, NG_BUILD_MSG);
|
63
66
|
}
|
64
67
|
|
65
68
|
|