@wavemaker/angular-codegen 11.8.0-rc.5697 → 11.8.0-rc.5720
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.
- package/angular-app/package-lock.json +16 -7
- package/angular-app/package.json +8 -10
- package/build-angular-app.js +6 -5
- package/download-packages.js +9 -0
- package/package-lock.json +1690 -302
- package/package.json +6 -1
- package/src/codegen-cli.js +1 -1
- package/src/codegen.js +1 -1
- package/src/gen-app-skeleton.js +1 -1
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wavemaker/angular-app",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "11.8.0-rc.5720",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "@wavemaker/angular-app",
|
|
9
|
-
"version": "
|
|
10
|
-
"license": "MIT",
|
|
9
|
+
"version": "11.8.0-rc.5720",
|
|
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.5720",
|
|
38
38
|
"@wavemaker/focus-trap": "1.0.1",
|
|
39
39
|
"@wavemaker/nvd3": "1.8.11",
|
|
40
|
-
"@wavemaker/variables": "11.8.0-rc.
|
|
40
|
+
"@wavemaker/variables": "11.8.0-rc.5720",
|
|
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.5720",
|
|
6440
|
+
"resolved": "https://registry.npmjs.org/@wavemaker/app-ng-runtime/-/app-ng-runtime-11.8.0-rc.5720.tgz",
|
|
6441
|
+
"integrity": "sha512-p+axlAbYhRBDf6C/OMufYl08XvFDMurUU/Bcy2rixe0vAcCVjeIzvgBkP2SYti1GLRAS3TcfrZoK53qjInl50Q==",
|
|
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.
|
|
6457
|
-
"resolved": "https://registry.npmjs.org/@wavemaker/variables/-/variables-11.8.0-rc.
|
|
6458
|
-
"integrity": "sha512-
|
|
6465
|
+
"version": "11.8.0-rc.5720",
|
|
6466
|
+
"resolved": "https://registry.npmjs.org/@wavemaker/variables/-/variables-11.8.0-rc.5720.tgz",
|
|
6467
|
+
"integrity": "sha512-SQZfpRo1SdTF/5xhfBey1lyfwwxITR7BOODqdxdMlTw1qwnZaegf3Dx1ut0y4TJrArl++mSjHDGXCRPcgciKpA==",
|
|
6459
6468
|
"dependencies": {
|
|
6460
6469
|
"@metrichor/jmespath": "^0.3.1",
|
|
6461
6470
|
"he": "^1.2.0",
|
package/angular-app/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wavemaker/angular-app",
|
|
3
|
-
"version": "11.8.0-rc.
|
|
3
|
+
"version": "11.8.0-rc.5720",
|
|
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
|
-
"
|
|
19
|
-
|
|
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.
|
|
51
|
+
"@wavemaker/variables": "11.8.0-rc.5720",
|
|
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.
|
|
76
|
+
"@wavemaker/app-ng-runtime": "11.8.0-rc.5720"
|
|
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
|
}
|
package/build-angular-app.js
CHANGED
|
@@ -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(),
|
|
48
|
-
const TARBALL_DOWNLOAD_PATH = (HOME_DIR + '/.wm/node_modules') + '/' +
|
|
49
|
-
const PACKAGE_NAME = NPM_PACKAGE_SCOPE + '/' +
|
|
50
|
-
const TARBALL_NAME = 'wavemaker' + '-' +
|
|
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:
|
|
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`,
|
package/download-packages.js
CHANGED
|
@@ -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
|
}
|