@wavemaker/angular-codegen 11.0.0-next.138502 → 11.0.0-next.138551

Sign up to get free protection for your applications and to get access to all the features.
@@ -3,57 +3,55 @@
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
- "@ionic-native/app-version": "4.10.0",
32
- "@ionic-native/barcode-scanner": "4.10.0",
33
- "@ionic-native/calendar": "4.10.0",
34
- "@ionic-native/camera": "4.10.0",
35
- "@ionic-native/contacts": "4.10.0",
36
- "@ionic-native/core": "4.10.0",
37
- "@ionic-native/device": "4.10.0",
38
- "@ionic-native/diagnostic": "4.10.0",
39
- "@ionic-native/file": "4.10.0",
40
- "@ionic-native/file-opener": "4.10.0",
41
- "@ionic-native/geolocation": "4.10.0",
42
- "@ionic-native/location-accuracy": "4.10.0",
43
- "@ionic-native/media-capture": "4.10.0",
44
- "@ionic-native/network": "4.10.0",
45
- "@ionic-native/sqlite": "4.10.0",
46
- "@ionic-native/vibration": "4.10.0",
31
+ "@awesome-cordova-plugins/app-version": "5.39.1",
32
+ "@awesome-cordova-plugins/barcode-scanner": "5.39.1",
33
+ "@awesome-cordova-plugins/calendar": "5.39.1",
34
+ "@awesome-cordova-plugins/camera": "5.39.1",
35
+ "@awesome-cordova-plugins/core": "5.39.1",
36
+ "@awesome-cordova-plugins/device": "5.39.1",
37
+ "@awesome-cordova-plugins/diagnostic": "5.39.1",
38
+ "@awesome-cordova-plugins/file": "5.39.1",
39
+ "@awesome-cordova-plugins/file-opener": "5.39.1",
40
+ "@awesome-cordova-plugins/geolocation": "5.39.1",
41
+ "@awesome-cordova-plugins/location-accuracy": "5.39.1",
42
+ "@awesome-cordova-plugins/media-capture": "5.39.1",
43
+ "@awesome-cordova-plugins/network": "5.39.1",
44
+ "@awesome-cordova-plugins/sqlite": "5.39.1",
45
+ "@awesome-cordova-plugins/vibration": "5.39.1",
47
46
  "@wavemaker.com/nvd3": "1.0.0",
48
47
  "angular-imask": "6.0.4",
49
48
  "angular2-websocket": "0.9.7",
50
- "core-js": "2.5.4",
51
49
  "d3": "3.5.17",
52
50
  "fullcalendar": "3.10.0",
53
51
  "hammerjs": "2.0.8",
54
52
  "he": "1.2.0",
55
53
  "iscroll": "5.2.0",
56
- "jquery": "3.4.1",
54
+ "jquery": "3.6.0",
57
55
  "jquery-ui": "1.13.0",
58
56
  "js-cookie": "2.2.0",
59
57
  "jssha": "^3.1.2",
@@ -67,16 +65,16 @@
67
65
  "summernote": "0.8.11",
68
66
  "tslib": "^2.0.0",
69
67
  "x2js": "3.2.6",
70
- "zone.js": "~0.10.3",
71
- "@wavemaker/app-ng-runtime": "11.0.0-next.138502"
68
+ "zone.js": "~0.11.4",
69
+ "@wavemaker/app-ng-runtime": "11.0.0-next.138551"
72
70
  },
73
71
  "devDependencies": {
74
72
  "@ampproject/rollup-plugin-closure-compiler": "0.8.5",
75
73
  "@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",
74
+ "@angular-devkit/build-angular": "12.2.16",
75
+ "@angular/cli": "12.2.16",
76
+ "@angular/compiler-cli": "12.2.16",
77
+ "@angular/language-service": "12.2.16",
80
78
  "@babel/plugin-transform-runtime": "^7.14.5",
81
79
  "@compodoc/compodoc": "1.1.11",
82
80
  "@types/jasmine": "2.8.8",
@@ -88,7 +86,6 @@
88
86
  "cheerio": "1.0.0-rc.2",
89
87
  "codelyzer": "5.1.2",
90
88
  "compression-webpack-plugin": "4.0.1",
91
- "core-js-builder": "2.5.7",
92
89
  "fs": "0.0.1-security",
93
90
  "fs-extra": "7.0.1",
94
91
  "istanbul-api": "1.2.2",
@@ -96,14 +93,14 @@
96
93
  "jasmine": "3.5.0",
97
94
  "jasmine-core": "~3.5.0",
98
95
  "jasmine-spec-reporter": "~5.0.0",
99
- "karma": "~5.0.0",
96
+ "karma": "~6.3.15",
100
97
  "karma-chrome-launcher": "~3.1.0",
101
98
  "karma-coverage-istanbul-reporter": "~3.0.2",
102
99
  "karma-jasmine": "~4.0.0",
103
100
  "karma-jasmine-html-reporter": "^1.5.0",
104
101
  "karma-mocha-reporter": "2.2.5",
105
102
  "moment": "2.24.0",
106
- "ng-packagr": "11.2.4",
103
+ "ng-packagr": "12.2.7",
107
104
  "npm-run-all": "4.1.5",
108
105
  "rimraf": "2.6.3",
109
106
  "rollup": "0.65.2",
@@ -114,7 +111,7 @@
114
111
  "rollup-plugin-node-resolve": "3.4.0",
115
112
  "ts-node": "7.0.1",
116
113
  "tslint": "~6.1.0",
117
- "typescript": "4.1.6",
114
+ "typescript": "4.3.5",
118
115
  "util": "0.11.1",
119
116
  "yargs": "^17.3.1"
120
117
  }
@@ -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 + ' ' + 'npm run build -- ' + ngBuildParams, null, MSG_NG_RUNTIME_LOG, false, NG_BUILD_MSG);
63
66
  }
64
67
 
65
68