@wavemaker/angular-codegen 11.2.0-next.140951 → 11.2.0-next.140954

Sign up to get free protection for your applications and to get access to all the features.
@@ -28,6 +28,8 @@ const generateHash = async (filepath) => {
28
28
  return hash.digest('hex');
29
29
  };
30
30
  const generateHashForScripts = (updatedFilenames) => {
31
+ //from angular 12(IVY), scripts array in angular json, doesn't allow `@` symbol in the name/value
32
+ //so removed `@` from wavemaker.com in the file name and adding it back in the post-build.js file
31
33
  const scriptsMap = {};
32
34
  return new Promise(resolve => {
33
35
  fs.readdir(opPath, (err, items) => {
@@ -3,32 +3,31 @@
3
3
  "version": "0.0.0",
4
4
  "scripts": {
5
5
  "ng": "ng",
6
- "start": "./node_modules/@angular/cli/bin/ng serve",
7
- "build": "./node_modules/@angular/cli/bin/ng build",
6
+ "start": "./node_modules/.bin/ng serve",
7
+ "build": "./node_modules/.bin/ng build",
8
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",
9
+ "test": "./node_modules/.bin/ng test",
10
+ "test_components": "./node_modules/.bin/ng t @wm/components/base",
11
+ "test_mobile": "./node_modules/.bin/ng t @wm/mobile/components/basic",
12
+ "test_variables": "./node_modules/.bin/ng t @wm/variables",
13
13
  "test-all": "npm run test_variables && npm run test_components",
14
14
  "test-prod": "npm run test-all > karma-test-report.txt; node combine-coverage.js >> karma-test-report.txt",
15
- "lint": "./node_modules/@angular/cli/bin/ng lint",
16
- "e2e": "./node_modules/@angular/cli/bin/ng e2e",
15
+ "lint": "./node_modules/.bin/ng lint",
16
+ "e2e": "./node_modules/.bin/ng e2e",
17
17
  "optimizecss": "gulp --gulpfile build-scripts/optimize-css.gulpfile.js",
18
18
  "owasp": "owasp-dependency-check --project \"wavemaker-ng-runtime\" -f \"ALL\""
19
19
  },
20
20
  "private": true,
21
21
  "dependencies": {
22
- "@angular/animations": "12.2.16",
23
- "@angular/common": "12.2.16",
24
- "@angular/compiler": "12.2.16",
25
- "@angular/core": "12.2.16",
26
- "@angular/forms": "12.2.16",
27
- "@angular/platform-browser": "12.2.16",
28
- "@angular/platform-browser-dynamic": "12.2.16",
29
- "@angular/router": "12.2.16",
30
- "@angular/service-worker": "12.2.16",
31
- "@babel/runtime": "^7.14.8",
22
+ "@angular/animations": "14.2.12",
23
+ "@angular/common": "14.2.12",
24
+ "@angular/compiler": "14.2.12",
25
+ "@angular/core": "14.2.12",
26
+ "@angular/forms": "14.2.12",
27
+ "@angular/platform-browser": "14.2.12",
28
+ "@angular/platform-browser-dynamic": "14.2.12",
29
+ "@angular/router": "14.2.12",
30
+ "@angular/service-worker": "14.2.12",
32
31
  "@awesome-cordova-plugins/app-version": "5.39.1",
33
32
  "@awesome-cordova-plugins/barcode-scanner": "5.39.1",
34
33
  "@awesome-cordova-plugins/calendar": "5.39.1",
@@ -44,14 +43,15 @@
44
43
  "@awesome-cordova-plugins/network": "5.39.1",
45
44
  "@awesome-cordova-plugins/sqlite": "5.39.1",
46
45
  "@awesome-cordova-plugins/vibration": "5.39.1",
46
+ "@babel/runtime": "^7.14.8",
47
47
  "@metrichor/jmespath": "^0.3.1",
48
48
  "@wavemaker.com/nvd3": "1.0.0",
49
49
  "@wavemaker/focus-trap": "^1.0.0",
50
- "angular-imask": "6.0.4",
50
+ "angular-imask": "6.3.0",
51
51
  "angular2-websocket": "0.9.7",
52
52
  "core-js": "2.5.4",
53
53
  "d3": "3.5.17",
54
- "fullcalendar": "5.3.1",
54
+ "fullcalendar": "5.0.0",
55
55
  "hammerjs": "2.0.8",
56
56
  "he": "1.2.0",
57
57
  "iscroll": "5.2.0",
@@ -60,36 +60,36 @@
60
60
  "js-cookie": "2.2.0",
61
61
  "jssha": "^3.1.2",
62
62
  "lodash": "4.17.21",
63
- "ng-circle-progress": "1.6.0",
64
- "ngx-bootstrap": "6.2.0",
65
- "ngx-color-picker": "10.1.0",
66
- "ngx-toastr": "13.2.1",
63
+ "ng-circle-progress": "1.5.1",
64
+ "ngx-bootstrap": "8.0.0",
65
+ "ngx-color-picker": "12.0.1",
66
+ "ngx-toastr": "14.3.0",
67
67
  "rxjs": "6.6.0",
68
68
  "rxjs-compat": "6.4.0",
69
69
  "summernote": "0.8.11",
70
- "tslib": "^2.0.0",
71
- "x2js": "3.2.6",
70
+ "tslib": "2.4.1",
71
+ "x2js": "^3.4.4",
72
72
  "zone.js": "~0.11.4",
73
- "@wavemaker/app-ng-runtime": "11.2.0-next.140951"
73
+ "@wavemaker/app-ng-runtime": "11.2.0-next.140954"
74
74
  },
75
75
  "devDependencies": {
76
- "@ampproject/rollup-plugin-closure-compiler": "0.8.5",
77
- "@angular-builders/custom-webpack": "11.1.1",
78
- "@angular-devkit/build-angular": "12.2.16",
79
- "@angular/cli": "12.2.16",
80
- "@angular/compiler-cli": "12.2.16",
81
- "@angular/language-service": "12.2.16",
76
+ "@ampproject/rollup-plugin-closure-compiler": "^0.27.0",
77
+ "@angular-builders/custom-webpack": "14.1.0",
78
+ "@angular-devkit/build-angular": "14.2.10",
79
+ "@angular/cli": "14.2.10",
80
+ "@angular/compiler-cli": "14.2.12",
81
+ "@angular/language-service": "14.2.12",
82
82
  "@babel/plugin-transform-runtime": "^7.14.5",
83
- "@compodoc/compodoc": "1.1.11",
83
+ "@compodoc/compodoc": "^1.1.19",
84
84
  "@types/jasmine": "2.8.8",
85
85
  "@types/jasminewd2": "2.0.3",
86
86
  "@types/jquery": "3.3.22",
87
87
  "@types/node": "12.11.1",
88
88
  "@types/sizzle": "^2.3.3",
89
- "brotli-webpack-plugin": "1.1.0",
90
- "cheerio": "1.0.0-rc.2",
89
+ "babel-loader": "^9.1.2",
90
+ "cheerio": "^1.0.0-rc.12",
91
91
  "codelyzer": "5.1.2",
92
- "compression-webpack-plugin": "4.0.1",
92
+ "compression-webpack-plugin": "10.0.0",
93
93
  "core-js-builder": "2.5.7",
94
94
  "fs": "0.0.1-security",
95
95
  "fs-extra": "7.0.1",
@@ -106,21 +106,27 @@
106
106
  "karma-mocha-reporter": "2.2.5",
107
107
  "moment": "2.29.4",
108
108
  "moment-timezone": "^0.5.34",
109
- "ng-packagr": "12.2.7",
109
+ "ng-packagr": "14.2.0",
110
110
  "npm-run-all": "4.1.5",
111
111
  "owasp-dependency-check": "0.0.21",
112
112
  "rimraf": "2.6.3",
113
- "rollup": "0.65.2",
114
- "rollup-plugin-alias": "1.4.0",
115
- "rollup-plugin-commonjs": "9.2.0",
113
+ "rollup": "3.9.1",
114
+ "@rollup/plugin-alias": "4.0.2",
115
+ "@rollup/plugin-commonjs": "24.0.0",
116
116
  "rollup-plugin-includepaths": "0.2.3",
117
- "rollup-plugin-multi-entry": "2.1.0",
118
- "rollup-plugin-node-resolve": "3.4.0",
117
+ "@rollup/plugin-multi-entry": "6.0.0",
118
+ "@rollup/plugin-node-resolve": "15.0.1",
119
+ "terser": "^5.15.1",
119
120
  "sonarqube-scanner": "^2.8.2",
120
121
  "ts-node": "7.0.1",
121
122
  "tslint": "~6.1.0",
122
- "typescript": "4.3.5",
123
+ "typescript": "4.6.4",
123
124
  "util": "0.11.1",
124
125
  "yargs": "^17.3.1"
125
- }
126
+ },
127
+ "engines": {
128
+ "node": "~16.15.1",
129
+ "npm": "~8.11.0"
130
+ },
131
+ "engineStrict": true
126
132
  }
@@ -8,56 +8,40 @@
8
8
  * file.
9
9
  *
10
10
  * The current setup is for so-called "evergreen" browsers; the last versions of browsers that
11
- * automatically update themselves. This includes Safari >= 10, Chrome >= 55 (including Opera),
12
- * Edge >= 13 on the desktop, and iOS 10 and Chrome on mobile.
11
+ * automatically update themselves. This includes recent versions of Safari, Chrome (including
12
+ * Opera), Edge on the desktop, and iOS and Chrome on mobile.
13
13
  *
14
14
  * Learn more in https://angular.io/guide/browser-support
15
15
  */
16
16
 
17
17
  /***************************************************************************************************
18
- * BROWSER POLYFILLS
19
- */
20
-
21
-
22
- /** need for 'includes' etc... in IE 11**/
23
- import 'core-js/es7/array';
24
- import 'core-js/es7/object';
25
-
26
- /**
27
- * If the application will be indexed by Google Search, the following is required.
28
- * Googlebot uses a renderer based on Chrome 41.
29
- * https://developers.google.com/search/docs/guides/rendering
30
- **/
31
- // import 'core-js/es6/array';
32
-
33
- /** IE10 and IE11 requires the following for NgClass support on SVG elements */
34
- // import 'classlist.js'; // Run `npm install --save classlist.js`.
35
-
36
- /** IE10 and IE11 requires the following for the Reflect API. */
37
- import 'core-js/es6/reflect';
38
-
39
- /**
40
- * Web Animations `@angular/platform-browser/animations`
41
- * Only required if AnimationBuilder is used within the application and using IE/Edge or Safari.
42
- * Standard animation support in Angular DOES NOT require any polyfills (as of Angular 6.0).
43
- **/
44
- // import 'web-animations-js'; // Run `npm install --save web-animations-js`.
18
+ * BROWSER POLYFILLS
19
+ */
45
20
 
46
21
  /**
47
22
  * By default, zone.js will patch all possible macroTask and DomEvents
48
23
  * user can disable parts of macroTask/DomEvents patch by setting following flags
24
+ * because those flags need to be set before `zone.js` being loaded, and webpack
25
+ * will put import in the top of bundle, so user need to create a separate file
26
+ * in this directory (for example: zone-flags.ts), and put the following flags
27
+ * into that file, and then add the following code before importing zone.js.
28
+ * import './zone-flags';
29
+ *
30
+ * The flags allowed in zone-flags.ts are listed here.
31
+ *
32
+ * The following flags will work for all browsers.
33
+ *
34
+ * (window as any).__Zone_disable_requestAnimationFrame = true; // disable patch requestAnimationFrame
35
+ * (window as any).__Zone_disable_on_property = true; // disable patch onProperty such as onclick
36
+ * (window as any).__zone_symbol__UNPATCHED_EVENTS = ['scroll', 'mousemove']; // disable patch specified eventNames
37
+ *
38
+ * in IE/Edge developer tools, the addEventListener will also be wrapped by zone.js
39
+ * with the following flag, it will bypass `zone.js` patch for IE/Edge
40
+ *
41
+ * (window as any).__Zone_enable_cross_context_check = true;
42
+ *
49
43
  */
50
44
 
51
- // (window as any).__Zone_disable_requestAnimationFrame = true; // disable patch requestAnimationFrame
52
- // (window as any).__Zone_disable_on_property = true; // disable patch onProperty such as onclick
53
- // (window as any).__zone_symbol__BLACK_LISTED_EVENTS = ['scroll', 'mousemove']; // disable patch specified eventNames
54
-
55
- /*
56
- * in IE/Edge developer tools, the addEventListener will also be wrapped by zone.js
57
- * with the following flag, it will bypass `zone.js` patch for IE/Edge
58
- */
59
- // (window as any).__Zone_enable_cross_context_check = true;
60
-
61
45
  /***************************************************************************************************
62
46
  * Zone JS is required by default for Angular itself.
63
47
  */
@@ -6,7 +6,7 @@
6
6
  "outDir": "./dist/out-tsc",
7
7
  "sourceMap": true,
8
8
  "declaration": false,
9
- "target": "es2015",
9
+ "target": "es2020",
10
10
  "module": "es2020",
11
11
  "moduleResolution": "node",
12
12
  "emitDecoratorMetadata": true,
@@ -109,6 +109,6 @@
109
109
  }
110
110
  },
111
111
  "angularCompilerOptions": {
112
- "enableIvy": false
112
+ "compilationMode": "full"
113
113
  }
114
114
  }
