@wavemaker/angular-codegen 12.0.0-next.141131 → 12.0.0-next.141138

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 +13 -1
  2. angular-codegen/angular-app/build-scripts/update-version.js +24 -0
  3. angular-codegen/angular-app/package-lock.json +8431 -10702
  4. angular-codegen/angular-app/package.json +18 -14
  5. angular-codegen/angular-app/src/assets/styles/css/wm-style.css +1 -1
  6. angular-codegen/angular-app/src/framework/util/page-util.ts +1 -3
  7. angular-codegen/angular-app/src/setup-jest.js +1 -0
  8. angular-codegen/angular-app/tsconfig.json +0 -3
  9. angular-codegen/dependencies/expression-parser.cjs.js +1 -40
  10. angular-codegen/dependencies/pipe-provider.cjs.js +41 -303
  11. angular-codegen/dependencies/transpilation-mobile.cjs.js +418 -598
  12. angular-codegen/dependencies/transpilation-web.cjs.js +418 -598
  13. angular-codegen/package.json +1 -1
  14. angular-codegen/src/codegen.js +1 -1
  15. angular-codegen/src/gen-components.js +1 -1
  16. angular-codegen/src/gen-index-html.js +1 -1
  17. angular-codegen/src/handlebar-helpers.js +1 -1
  18. angular-codegen/src/pages-util.js +1 -1
  19. angular-codegen/src/update-angular-json.js +1 -1
  20. angular-codegen/templates/app.module.ts.hbs +1 -5
  21. angular-codegen/templates/page/page.module.ts.hbs +0 -11
  22. angular-codegen/angular-app/src/framework/services/customwidget-config-provider.service.ts +0 -13
  23. angular-codegen/dependencies/custom-widgets-bundle.cjs.js +0 -390
  24. angular-codegen/src/gen-customwidget-config.js +0 -1
  25. angular-codegen/templates/component.config.ts.hbs +0 -1
  26. angular-codegen/templates/customwidget/customwidget-config.ts.hbs +0 -6
  27. angular-codegen/templates/customwidget/customwidget.component.script.js.hbs +0 -3
  28. angular-codegen/templates/customwidget/customwidget.component.ts.hbs +0 -42
@@ -259,11 +259,23 @@
259
259
  "options": {
260
260
  "buildTarget": "angular-app:build"
261
261
  }
262
+ },
263
+ "lint": {
264
+ "builder": "@angular-eslint/builder:lint",
265
+ "options": {
266
+ "lintFilePatterns": [
267
+ "src/**/*.ts",
268
+ "src/**/*.html"
269
+ ]
270
+ }
262
271
  }
263
272
  }
264
273
  }
265
274
  },
266
275
  "cli": {
267
- "analytics": "fe5e8f46-2dff-4044-b3b8-8a1307278ce6"
276
+ "analytics": "fe5e8f46-2dff-4044-b3b8-8a1307278ce6",
277
+ "schematicCollections": [
278
+ "@angular-eslint/schematics"
279
+ ]
268
280
  }
269
281
  }
@@ -0,0 +1,24 @@
1
+ 'use strict';
2
+ const fs = require('fs');
3
+ const yargs = require('yargs');
4
+ const argv = yargs(process.argv).argv;
5
+
6
+ /**
7
+ * Updates the @wavemaker/app-ng-runtime dependency in the specified package.json file.
8
+ * @param {string} path - The path to the package.json file to update.
9
+ */
10
+
11
+ const updateNgRuntimePackage = (path) => {
12
+ if (fs.existsSync(path)) {
13
+ const packageJSON = require('../' + path);
14
+ packageJSON['dependencies']['@wavemaker/app-ng-runtime'] = argv["publish-version"];
15
+ fs.writeFileSync(path, JSON.stringify(packageJSON, null, 4));
16
+ } else {
17
+ console.log('package.json not found at ' + path);
18
+ }
19
+ };
20
+ const init = () => {
21
+ updateNgRuntimePackage('../wavemaker-studio-runtime-integration/package.json');
22
+ };
23
+
24
+ init();