@wavemaker/angular-codegen 11.8.0-rc.5698 → 11.8.0-rc.5721

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.
@@ -1,13 +1,12 @@
1
1
  {
2
2
  "name": "@wavemaker/angular-app",
3
- "version": "0.0.0",
3
+ "version": "11.8.0-rc.5721",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "@wavemaker/angular-app",
9
- "version": "0.0.0",
10
- "license": "MIT",
9
+ "version": "11.8.0-rc.5721",
11
10
  "dependencies": {
12
11
  "@angular/animations": "17.3.11",
13
12
  "@angular/common": "17.3.11",
@@ -35,9 +34,10 @@
35
34
  "@awesome-cordova-plugins/vibration": "5.39.1",
36
35
  "@babel/runtime": "7.14.8",
37
36
  "@metrichor/jmespath": "0.3.1",
37
+ "@wavemaker/app-ng-runtime": "11.8.0-rc.5721",
38
38
  "@wavemaker/focus-trap": "1.0.1",
39
39
  "@wavemaker/nvd3": "1.8.11",
40
- "@wavemaker/variables": "11.8.0-rc.5698",
40
+ "@wavemaker/variables": "11.8.0-rc.5721",
41
41
  "@ztree/ztree_v3": "3.5.48",
42
42
  "angular-imask": "^7.6.1",
43
43
  "angular2-websocket": "0.9.7",
@@ -6435,6 +6435,15 @@
6435
6435
  "vite": "^3.0.0 || ^4.0.0 || ^5.0.0"
6436
6436
  }
6437
6437
  },
6438
+ "node_modules/@wavemaker/app-ng-runtime": {
6439
+ "version": "11.8.0-rc.5721",
6440
+ "resolved": "https://registry.npmjs.org/@wavemaker/app-ng-runtime/-/app-ng-runtime-11.8.0-rc.5721.tgz",
6441
+ "integrity": "sha512-ssiXmAQqa4JpiWlEVG6XKO66/cR5dlKGQsUqnR0olg5tWsxitzAaZBSE/FbkOKy5gLwA2AmydH+Yuo3qwBetzQ==",
6442
+ "engines": {
6443
+ "node": ">=18.16.1",
6444
+ "npm": ">=9.5.1"
6445
+ }
6446
+ },
6438
6447
  "node_modules/@wavemaker/focus-trap": {
6439
6448
  "version": "1.0.1",
6440
6449
  "resolved": "https://registry.npmjs.org/@wavemaker/focus-trap/-/focus-trap-1.0.1.tgz",
@@ -6453,9 +6462,9 @@
6453
6462
  }
6454
6463
  },
