@wavemaker/angular-codegen 11.7.0-next.42251 → 11.7.0-rc.162

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.
Files changed (28) hide show
  1. angular-codegen/angular-app/angular.json +25 -1622
  2. angular-codegen/angular-app/build-scripts/build.js +35 -0
  3. angular-codegen/angular-app/build-scripts/post-build.js +17 -11
  4. angular-codegen/angular-app/build-scripts/update-version.js +24 -0
  5. angular-codegen/angular-app/package-lock.json +12339 -13436
  6. angular-codegen/angular-app/package.json +65 -63
  7. angular-codegen/angular-app/src/app/lazy-load-scripts.resolve.ts +2 -4
  8. angular-codegen/angular-app/src/assets/print.css +32 -0
  9. angular-codegen/angular-app/src/assets/styles/css/wm-style.css +1 -1
  10. angular-codegen/angular-app/src/setup-jest.js +121 -0
  11. angular-codegen/angular-app/tsconfig.json +44 -33
  12. angular-codegen/angular-app/wm-custom-webpack.config.js +60 -0
  13. angular-codegen/build-angular-app.js +13 -5
  14. angular-codegen/dependencies/expression-parser.cjs.js +40465 -9308
  15. angular-codegen/dependencies/pipe-provider.cjs.js +186312 -93393
  16. angular-codegen/dependencies/transpilation-mobile.cjs.js +58913 -28706
  17. angular-codegen/dependencies/transpilation-web.cjs.js +75541 -28898
  18. angular-codegen/download-packages.js +8 -1
  19. angular-codegen/package-lock.json +4 -4368
  20. angular-codegen/package.json +2 -2
  21. angular-codegen/src/codegen.js +1 -1
  22. angular-codegen/src/handlebar-helpers.js +1 -1
  23. angular-codegen/templates/app-prefabs.module.ts.hbs +0 -1
  24. angular-codegen/templates/app-routes.ts.hbs +6 -5
  25. angular-codegen/templates/layout/layout.module.ts.hbs +1 -1
  26. angular-codegen/templates/page/page.module.ts.hbs +2 -2
  27. angular-codegen/templates/partial/partial.module.ts.hbs +0 -1
  28. 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
- fs.writeFileSync(PATH_NPM_PACKAGE_SUCCESS, packageInfo.successMsg);
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
  }