@wavemaker/angular-codegen 11.1.0-next.24306 → 11.1.0-next.24310

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.
@@ -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
- "test": "ng test",
9
- "test_components": "ng t @wm/components/base",
10
- "test_mobile": "ng t @wm/mobile/components/basic",
11
- "test_variables": "ng t @wm/variables",
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": "11.2.14",
22
- "@angular/common": "11.2.14",
23
- "@angular/compiler": "11.2.14",
24
- "@angular/core": "11.2.14",
25
- "@angular/forms": "11.2.14",
26
- "@angular/platform-browser": "11.2.14",
27
- "@angular/platform-browser-dynamic": "11.2.14",
28
- "@angular/router": "11.2.14",
29
- "@angular/service-worker": "11.2.14",
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,11 +53,11 @@
53
53
  "hammerjs": "2.0.8",
54
54
  "he": "1.2.0",
55
55
  "iscroll": "5.2.0",
56
- "jquery": "3.4.1",
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",
60
- "lodash": "4.17.19",
60
+ "lodash": "4.17.21",
61
61
  "ng-circle-progress": "1.6.0",
62
62
  "ngx-bootstrap": "6.2.0",
63
63
  "ngx-color-picker": "10.1.0",
@@ -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.10.3",
71
- "@wavemaker/app-ng-runtime": "11.1.0-next.24306"
70
+ "zone.js": "~0.11.4",
71
+ "@wavemaker/app-ng-runtime": "11.1.0-next.24310"
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": "0.1102.15",
77
- "@angular/cli": "11.2.15",
78
- "@angular/compiler-cli": "11.2.14",
79
- "@angular/language-service": "11.2.14",
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": "~5.0.0",
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
- "moment": "2.24.0",
106
- "ng-packagr": "11.2.4",
105
+ "moment": "2.29.0",
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.1.6",
117
+ "typescript": "4.3.5",
118
118
  "util": "0.11.1",
119
119
  "yargs": "^17.3.1"
120
120
  }
@@ -9,4 +9,4 @@ last 2 versions
9
9
  Firefox ESR
10
10
  not dead
11
11
  not IE 9-10
12
- IE 11
12
+ not IE 11
@@ -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/dist/zone-error'; // Included with Angular CLI.
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/dist/zone'; // Included with Angular CLI.
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 getDeployUrl = (ngBuildParams) => {
23
+ const updateDeployUrl = (ngBuildParams) => {
24
24
  let buildArgs = ngBuildParams.split(' ');
25
25
  const deployParam = buildArgs.find(i => i.startsWith("--deploy-url="));
26
- return deployParam ? deployParam.split("=")[1] : 'ng-bundle/';
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
- const deployUrl = getDeployUrl(args.ngBuildParams);
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 + ' ' + './node_modules/@angular/cli/bin/ng build ' + args.ngBuildParams + ' && node build-scripts/post-build.js --deploy-url=' + deployUrl, null, MSG_NG_RUNTIME_LOG, false, NG_BUILD_MSG);
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