@wavemaker/angular-codegen 11.5.0-next.40003 → 11.5.0-next.NULL

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 (36) hide show
  1. angular-codegen/.npmrc +1 -0
  2. angular-codegen/angular-app/.npmrc +1 -0
  3. angular-codegen/angular-app/angular.json +119 -1009
  4. angular-codegen/angular-app/build-scripts/build.js +30 -0
  5. angular-codegen/angular-app/build-scripts/post-build.js +19 -13
  6. angular-codegen/angular-app/package-lock.json +25218 -23221
  7. angular-codegen/angular-app/package.json +57 -51
  8. angular-codegen/angular-app/src/app/lazy-load-scripts.resolve.ts +2 -4
  9. angular-codegen/angular-app/src/assets/print.css +32 -0
  10. angular-codegen/angular-app/src/assets/styles/css/wm-style.css +1 -1
  11. angular-codegen/angular-app/src/polyfills.ts +23 -39
  12. angular-codegen/angular-app/tsconfig.json +6 -3
  13. angular-codegen/angular-app/tsconfig.web-app.json +2 -2
  14. angular-codegen/angular-app/wm-custom-webpack.config.js +8 -11
  15. angular-codegen/build-angular-app.js +1 -1
  16. angular-codegen/dependencies/expression-parser.cjs.js +13624 -12592
  17. angular-codegen/dependencies/pipe-provider.cjs.js +124407 -57688
  18. angular-codegen/dependencies/transpilation-mobile.cjs.js +50241 -27668
  19. angular-codegen/dependencies/transpilation-web.cjs.js +50241 -27668
  20. angular-codegen/download-packages.js +10 -3
  21. angular-codegen/package-lock.json +3633 -2087
  22. angular-codegen/package.json +7 -2
  23. angular-codegen/src/codegen.js +1 -1
  24. angular-codegen/src/gen-app-skeleton.js +1 -1
  25. angular-codegen/src/handlebar-helpers.js +1 -1
  26. angular-codegen/src/pages-util.js +1 -1
  27. angular-codegen/src/update-angular-json.js +1 -1
  28. angular-codegen/templates/app-prefabs.module.ts.hbs +0 -1
  29. angular-codegen/templates/app-routes.ts.hbs +6 -5
  30. angular-codegen/templates/app.module.ts.hbs +24 -4
  31. angular-codegen/templates/layout/layout.module.ts.hbs +1 -1
  32. angular-codegen/templates/page/page.component.ts.hbs +4 -4
  33. angular-codegen/templates/page/page.module.ts.hbs +3 -3
  34. angular-codegen/templates/partial/partial.component.ts.hbs +5 -5
  35. angular-codegen/templates/partial/partial.module.ts.hbs +1 -2
  36. 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)) {
@@ -43,11 +44,17 @@ const downloadNPMPackage = (packageInfo) => {
43
44
  npmInstallCMD = 'npm init -y && ' + npmInstallCMD + packageInfo.scope + '/' + packageInfo.name + '@' + packageInfo.version;
44
45
  }
45
46
 
46
- executeSyncCmd('cd ' + PATH_NPM_PACKAGE + ' && ' + npmInstallCMD, () => {
47
- console.log(packageInfo.infoMsg + ' Something wrong with npm installation');
47
+ executeSyncCmd('cd ' + PATH_NPM_PACKAGE + ' && ' + npmInstallCMD, (errMsg) => {
48
+ isError = true;
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
  }