6455
6464
  "node_modules/@wavemaker/variables": {
6456
- "version": "11.8.0-rc.5698",
6457
- "resolved": "https://registry.npmjs.org/@wavemaker/variables/-/variables-11.8.0-rc.5698.tgz",
6458
- "integrity": "sha512-eZrl/5JRzd5RN/N+JOR/swDki118U+fROC+XWFded7PftE8IenBwnI9X2cVRm/uYLeR++plp5A8yo7XtzGoMDA==",
6465
+ "version": "11.8.0-rc.5721",
6466
+ "resolved": "https://registry.npmjs.org/@wavemaker/variables/-/variables-11.8.0-rc.5721.tgz",
6467
+ "integrity": "sha512-TvicN2g3NLujtXdvnnDoSkhI0z29vuuSLSBXICNLNndufBvGpcMq6QxA8XexgCa5aEfdytyJxxQjZX1EVV+YPg==",
6459
6468
  "dependencies": {
6460
6469
  "@metrichor/jmespath": "^0.3.1",
6461
6470
  "he": "^1.2.0",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wavemaker/angular-app",
3
- "version": "11.8.0-rc.5698",
3
+ "version": "11.8.0-rc.5721",
4
4
  "scripts": {
5
5
  "ng": "ng",
6
6
  "start": "./node_modules/.bin/ng serve",
@@ -15,8 +15,10 @@
15
15
  "optimizecss": "gulp --gulpfile build-scripts/optimize-css.gulpfile.js",
16
16
  "owasp": "owasp-dependency-check --project \"wavemaker-ng-runtime\" -f \"ALL\""
17
17
  },
18
- "author": "Wavemaker",
19
- "license": "MIT",
18
+ "files": [
19
+ "**/*",
20
+ ".npmrc"
21
+ ],
20
22
  "dependencies": {
21
23
  "@angular/animations": "17.3.11",
22
24
  "@angular/common": "17.3.11",
@@ -46,7 +48,7 @@
46
48
  "@metrichor/jmespath": "0.3.1",
47
49
  "@wavemaker/focus-trap": "1.0.1",
48
50
  "@wavemaker/nvd3": "1.8.11",
49
- "@wavemaker/variables": "11.8.0-rc.5698",
51
+ "@wavemaker/variables": "11.8.0-rc.5721",
50
52
  "@ztree/ztree_v3": "3.5.48",
51
53
  "angular-imask": "^7.6.1",
52
54
  "angular2-websocket": "0.9.7",
@@ -71,7 +73,7 @@
71
73
  "tslib": "2.4.1",
72
74
  "x2js": "3.4.4",
73
75
  "zone.js": "0.14.7",
74
- "@wavemaker/app-ng-runtime": "11.8.0-rc.5698"
76
+ "@wavemaker/app-ng-runtime": "11.8.0-rc.5721"
75
77
  },
76
78
  "devDependencies": {
77
79
  "@ampproject/rollup-plugin-closure-compiler": "^0.27.0",
@@ -126,9 +128,5 @@
126
128
  "node": ">=18.16.1",
127
129
  "npm": ">=9.5.1"
128
130
  },
129
- "engineStrict": true,
130
- "files": [
131
- "**/*",
132
- ".npmrc"
133
- ]
131
+ "engineStrict": true
134
132
  }
@@ -44,18 +44,19 @@ const updateDeployUrl = (args) => {
44
44
  * Run the ng build and post build for the project
45
45
  */
46
46
  const buildAngularApp = (args) => {
47
- const HOME_DIR = os.homedir(), APP_NAME = "angular-app";
48
- const TARBALL_DOWNLOAD_PATH = (HOME_DIR + '/.wm/node_modules') + '/' + APP_NAME + '/' + args.runtimeUIVersion;
49
- const PACKAGE_NAME = NPM_PACKAGE_SCOPE + '/' + APP_NAME + '@' + args.runtimeUIVersion;
50
- const TARBALL_NAME = 'wavemaker' + '-' + APP_NAME + '-' + args.runtimeUIVersion + '.tgz';
47
+ const HOME_DIR = os.homedir(), ANGULAR_APP_TEMPLATE_NAME = "angular-app";
48
+ const TARBALL_DOWNLOAD_PATH = (HOME_DIR + '/.wm/node_modules') + '/' + ANGULAR_APP_TEMPLATE_NAME + '/' + args.runtimeUIVersion;
49
+ const PACKAGE_NAME = NPM_PACKAGE_SCOPE + '/' + ANGULAR_APP_TEMPLATE_NAME + '@' + args.runtimeUIVersion;
50
+ const TARBALL_NAME = 'wavemaker' + '-' + ANGULAR_APP_TEMPLATE_NAME + '-' + args.runtimeUIVersion + '.tgz';
51
51
 
52
52
  fs.mkdirSync(TARBALL_DOWNLOAD_PATH, { recursive: true });
53
+ //npm pack will download the given package as a tar file
53
54
  executeSyncCmd('cd ' + TARBALL_DOWNLOAD_PATH + ` && npm pack ${PACKAGE_NAME}`, null, `Downloading tarball - ${PACKAGE_NAME} to the location - ${TARBALL_DOWNLOAD_PATH}`);
54
55
  executeSyncCmd('cd ' + TARBALL_DOWNLOAD_PATH + ` && tar -xvf ${TARBALL_NAME}`, null, `Unzipping the tarball - ${TARBALL_NAME}`);
55
56
 
56
57
  let packageInfo = {
57
58
  scope: NPM_PACKAGE_SCOPE,
58
- name: APP_NAME,
59
+ name: ANGULAR_APP_TEMPLATE_NAME,
59
60
  version: args.runtimeUIVersion,
60
61
  packageJsonFile: `${TARBALL_DOWNLOAD_PATH}/package/package.json`,
61
62
  packageJsonLockFile: `${TARBALL_DOWNLOAD_PATH}/package/package-lock.json`,
@@ -1,6 +1,7 @@
1
1
  const fs = require('fs');
2
2
  const { executeSyncCmd } = require('./build-util');
3
3
  const os = require('os');
4
+ const path = require('path');
4
5
 
5
6
 
6
7
  /**
@@ -40,6 +41,14 @@ const downloadNPMPackage = (packageInfo) => {
40
41
  let npmInstallCMD = 'npm install --legacy-peer-deps ';
41
42
  if (packageInfo.packageJsonFile && fs.existsSync(packageInfo.packageJsonFile)) {
42
43
  fs.copyFileSync(packageInfo.packageJsonFile, PATH_NPM_PACKAGE + '/package.json');
44
+ try {
45
+ //expecting this lock file to be present for exact versions to be downloaded from private registry
46
+ fs.copyFileSync(`${path.dirname(packageInfo.packageJsonFile)} + /package-lock.json`, `${PATH_NPM_PACKAGE} + /package-lock.json`);
47
+ } catch (err) {
48
+ if (err.code === 'ENOENT') {
49
+ console.error(`Info: package-lock.json file not found at ${path.dirname(packageInfo.packageJsonFile)}`);
50
+ }
51
+ }
43
52
  } else {
44
53
  npmInstallCMD = 'npm init -y && ' + npmInstallCMD + packageInfo.scope + '/' + packageInfo.name + '@' + packageInfo.version;
45
54
  }