@wavemaker/angular-codegen 11.12.1-rc.6244 → 11.13.0-rc.222
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.
- package/angular-app/angular.json +62 -95
- package/angular-app/build-scripts/index-html-transform-ng-serve.ts +20 -0
- package/angular-app/build-scripts/post-build.js +2 -2
- package/angular-app/dependency-report.html +1 -1
- package/angular-app/npm-shrinkwrap.json +121 -235
- package/angular-app/package-lock.json +121 -235
- package/angular-app/package.json +6 -7
- package/angular-app/proxy.conf.js +14 -0
- package/angular-app/src/assets/styles/css/font/summernote.eot +0 -0
- package/angular-app/src/assets/styles/css/font/summernote.ttf +0 -0
- package/angular-app/src/assets/styles/css/font/summernote.woff +0 -0
- package/angular-app/src/assets/styles/css/font/summernote.woff2 +0 -0
- package/angular-app/src/assets/styles/css/wm-style.css +1 -1
- package/dependencies/transpilation-web.cjs.js +26 -37
- package/npm-shrinkwrap.json +77 -71
- package/package-lock.json +77 -71
- package/package.json +2 -2
- package/src/gen-index-html.js +1 -1
- package/src/update-angular-json.js +1 -1
package/angular-app/angular.json
CHANGED
|
@@ -13,16 +13,6 @@
|
|
|
13
13
|
"build": {
|
|
14
14
|
"builder": "@angular-builders/custom-webpack:browser",
|
|
15
15
|
"options": {
|
|
16
|
-
"customWebpackConfig": {
|
|
17
|
-
"path": "./wm-custom-webpack.config.js"
|
|
18
|
-
},
|
|
19
|
-
"indexTransform": "./build-scripts/index-html-transform.js",
|
|
20
|
-
"deployUrl": "ng-bundle/",
|
|
21
|
-
"outputPath": "dist/ng-bundle",
|
|
22
|
-
"index": {
|
|
23
|
-
"input": "src/index.html",
|
|
24
|
-
"output": "../../index.html"
|
|
25
|
-
},
|
|
26
16
|
"main": "src/main.ts",
|
|
27
17
|
"polyfills": "src/polyfills.ts",
|
|
28
18
|
"tsConfig": "src/tsconfig.app.json",
|
|
@@ -94,9 +84,7 @@
|
|
|
94
84
|
"./node_modules/@wavemaker/app-ng-runtime/scripts/swipey/swipey.jquery.plugin.js",
|
|
95
85
|
"./node_modules/@wavemaker/app-ng-runtime/scripts/jquery.ui.touch-punch/jquery.ui.touch-punch.min.js",
|
|
96
86
|
"./node_modules/summernote/dist/summernote-lite.min.js",
|
|
97
|
-
"./node_modules/hammerjs/hammer.min.js",
|
|
98
87
|
"./node_modules/iscroll/build/iscroll.js",
|
|
99
|
-
"./node_modules/js-cookie/src/js.cookie.js",
|
|
100
88
|
"./node_modules/jssha/dist/sha256.js",
|
|
101
89
|
"./node_modules/@ztree/ztree_v3/js/jquery.ztree.all.js",
|
|
102
90
|
"./node_modules/@wavemaker/app-ng-runtime/scripts/tree-keyboard-navigation/keyboard-navigation.js"
|
|
@@ -104,6 +92,16 @@
|
|
|
104
92
|
},
|
|
105
93
|
"configurations": {
|
|
106
94
|
"production": {
|
|
95
|
+
"customWebpackConfig": {
|
|
96
|
+
"path": "./wm-custom-webpack.config.js"
|
|
97
|
+
},
|
|
98
|
+
"indexTransform": "./build-scripts/index-html-transform.js",
|
|
99
|
+
"deployUrl": "ng-bundle/",
|
|
100
|
+
"outputPath": "dist/ng-bundle",
|
|
101
|
+
"index": {
|
|
102
|
+
"input": "src/index.html",
|
|
103
|
+
"output": "../../index.html"
|
|
104
|
+
},
|
|
107
105
|
"fileReplacements": [
|
|
108
106
|
{
|
|
109
107
|
"replace": "src/environments/environment.ts",
|
|
@@ -133,6 +131,16 @@
|
|
|
133
131
|
]
|
|
134
132
|
},
|
|
135
133
|
"development": {
|
|
134
|
+
"customWebpackConfig": {
|
|
135
|
+
"path": "./wm-custom-webpack.config.js"
|
|
136
|
+
},
|
|
137
|
+
"indexTransform": "./build-scripts/index-html-transform.js",
|
|
138
|
+
"deployUrl": "ng-bundle/",
|
|
139
|
+
"outputPath": "dist/ng-bundle",
|
|
140
|
+
"index": {
|
|
141
|
+
"input": "src/index.html",
|
|
142
|
+
"output": "../../index.html"
|
|
143
|
+
},
|
|
136
144
|
"fileReplacements": [
|
|
137
145
|
{
|
|
138
146
|
"replace": "src/environments/environment.ts",
|
|
@@ -155,6 +163,16 @@
|
|
|
155
163
|
]
|
|
156
164
|
},
|
|
157
165
|
"local": {
|
|
166
|
+
"customWebpackConfig": {
|
|
167
|
+
"path": "./wm-custom-webpack.config.js"
|
|
168
|
+
},
|
|
169
|
+
"indexTransform": "./build-scripts/index-html-transform.js",
|
|
170
|
+
"deployUrl": "ng-bundle/",
|
|
171
|
+
"outputPath": "dist/ng-bundle",
|
|
172
|
+
"index": {
|
|
173
|
+
"input": "src/index.html",
|
|
174
|
+
"output": "../../index.html"
|
|
175
|
+
},
|
|
158
176
|
"fileReplacements": [
|
|
159
177
|
{
|
|
160
178
|
"replace": "src/environments/environment.ts",
|
|
@@ -182,96 +200,45 @@
|
|
|
182
200
|
"maximumWarning": "2mb"
|
|
183
201
|
}
|
|
184
202
|
]
|
|
185
|
-
}
|
|
186
|
-
},
|
|
187
|
-
"defaultConfiguration": "production"
|
|
188
|
-
},
|
|
189
|
-
"build-ng": {
|
|
190
|
-
"builder": "@angular-devkit/build-angular:browser",
|
|
191
|
-
"options": {
|
|
192
|
-
"outputPath": "dist",
|
|
193
|
-
"index": {
|
|
194
|
-
"input": "src/index.html",
|
|
195
|
-
"output": "../index.html"
|
|
196
203
|
},
|
|
197
|
-
"
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
"src/
|
|
202
|
-
"
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
"
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
"inject": false,
|
|
223
|
-
"bundleName": "print"
|
|
224
|
-
}
|
|
225
|
-
],
|
|
226
|
-
"scripts": [
|
|
227
|
-
"./node_modules/x2js/x2js.js",
|
|
228
|
-
"./node_modules/d3/dist/d3.min.js",
|
|
229
|
-
"./node_modules/@wavemaker/nvd3/build/nv.d3.min.js",
|
|
230
|
-
"./node_modules/jquery/dist/jquery.min.js",
|
|
231
|
-
"./node_modules/jquery-ui/ui/disable-selection.js",
|
|
232
|
-
"./node_modules/jquery-ui/ui/version.js",
|
|
233
|
-
"./node_modules/jquery-ui/ui/widget.js",
|
|
234
|
-
"./node_modules/jquery-ui/ui/scroll-parent.js",
|
|
235
|
-
"./node_modules/jquery-ui/ui/plugin.js",
|
|
236
|
-
"./node_modules/jquery-ui/ui/data.js",
|
|
237
|
-
"./node_modules/jquery-ui/ui/widgets/mouse.js",
|
|
238
|
-
"./node_modules/jquery-ui/ui/widgets/resizable.js",
|
|
239
|
-
"./node_modules/jquery-ui/ui/widgets/sortable.js",
|
|
240
|
-
"./node_modules/jquery-ui/ui/widgets/droppable.js",
|
|
241
|
-
"./libraries/scripts/datatable/datatable.js",
|
|
242
|
-
"./node_modules/summernote/dist/summernote-lite.min.js",
|
|
243
|
-
"./node_modules/hammerjs/hammer.min.js",
|
|
244
|
-
"./node_modules/iscroll/build/iscroll.js",
|
|
245
|
-
"./node_modules/js-cookie/src/js.cookie.js",
|
|
246
|
-
"./node_modules/jssha/dist/sha256.js",
|
|
247
|
-
"./node_modules/@ztree/ztree_v3/js/jquery.ztree.all.js",
|
|
248
|
-
"./libraries/scripts/tree-keyboard-navigation/keyboard-navigation.js"
|
|
249
|
-
],
|
|
250
|
-
"aot": false,
|
|
251
|
-
"vendorChunk": true,
|
|
252
|
-
"extractLicenses": false,
|
|
253
|
-
"buildOptimizer": false,
|
|
254
|
-
"sourceMap": true,
|
|
255
|
-
"optimization": false,
|
|
256
|
-
"namedChunks": true
|
|
257
|
-
},
|
|
258
|
-
"configurations": {
|
|
259
|
-
"production": {
|
|
260
|
-
"browserTarget": "angular-app:build:production"
|
|
204
|
+
"ng-serve": {
|
|
205
|
+
"indexTransform": "./build-scripts/index-html-transform-ng-serve.ts",
|
|
206
|
+
"deployUrl": "ng-bundle/",
|
|
207
|
+
"outputPath": "dist/ng-bundle",
|
|
208
|
+
"index": "src/index.html",
|
|
209
|
+
"fileReplacements": [
|
|
210
|
+
{
|
|
211
|
+
"replace": "src/environments/environment.ts",
|
|
212
|
+
"with": "src/environments/environment.dev.ts"
|
|
213
|
+
}
|
|
214
|
+
],
|
|
215
|
+
"optimization": false,
|
|
216
|
+
"outputHashing": "none",
|
|
217
|
+
"sourceMap": true,
|
|
218
|
+
"namedChunks": true,
|
|
219
|
+
"aot": true,
|
|
220
|
+
"extractLicenses": false,
|
|
221
|
+
"vendorChunk": true,
|
|
222
|
+
"buildOptimizer": false,
|
|
223
|
+
"budgets": [
|
|
224
|
+
{
|
|
225
|
+
"type": "initial",
|
|
226
|
+
"maximumWarning": "2mb"
|
|
227
|
+
}
|
|
228
|
+
]
|
|
261
229
|
}
|
|
262
230
|
},
|
|
263
|
-
"defaultConfiguration": ""
|
|
231
|
+
"defaultConfiguration": "production"
|
|
264
232
|
},
|
|
265
233
|
"serve": {
|
|
266
|
-
"builder": "@angular-
|
|
267
|
-
"options": {
|
|
268
|
-
"buildTarget": "angular-app:build"
|
|
269
|
-
},
|
|
234
|
+
"builder": "@angular-builders/custom-webpack:dev-server",
|
|
270
235
|
"configurations": {
|
|
271
|
-
"
|
|
272
|
-
"buildTarget": "angular-app:build:
|
|
236
|
+
"development": {
|
|
237
|
+
"buildTarget": "angular-app:build:ng-serve",
|
|
238
|
+
"proxyConfig": "proxy.conf.js"
|
|
273
239
|
}
|
|
274
|
-
}
|
|
240
|
+
},
|
|
241
|
+
"defaultConfiguration": "development"
|
|
275
242
|
},
|
|
276
243
|
"extract-i18n": {
|
|
277
244
|
"builder": "@angular-devkit/build-angular:extract-i18n",
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import {TargetOptions} from '@angular-builders/custom-webpack';
|
|
2
|
+
|
|
3
|
+
export default function indexHtmlTransformNgServe(
|
|
4
|
+
targetOptions: TargetOptions,
|
|
5
|
+
indexHtml: string
|
|
6
|
+
): string {
|
|
7
|
+
const deployUrl = 'ng-bundle/';
|
|
8
|
+
const wmStylesHref = `${deployUrl}wm-styles.css`;
|
|
9
|
+
|
|
10
|
+
const metaDeployUrl = `<meta name="deployUrl" content="${deployUrl}">`;
|
|
11
|
+
const linkWmStyles = `<link rel="stylesheet" type="text/css" href="${wmStylesHref}">`;
|
|
12
|
+
|
|
13
|
+
const injectHtml = `${metaDeployUrl}
|
|
14
|
+
${linkWmStyles}`;
|
|
15
|
+
const headCloseIndex = indexHtml.indexOf('</head>');
|
|
16
|
+
|
|
17
|
+
return `${indexHtml.slice(0, headCloseIndex)}
|
|
18
|
+
${injectHtml}
|
|
19
|
+
${indexHtml.slice(headCloseIndex)}`;
|
|
20
|
+
}
|
|
@@ -164,9 +164,9 @@ const generateSha1 = (content) => {
|
|
|
164
164
|
try {
|
|
165
165
|
const angularJson = require(`${process.cwd()}/angular.json`);
|
|
166
166
|
const build = angularJson['projects']['angular-app']['architect']['build'];
|
|
167
|
-
let deployUrl = args['deploy-url'] || build['
|
|
167
|
+
let deployUrl = args['deploy-url'] || build['configurations']['production']['deployUrl'];
|
|
168
168
|
global.randomHash = deployUrl.split('/')[1];
|
|
169
|
-
let outputPath = global.opPath = args['output-path'] || build['
|
|
169
|
+
let outputPath = global.opPath = args['output-path'] || build['configurations']['production']['outputPath']
|
|
170
170
|
const contents = await readFile(`./dist/index.html`, `utf8`);
|
|
171
171
|
$ = cheerio.load(contents);
|
|
172
172
|
isProdBuild = fs.existsSync(`${process.cwd()}/${outputPath}/wm-styles.css`);
|