@@ -6,7 +6,7 @@
6
6
  "outDir": "./dist/out-tsc",
7
7
  "sourceMap": true,
8
8
  "declaration": false,
9
- "target": "es2015",
9
+ "target": "es2020",
10
10
  "module": "es2020",
11
11
  "moduleResolution": "node",
12
12
  "emitDecoratorMetadata": true,
@@ -97,6 +97,6 @@
97
97
  }
98
98
  },
99
99
  "angularCompilerOptions": {
100
- "enableIvy": false
100
+ "compilationMode": "full"
101
101
  }
102
102
  }
@@ -1,6 +1,6 @@
1
1
  const CompressionPlugin = require(`compression-webpack-plugin`);
2
- const BrotliPlugin = require(`brotli-webpack-plugin`);
3
2
  const path = require(`path`);
3
+
4
4
  module.exports = {
5
5
  resolve:{
6
6
  alias:{
@@ -8,19 +8,16 @@ module.exports = {
8
8
  }
9
9
  },
10
10
  plugins:[
11
- new BrotliPlugin({
12
- asset: '[fileWithoutExt].br.[ext]',
13
- test: /\.(js|css|html|svg|txt|eot|otf|ttf|gif)$/
11
+ new CompressionPlugin({
12
+ test: /\.(js|css|html|svg|txt|eot|otf|ttf|gif)$/,
13
+ filename: "[name].gzip[ext]",
14
+ algorithm: "gzip"
14
15
  }),
15
16
  new CompressionPlugin({
16
17
  test: /\.(js|css|html|svg|txt|eot|otf|ttf|gif)$/,
17
- filename(info){
18
- let opFile= info.path.split('.'),
19
- opFileType = opFile.pop(),
20
- opFileName = opFile.join('.');
21
- return `${opFileName}.gzip.${opFileType}`;
22
- }
23
- })
18
+ filename: "[name].br[ext]",
19
+ algorithm: "brotliCompress"
20
+ }),
24
21
  ],
25
22
  optimization: {
26
23
  splitChunks: {