@wavemaker/angular-codegen 11.0.0-next.138551 → 11.0.0-next.138626
Sign up to get free protection for your applications and to get access to all the features.
- angular-codegen/angular-app/angular.json +6 -18
- angular-codegen/angular-app/build-scripts/post-build.js +2 -0
- angular-codegen/angular-app/package-lock.json +29579 -42578
- angular-codegen/angular-app/package.json +32 -29
- angular-codegen/angular-app/src/.browserslistrc +1 -1
- angular-codegen/angular-app/src/assets/styles/css/wm-responsive.css +1 -1
- angular-codegen/angular-app/src/assets/styles/css/wm-style.css +1 -1
- angular-codegen/angular-app/src/assets/styles/fonts/wm-streamline-light-icon.eot +0 -0
- angular-codegen/angular-app/src/assets/styles/fonts/wm-streamline-light-icon.ttf +0 -0
- angular-codegen/angular-app/src/assets/styles/fonts/wm-streamline-light-icon.woff +0 -0
- angular-codegen/angular-app/src/assets/styles/fonts/wm-streamline-regular-icon.eot +0 -0
- angular-codegen/angular-app/src/assets/styles/fonts/wm-streamline-regular-icon.ttf +0 -0
- angular-codegen/angular-app/src/assets/styles/fonts/wm-streamline-regular-icon.woff +0 -0
- 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 +4 -7
- angular-codegen/dependencies/transpilation-mobile.cjs.js +2017 -4679
- angular-codegen/dependencies/transpilation-web.cjs.js +2017 -4679
- angular-codegen/package.json +1 -1
@@ -19,10 +19,7 @@
|
|
19
19
|
"indexTransform": "./build-scripts/index-html-transform.js",
|
20
20
|
"deployUrl": "ng-bundle/",
|
21
21
|
"outputPath": "dist/ng-bundle",
|
22
|
-
"index":
|
23
|
-
"input": "src/index.html",
|
24
|
-
"output": "../index.html"
|
25
|
-
},
|
22
|
+
"index": "src/index.html",
|
26
23
|
"main": "src/main.ts",
|
27
24
|
"polyfills": "src/polyfills.ts",
|
28
25
|
"tsConfig": "src/tsconfig.app.json",
|
@@ -96,6 +93,7 @@
|
|
96
93
|
"optimization": true,
|
97
94
|
"outputHashing": "all",
|
98
95
|
"sourceMap": false,
|
96
|
+
"extractCss": true,
|
99
97
|
"namedChunks": false,
|
100
98
|
"aot": true,
|
101
99
|
"extractLicenses": true,
|
@@ -118,6 +116,7 @@
|
|
118
116
|
"optimization": false,
|
119
117
|
"outputHashing": "all",
|
120
118
|
"sourceMap": false,
|
119
|
+
"extractCss": true,
|
121
120
|
"namedChunks": true,
|
122
121
|
"aot": true,
|
123
122
|
"extractLicenses": false,
|
@@ -136,10 +135,7 @@
|
|
136
135
|
"builder": "@angular-devkit/build-angular:browser",
|
137
136
|
"options": {
|
138
137
|
"outputPath": "dist",
|
139
|
-
"index":
|
140
|
-
"input": "src/index.html",
|
141
|
-
"output": "../index.html"
|
142
|
-
},
|
138
|
+
"index": "src/index.html",
|
143
139
|
"main": "src/main.ts",
|
144
140
|
"polyfills": "src/polyfills.ts",
|
145
141
|
"tsConfig": "src/tsconfig.app.json",
|
@@ -178,21 +174,13 @@
|
|
178
174
|
"./node_modules/iscroll/build/iscroll.js",
|
179
175
|
"./node_modules/js-cookie/src/js.cookie.js",
|
180
176
|
"./node_modules/jssha/dist/sha256.js"
|
181
|
-
]
|
182
|
-
"aot": false,
|
183
|
-
"vendorChunk": true,
|
184
|
-
"extractLicenses": false,
|
185
|
-
"buildOptimizer": false,
|
186
|
-
"sourceMap": true,
|
187
|
-
"optimization": false,
|
188
|
-
"namedChunks": true
|
177
|
+
]
|
189
178
|
},
|
190
179
|
"configurations": {
|
191
180
|
"production": {
|
192
181
|
"browserTarget": "angular-app:build:production"
|
193
182
|
}
|
194
|
-
}
|
195
|
-
"defaultConfiguration": ""
|
183
|
+
}
|
196
184
|
},
|
197
185
|
"serve": {
|
198
186
|
"builder": "@angular-devkit/build-angular:dev-server",
|
@@ -263,8 +263,10 @@ 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');
|
266
267
|
const contents = await readFile(`./dist/index.html`, `utf8`);
|
267
268
|
$ = cheerio.load(contents);
|
269
|
+
$('script').attr('defer', 'true');
|
268
270
|
setMobileProjectType(angularJson);
|
269
271
|
if (!isMobileProject) {
|
270
272
|
isProdBuild = fs.existsSync(`${process.cwd()}/dist/ng-bundle/wm-styles.css`);
|