@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.
- 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 +39834 -46963
- angular-codegen/angular-app/package.json +44 -47
- 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 +4676 -1970
- angular-codegen/dependencies/transpilation-web.cjs.js +4676 -1970
- angular-codegen/package.json +1 -1
@@ -19,7 +19,10 @@
|
|
19
19
|
"indexTransform": "./build-scripts/index-html-transform.js",
|
20
20
|
"deployUrl": "ng-bundle/",
|
21
21
|
"outputPath": "dist/ng-bundle",
|
22
|
-
"index":
|
22
|
+
"index": {
|
23
|
+
"input": "src/index.html",
|
24
|
+
"output": "../index.html"
|
25
|
+
},
|
23
26
|
"main": "src/main.ts",
|
24
27
|
"polyfills": "src/polyfills.ts",
|
25
28
|
"tsConfig": "src/tsconfig.app.json",
|
@@ -93,7 +96,6 @@
|
|
93
96
|
"optimization": true,
|
94
97
|
"outputHashing": "all",
|
95
98
|
"sourceMap": false,
|
96
|
-
"extractCss": true,
|
97
99
|
"namedChunks": false,
|
98
100
|
"aot": true,
|
99
101
|
"extractLicenses": true,
|
@@ -116,7 +118,6 @@
|
|
116
118
|
"optimization": false,
|
117
119
|
"outputHashing": "all",
|
118
120
|
"sourceMap": false,
|
119
|
-
"extractCss": true,
|
120
121
|
"namedChunks": true,
|
121
122
|
"aot": true,
|
122
123
|
"extractLicenses": false,
|
@@ -135,7 +136,10 @@
|
|
135
136
|
"builder": "@angular-devkit/build-angular:browser",
|
136
137
|
"options": {
|
137
138
|
"outputPath": "dist",
|
138
|
-
"index":
|
139
|
+
"index": {
|
140
|
+
"input": "src/index.html",
|
141
|
+
"output": "../index.html"
|
142
|
+
},
|
139
143
|
"main": "src/main.ts",
|
140
144
|
"polyfills": "src/polyfills.ts",
|
141
145
|
"tsConfig": "src/tsconfig.app.json",
|
@@ -174,13 +178,21 @@
|
|
174
178
|
"./node_modules/iscroll/build/iscroll.js",
|
175
179
|
"./node_modules/js-cookie/src/js.cookie.js",
|
176
180
|
"./node_modules/jssha/dist/sha256.js"
|
177
|
-
]
|
181
|
+
],
|
182
|
+
"aot": false,
|
183
|
+
"vendorChunk": true,
|
184
|
+
"extractLicenses": false,
|
185
|
+
"buildOptimizer": false,
|
186
|
+
"sourceMap": true,
|
187
|
+
"optimization": false,
|
188
|
+
"namedChunks": true
|
178
189
|
},
|
179
190
|
"configurations": {
|
180
191
|
"production": {
|
181
192
|
"browserTarget": "angular-app:build:production"
|
182
193
|
}
|
183
|
-
}
|
194
|
+
},
|
195
|
+
"defaultConfiguration": ""
|
184
196
|
},
|
185
197
|
"serve": {
|
186
198
|
"builder": "@angular-devkit/build-angular:dev-server",
|
@@ -263,10 +263,8 @@ const generateSha1 = (content) => {
|
|
263
263
|
deployUrl = deployUrl.slice(0, deployUrl.length - 1);
|
264
264
|
}
|
265
265
|
|
266
|
-
fs.copyFileSync('./dist/ng-bundle/index.html', './dist/index.html');
|
267
266
|
const contents = await readFile(`./dist/index.html`, `utf8`);
|
268
267
|
$ = cheerio.load(contents);
|
269
|
-
$('script').attr('defer', 'true');
|
270
268
|
setMobileProjectType(angularJson);
|
271
269
|
if (!isMobileProject) {
|
272
270
|
isProdBuild = fs.existsSync(`${process.cwd()}/dist/ng-bundle/wm-styles.css`);
|