@wavemaker-ai/angular-app 1.0.0-rc.309 → 1.0.0-rc.647469
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/build-scripts/build.js +2 -19
- package/dependencies/expression-parser.cjs.js +2716 -5791
- package/dependencies/pipe-provider.cjs.js +55914 -67560
- package/dependencies/transpilation-web.cjs.js +41556 -42437
- package/dependency-report.html +1 -1
- package/npm-shrinkwrap.json +7022 -8397
- package/package-lock.json +7022 -8397
- package/package.json +49 -51
- package/src/framework/services/component-ref-provider.service.ts +21 -47
- package/src/framework/services/lazy-component-ref-provider.service.ts +18 -41
- package/src/setup-jest.js +1 -1
- package/tsconfig.json +1 -1
- package/build-scripts/ngx-bootstrap-patch.mjs +0 -287
- package/src/app/wmProperties.js +0 -13
- package/src/typings.d.ts +0 -27
package/build-scripts/build.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
const { spawnSync } = require('child_process');
|
|
2
|
-
const fs = require('fs');
|
|
3
2
|
const path = require('path');
|
|
4
3
|
|
|
5
4
|
let processArgs = process.argv;
|
|
@@ -8,28 +7,13 @@ if (processArgs.findIndex(arg => arg.startsWith('--max-old-space-size')) !== -1)
|
|
|
8
7
|
console.log("Setting node options: ", process.env.NODE_OPTIONS);
|
|
9
8
|
}
|
|
10
9
|
|
|
11
|
-
// Patch lives only in build-scripts/ (next to this file), shipped in @wavemaker-ai/angular-app.
|
|
12
|
-
const patchPath = path.join(__dirname, 'ngx-bootstrap-patch.mjs');
|
|
13
|
-
if (!fs.existsSync(patchPath)) {
|
|
14
|
-
console.error('Cannot find ngx-bootstrap-patch.mjs at', patchPath);
|
|
15
|
-
process.exit(1);
|
|
16
|
-
}
|
|
17
|
-
console.log('Using ngx-bootstrap patch at:', patchPath);
|
|
18
|
-
console.log("\x1b[36m", "Patching ngx-bootstrap ESM files...\x1b[0m");
|
|
19
|
-
const patchProcess = spawnSync('node', [patchPath], { stdio: 'inherit' });
|
|
20
|
-
|
|
21
|
-
if (patchProcess.status !== 0) {
|
|
22
|
-
console.error('Error patching ngx-bootstrap:', patchProcess.error || patchProcess.stderr);
|
|
23
|
-
process.exit(1);
|
|
24
|
-
}
|
|
25
|
-
|
|
26
10
|
const args = processArgs.slice(2);
|
|
27
11
|
const ngBuildArgs = ['build', ...args];
|
|
28
12
|
console.log("\x1b[33m", "Angular build params: ", ngBuildArgs);
|
|
29
13
|
|
|
30
14
|
//Trigger angular build with the passed params
|
|
31
15
|
const ngPath = path.resolve(process.cwd(), 'node_modules', '.bin', "ng");
|
|
32
|
-
const ngBuildProcess = spawnSync(ngPath, ngBuildArgs, {
|
|
16
|
+
const ngBuildProcess = spawnSync(ngPath, ngBuildArgs, {stdio: 'inherit', shell: true});
|
|
33
17
|
|
|
34
18
|
if (ngBuildProcess.status === 0) {
|
|
35
19
|
console.log('ng build completed successfully!');
|
|
@@ -39,8 +23,7 @@ if (ngBuildProcess.status === 0) {
|
|
|
39
23
|
process.exit(1);
|
|
40
24
|
}
|
|
41
25
|
|
|
42
|
-
const
|
|
43
|
-
const ngPostBuildArgs = [postBuildPath, ...args];
|
|
26
|
+
const ngPostBuildArgs = ['build-scripts/post-build.js', ...args];
|
|
44
27
|
console.log("Post build params - ", ngPostBuildArgs);
|
|
45
28
|
|
|
46
29
|
const ngPostBuildProcess = spawnSync('node', ngPostBuildArgs, { stdio: 'inherit' });
|