@wavemaker/angular-codegen 11.7.0-next.42251 → 11.7.0-rc.5524
Sign up to get free protection for your applications and to get access to all the features.
- angular-codegen/angular-app/angular.json +11 -1
- angular-codegen/angular-app/build-scripts/build.js +35 -0
- angular-codegen/angular-app/build-scripts/post-build.js +17 -11
- angular-codegen/angular-app/package-lock.json +4104 -2435
- angular-codegen/angular-app/package.json +27 -27
- angular-codegen/angular-app/src/app/lazy-load-scripts.resolve.ts +2 -4
- angular-codegen/angular-app/src/assets/print.css +32 -0
- angular-codegen/build-angular-app.js +5 -4
- angular-codegen/dependencies/expression-parser.cjs.js +2511 -592
- angular-codegen/dependencies/pipe-provider.cjs.js +30481 -17343
- angular-codegen/dependencies/transpilation-mobile.cjs.js +17422 -10709
- angular-codegen/dependencies/transpilation-web.cjs.js +17422 -10709
- angular-codegen/download-packages.js +8 -1
- angular-codegen/package-lock.json +3 -4367
- angular-codegen/package.json +1 -1
- angular-codegen/src/codegen.js +1 -1
- angular-codegen/src/handlebar-helpers.js +1 -1
- angular-codegen/templates/app-prefabs.module.ts.hbs +0 -1
- angular-codegen/templates/app-routes.ts.hbs +6 -5
- 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 +0 -1
- angular-codegen/templates/prefab/prefab.module.ts.hbs +0 -1
@@ -32,6 +32,7 @@ const downloadNPMPackage = (packageInfo) => {
|
|
32
32
|
const HOME_DIR = os.homedir();
|
33
33
|
const PATH_NPM_PACKAGE = (packageInfo.baseDir || HOME_DIR + '/.wm/node_modules/') + packageInfo.name + '/' + packageInfo.version;
|
34
34
|
const PATH_NPM_PACKAGE_SUCCESS = PATH_NPM_PACKAGE + '/.SUCCESS';
|
35
|
+
let isError = false;
|
35
36
|
|
36
37
|
// To check global app runtime node modules.
|
37
38
|
if (!isNPMPackageExist(PATH_NPM_PACKAGE_SUCCESS, packageInfo.successMsg)) {
|
@@ -44,10 +45,16 @@ const downloadNPMPackage = (packageInfo) => {
|
|
44
45
|
}
|
45
46
|
|
46
47
|
executeSyncCmd('cd ' + PATH_NPM_PACKAGE + ' && ' + npmInstallCMD, (errMsg) => {
|
48
|
+
isError = true;
|
47
49
|
console.log(packageInfo.infoMsg + ' Something wrong with npm installation ', errMsg);
|
48
50
|
}, packageInfo.infoMsg);
|
49
51
|
|
50
|
-
|
52
|
+
//only create a .SUCCESS file when there is no error
|
53
|
+
if(!isError) {
|
54
|
+
isError = false;
|
55
|
+
fs.writeFileSync(PATH_NPM_PACKAGE_SUCCESS, packageInfo.successMsg);
|
56
|
+
}
|
57
|
+
|
51
58
|
} else {
|
52
59
|
console.log(packageInfo.infoMsg + ' Node packages already installed!');
|
53
60
|
}
|