@wavemaker/angular-codegen 11.7.0-rc.5586 → 11.7.0-rc.5592
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.
- angular-codegen/angular-app/build-scripts/build.js +4 -9
- angular-codegen/angular-app/package-lock.json +5449 -6696
- angular-codegen/angular-app/package.json +25 -25
- angular-codegen/angular-app/src/app/lazy-load-scripts.resolve.ts +4 -2
- angular-codegen/angular-app/wm-custom-webpack.config.js +0 -60
- angular-codegen/build-angular-app.js +5 -13
- angular-codegen/dependencies/expression-parser.cjs.js +584 -2503
- angular-codegen/dependencies/pipe-provider.cjs.js +15331 -28469
- angular-codegen/dependencies/transpilation-mobile.cjs.js +8028 -14739
- angular-codegen/dependencies/transpilation-web.cjs.js +8028 -14739
- angular-codegen/package-lock.json +4367 -3
- angular-codegen/package.json +1 -1
- angular-codegen/src/handlebar-helpers.js +1 -1
- angular-codegen/templates/app-prefabs.module.ts.hbs +1 -0
- angular-codegen/templates/app-routes.ts.hbs +5 -6
- angular-codegen/templates/layout/layout.module.ts.hbs +1 -1
- angular-codegen/templates/page/page.module.ts.hbs +2 -2
- angular-codegen/templates/partial/partial.module.ts.hbs +1 -0
- angular-codegen/templates/prefab/prefab.module.ts.hbs +1 -0
|
@@ -1,23 +1,18 @@
|
|
|
1
1
|
const { spawnSync } = require('child_process');
|
|
2
2
|
const path = require('path');
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
process.env.NODE_OPTIONS = processArgs.pop();
|
|
7
|
-
console.log("Setting node options: ", process.env.NODE_OPTIONS);
|
|
8
|
-
}
|
|
9
|
-
const args = processArgs.slice(2);
|
|
4
|
+
const args = process.argv.slice(2);
|
|
5
|
+
|
|
10
6
|
const ngBuildArgs = ['build', ...args];
|
|
11
|
-
console.log("
|
|
7
|
+
console.log("Build params - ", ngBuildArgs);
|
|
12
8
|
|
|
13
9
|
//Trigger angular build with the passed params
|
|
14
10
|
const ngPath = path.resolve(process.cwd(), 'node_modules', '.bin', "ng");
|
|
15
|
-
const ngBuildProcess = spawnSync(ngPath, ngBuildArgs, {stdio: 'inherit', shell: true});
|
|
11
|
+
const ngBuildProcess = spawnSync(ngPath, ngBuildArgs, { stdio: 'inherit', shell: true });
|
|
16
12
|
|
|
17
13
|
if (ngBuildProcess.status === 0) {
|
|
18
14
|
console.log('ng build completed successfully!');
|
|
19
15
|
} else {
|
|
20
|
-
// TODO: JS heap out of memory error handling
|
|
21
16
|
console.error('Error during ng build:', ngBuildProcess.error || ngBuildProcess.stderr);
|
|
22
17
|
process.exit(1);
|
|
23
18
|
}
|