@wavemaker/studio-runtime-integration 11.8.1-next.1417116

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.
@@ -0,0 +1 @@
1
+ export * from './src/app/code-intellisense/declaration-content';
@@ -0,0 +1,2 @@
1
+ export * from './src/app/code-intellisense/declaration-content';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"./","sources":["index.ts"],"names":[],"mappings":"AAAA,cAAc,iDAAiD,CAAC","sourcesContent":["export * from './src/app/code-intellisense/declaration-content';\n\n"]}
@@ -0,0 +1,29 @@
1
+ {
2
+ "name": "@wavemaker/studio-runtime-integration",
3
+ "version": "11.8.1-next.1417116",
4
+ "description": "",
5
+ "main": "index",
6
+ "scripts": {
7
+ "add:auto-code-complete": "ts-node src/app/code-intellisense/declaration-file-process-script.ts",
8
+ "build": "tsc && webpack --mode development && node ./scripts/build.js post-build"
9
+ },
10
+ "author": "",
11
+ "license": "ISC",
12
+ "devDependencies": {
13
+ "execa": "^5.0.0",
14
+ "fs-extra": "^11.2.0",
15
+ "tar": "^7.4.3",
16
+ "ts-loader": "^9.5.1",
17
+ "webpack": "^5.93.0",
18
+ "webpack-cli": "^5.1.4",
19
+ "yargs": "^17.7.2"
20
+ },
21
+ "dependencies": {
22
+ "@wavemaker/app-ng-runtime": "11.8.1-next.1417116",
23
+ "@wavemaker/variables": "11.8.1-next.1417116"
24
+ },
25
+ "module": "index",
26
+ "exports": {
27
+ ".": "./index"
28
+ }
29
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,133 @@
1
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
+ return new (P || (P = Promise))(function (resolve, reject) {
4
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
6
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
7
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
8
+ });
9
+ };
10
+ var __generator = (this && this.__generator) || function (thisArg, body) {
11
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
12
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
13
+ function verb(n) { return function (v) { return step([n, v]); }; }
14
+ function step(op) {
15
+ if (f) throw new TypeError("Generator is already executing.");
16
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
17
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
18
+ if (y = 0, t) op = [op[0] & 2, t.value];
19
+ switch (op[0]) {
20
+ case 0: case 1: t = op; break;
21
+ case 4: _.label++; return { value: op[1], done: false };
22
+ case 5: _.label++; y = op[1]; op = [0]; continue;
23
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
24
+ default:
25
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
26
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
27
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
28
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
29
+ if (t[2]) _.ops.pop();
30
+ _.trys.pop(); continue;
31
+ }
32
+ op = body.call(thisArg, _);
33
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
34
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
35
+ }
36
+ };
37
+ var fs = require('fs-extra');
38
+ var projectDir = '.';
39
+ var yargs = require('yargs');
40
+ var hideBin = require('yargs/helpers').hideBin;
41
+ var tar = require('tar');
42
+ var execa = require('execa');
43
+ function updatePackageVersion(packagePath, key, version) {
44
+ return __awaiter(this, void 0, void 0, function () {
45
+ var content;
46
+ return __generator(this, function (_a) {
47
+ content = fs.readFileSync(packagePath, 'utf8');
48
+ content = content.replace(new RegExp("\"".concat(key, "\"\\s*:\\s*\"[^\"]*\"")), "\"".concat(key, "\": \"").concat(version, "\""));
49
+ fs.writeFileSync(packagePath, content);
50
+ return [2 /*return*/];
51
+ });
52
+ });
53
+ }
54
+ function postBuild(runtimeVersion) {
55
+ return __awaiter(this, void 0, void 0, function () {
56
+ var packageData;
57
+ return __generator(this, function (_a) {
58
+ switch (_a.label) {
59
+ case 0:
60
+ fs.copySync("".concat(projectDir, "/package.json"), "".concat(projectDir, "/dist/es2015/package.json"));
61
+ packageData = fs.readJSONSync("".concat(projectDir, "/package.json"), {
62
+ encoding: "utf8"
63
+ });
64
+ packageData.main = 'index';
65
+ packageData.module = 'index';
66
+ packageData.exports = {
67
+ ".": "./index"
68
+ };
69
+ delete packageData['files'];
70
+ fs.writeFileSync("".concat(projectDir, "/dist/es2015/package.json"), JSON.stringify(packageData, null, 2));
71
+ return [4 /*yield*/, updatePackageVersion("".concat(projectDir, "/dist/es2015/package.json"), 'version', runtimeVersion)];
72
+ case 1:
73
+ _a.sent();
74
+ console.log('Post Build successful!!!');
75
+ return [2 /*return*/];
76
+ }
77
+ });
78
+ });
79
+ }
80
+ function prepareNpmPackages() {
81
+ return __awaiter(this, void 0, void 0, function () {
82
+ return __generator(this, function (_a) {
83
+ switch (_a.label) {
84
+ case 0:
85
+ fs.copySync("".concat(projectDir, "/dist/es2015"), "".concat(projectDir, "/dist/npm-packages/studio-runtime-integration"), {
86
+ filter: function (p) { return !p.startsWith('/node_modules/'); }
87
+ });
88
+ return [4 /*yield*/, execa('tar', ['-czf', 'dist/npm-packages/studio-runtime-integration.tar.gz', '-C', 'dist/npm-packages', 'studio-runtime-integration'])];
89
+ case 1:
90
+ _a.sent();
91
+ return [2 /*return*/];
92
+ }
93
+ });
94
+ });
95
+ }
96
+ function pushToLocalRepo() {
97
+ return __awaiter(this, void 0, void 0, function () {
98
+ return __generator(this, function (_a) {
99
+ switch (_a.label) {
100
+ case 0:
101
+ fs.writeFileSync("".concat(projectDir, "/dist/new-build"), '' + Date.now);
102
+ return [4 /*yield*/, execa('yalc', ['publish', '--no-sig', '--push'], {
103
+ 'cwd': "".concat(projectDir, "/dist/es2015")
104
+ })];
105
+ case 1:
106
+ _a.sent();
107
+ console.log("Pushed to local repo successfully");
108
+ return [2 /*return*/];
109
+ }
110
+ });
111
+ });
112
+ }
113
+ yargs(hideBin(process.argv)).command('post-build', 'to run post processing after project build', function (yargs) {
114
+ yargs.option('runtimeVersion', {
115
+ describe: 'version number',
116
+ type: 'string',
117
+ default: '1.0.0-dev'
118
+ }).option('production', {
119
+ describe: 'to perform a production build',
120
+ type: 'boolean',
121
+ default: false
122
+ });
123
+ }, function (argv) {
124
+ postBuild(argv.runtimeVersion).then(function () {
125
+ if (argv.production) {
126
+ return prepareNpmPackages();
127
+ }
128
+ else {
129
+ return pushToLocalRepo();
130
+ }
131
+ });
132
+ }).showHelpOnFail().argv;
133
+ //# sourceMappingURL=build.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"build.js","sourceRoot":"./","sources":["scripts/build.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAM,EAAE,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC;AAC/B,IAAM,UAAU,GAAG,GAAG,CAAC;AACvB,IAAM,KAAK,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;AACvB,IAAA,OAAO,GAAK,OAAO,CAAC,eAAe,CAAC,QAA7B,CAA8B;AAC7C,IAAM,GAAG,GAAG,OAAO,CAAC,KAAK,CAAC,CAAC;AAC3B,IAAM,KAAK,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;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C,CAAC,CAAC,cAAc,EAAE,CAAC,IAAI,CAAC","sourcesContent":["const fs = require('fs-extra');\nconst projectDir = '.';\nconst yargs = require('yargs');\nconst { hideBin } = require('yargs/helpers');\nconst tar = require('tar');\nconst execa = require('execa');\n\nasync function updatePackageVersion(packagePath, key, version) {\n let content = fs.readFileSync(packagePath, 'utf8');\n content = content.replace(new RegExp(`\"${key}\"\\\\s*:\\\\s*\"[^\"]*\"`), `\"${key}\": \"${version}\"`);\n fs.writeFileSync(packagePath, content);\n}\n\nasync function postBuild(runtimeVersion) {\n\n fs.copySync(`${projectDir}/package.json`, `${projectDir}/dist/es2015/package.json`);\n\n const packageData = fs.readJSONSync(`${projectDir}/package.json`, {\n encoding: \"utf8\"\n });\n packageData.main = 'index';\n packageData.module = 'index';\n packageData.exports = {\n \".\": \"./index\"\n };\n delete packageData['files'];\n\n fs.writeFileSync(`${projectDir}/dist/es2015/package.json`, JSON.stringify(packageData, null, 2))\n await updatePackageVersion(`${projectDir}/dist/es2015/package.json`, 'version', runtimeVersion);\n console.log('Post Build successful!!!');\n}\n\nasync function prepareNpmPackages() {\n fs.copySync(`${projectDir}/dist/es2015`, `${projectDir}/dist/npm-packages/studio-runtime-integration`, {\n filter: p => !p.startsWith('/node_modules/')\n });\n await execa('tar', ['-czf', 'dist/npm-packages/studio-runtime-integration.tar.gz', '-C', 'dist/npm-packages', 'studio-runtime-integration']);\n}\n\nasync function pushToLocalRepo() {\n fs.writeFileSync(`${projectDir}/dist/new-build`, '' + Date.now);\n await execa('yalc', ['publish', '--no-sig', '--push'], {\n 'cwd': `${projectDir}/dist/es2015`\n });\n console.log(\"Pushed to local repo successfully\");\n}\n\nyargs(hideBin(process.argv)).command('post-build',\n 'to run post processing after project build',\n (yargs) => {\n yargs.option('runtimeVersion', {\n describe: 'version number',\n type: 'string',\n default: '1.0.0-dev'\n }).option('production', {\n describe: 'to perform a production build',\n type: 'boolean',\n default: false\n });\n }, (argv) => {\n postBuild(argv.runtimeVersion).then(() => {\n if (argv.production) {\n return prepareNpmPackages();\n } else {\n return pushToLocalRepo();\n }\n });\n }).showHelpOnFail().argv;\n"]}
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,23 @@
1
+ 'use strict';
2
+ var fs = require('fs');
3
+ var yargs = require('yargs');
4
+ var argv = yargs(process.argv).argv;
5
+ /**
6
+ * Updates the @wavemaker/studio-runtime-integration dependency in the specified package.json file.
7
+ * @param {string} path - The path to the package.json file to update.
8
+ */
9
+ var updateStudioRuntimeIntegrationPackage = function (path) {
10
+ if (fs.existsSync(path)) {
11
+ var packageJSON = require('../' + path);
12
+ packageJSON['dependencies']['@wavemaker/studio-runtime-integration'] = argv["publish-version"];
13
+ fs.writeFileSync(path, JSON.stringify(packageJSON, null, 4));
14
+ }
15
+ else {
16
+ console.log('package.json not found at ' + path);
17
+ }
18
+ };
19
+ var init = function () {
20
+ updateStudioRuntimeIntegrationPackage('../wavemaker-ng-studio/package.json');
21
+ };
22
+ init();
23
+ //# sourceMappingURL=update-version.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-version.js","sourceRoot":"./","sources":["scripts/update-version.js"],"names":[],"mappings":"AAAA,YAAY,CAAC;AACb,IAAM,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;AACzB,IAAM,KAAK,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;AAC/B,IAAM,IAAI,GAAG,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC;AAEtC;;;GAGG;AAEH,IAAM,qCAAqC,GAAG,UAAC,IAAI;IAC/C,IAAI,EAAE,CAAC,UAAU,CAAC,IAAI,CAAC,EAAE,CAAC;QACtB,IAAM,WAAW,GAAG,OAAO,CAAC,KAAK,GAAG,IAAI,CAAC,CAAC;QAC1C,WAAW,CAAC,cAAc,CAAC,CAAC,uCAAuC,CAAC,GAAG,IAAI,CAAC,iBAAiB,CAAC,CAAC;QAC/F,EAAE,CAAC,aAAa,CAAC,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,WAAW,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC;IACjE,CAAC;SAAM,CAAC;QACJ,OAAO,CAAC,GAAG,CAAC,4BAA4B,GAAG,IAAI,CAAC,CAAC;IACrD,CAAC;AACL,CAAC,CAAC;AACF,IAAM,IAAI,GAAG;IACT,qCAAqC,CAAC,qCAAqC,CAAC,CAAC;AACjF,CAAC,CAAC;AAEF,IAAI,EAAE,CAAC","sourcesContent":["'use strict';\nconst fs = require('fs');\nconst yargs = require('yargs');\nconst argv = yargs(process.argv).argv;\n\n/**\n * Updates the @wavemaker/studio-runtime-integration dependency in the specified package.json file.\n * @param {string} path - The path to the package.json file to update.\n */\n\nconst updateStudioRuntimeIntegrationPackage = (path) => {\n if (fs.existsSync(path)) {\n const packageJSON = require('../' + path);\n packageJSON['dependencies']['@wavemaker/studio-runtime-integration'] = argv[\"publish-version\"];\n fs.writeFileSync(path, JSON.stringify(packageJSON, null, 4));\n } else {\n console.log('package.json not found at ' + path);\n }\n};\nconst init = () => {\n updateStudioRuntimeIntegrationPackage('../wavemaker-ng-studio/package.json');\n};\n\ninit();\n"]}