@wavemaker/angular-codegen 11.14.2-rc.6311 → 11.15.0-rc.245
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 +8 -1
- package/angular-app/dependency-report.html +1 -1
- package/angular-app/npm-shrinkwrap.json +1112 -1022
- package/angular-app/package-lock.json +1112 -1022
- package/angular-app/package.json +10 -5
- package/angular-app/src/assets/styles/css/wm-style.css +1 -1
- package/angular-app/src/tsconfig.app.json +5 -2
- package/build-angular-app.js +20 -1
- package/dependencies/custom-widgets-bundle.cjs.js +43 -37
- package/dependencies/expression-parser.cjs.js +2 -2
- package/dependencies/pipe-provider.cjs.js +40 -26
- package/dependencies/transpilation-web.cjs.js +37 -15
- package/download-packages.js +53 -5
- package/npm-shrinkwrap.json +190 -192
- package/package-lock.json +190 -192
- package/package.json +2 -2
- package/src/codegen.js +1 -1
- package/src/gen-app-codegen-module.js +1 -1
- package/src/gen-app-skeleton.js +1 -1
- package/src/gen-components.js +1 -1
- package/src/gen-layouts.js +1 -1
- package/src/project-meta.js +1 -1
- package/src/wm-utils.js +1 -1
- package/templates/app.config.ts.hbs +11 -1
- package/angular-app/src/app/app-codegen.module.ts +0 -11
- package/angular-app/src/framework/angular1.polyfills.ts +0 -36
package/build-angular-app.js
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
const fs = require('fs');
|
|
16
16
|
const rimraf = require('rimraf');
|
|
17
17
|
const { downloadNPMPackage } = require('./download-packages');
|
|
18
|
-
const { generateRandomHash } = require('./src/wm-utils');
|
|
18
|
+
const { generateRandomHash, mergePackageJsonWithOverrideJson} = require('./src/wm-utils');
|
|
19
19
|
const archiver = require('archiver');
|
|
20
20
|
const path = require("path");
|
|
21
21
|
const { executeSyncCmd, MSG_NG_RUNTIME_LOG, MSG_NG_RUNTIME_SUCCESS } = require('./build-util');
|
|
@@ -81,6 +81,17 @@ const processAngularAppPackage = async (sourcePath, targetPath, packageName, isO
|
|
|
81
81
|
|
|
82
82
|
// Install dependencies
|
|
83
83
|
const installPath = isOptimized ? sourcePath : targetPath;
|
|
84
|
+
try {
|
|
85
|
+
if (global.buildConfigObj.runInspection && !isOptimized && fs.existsSync(path.join(global.buildConfigObj.appSrc, "build-src/package-override.json")) && fs.existsSync(path.join(installPath, 'package.json'))) {
|
|
86
|
+
let packageJson = JSON.parse(fs.readFileSync(path.join(installPath, 'package.json'), 'utf8'));
|
|
87
|
+
packageJson = await mergePackageJsonWithOverrideJson(global.buildConfigObj.appSrc, packageJson);
|
|
88
|
+
fs.writeFileSync(path.join(installPath, 'package.json'), JSON.stringify(packageJson, null, 4));
|
|
89
|
+
console.log("Successfully updated generated-app package.json with package-override.json");
|
|
90
|
+
}
|
|
91
|
+
} catch (e) {
|
|
92
|
+
console.log("Failed to merge package-override.json into generated-app package.json: " + e);
|
|
93
|
+
}
|
|
94
|
+
|
|
84
95
|
let npmCommnd = `npm install --prefix ${installPath}`
|
|
85
96
|
// For windows platforms, npm install command needs to be executed in the same directory as package.json file
|
|
86
97
|
if (os.platform() === 'win32') {
|
|
@@ -451,6 +462,14 @@ const buildAsWebComponent = async () => {
|
|
|
451
462
|
|
|
452
463
|
const initBuild = async (buildConfigObj) => {
|
|
453
464
|
global.randomHash = generateRandomHash();
|
|
465
|
+
|
|
466
|
+
if(buildConfigObj.runInspection && buildConfigObj.runInspection === 'true' && buildConfigObj.buildType === BUILD_TYPE.ANGULAR) {
|
|
467
|
+
buildConfigObj.optimizeUIBuild = false;
|
|
468
|
+
buildConfigObj.runInspection = true;
|
|
469
|
+
}
|
|
470
|
+
else {
|
|
471
|
+
buildConfigObj.runInspection = false;
|
|
472
|
+
}
|
|
454
473
|
//making it global
|
|
455
474
|
global.buildConfigObj = buildConfigObj;
|
|
456
475
|
|