zcatalyst-cli 1.18.0-beta.11 → 1.18.0-beta.11-slate
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/docs/commands/slate/unlink.toml +9 -0
- package/docs/option-filter.toml +5 -0
- package/docs/serve/server/lib/slate/index.toml +14 -0
- package/docs/slate-utils.toml +4 -0
- package/lib/archiver.js +18 -9
- package/lib/command_needs/auth.js +1 -1
- package/lib/command_needs/rc.js +40 -3
- package/lib/commands/deploy/index.js +6 -1
- package/lib/commands/deploy/slate.js +58 -0
- package/lib/commands/index.js +3 -0
- package/lib/commands/init.js +4 -0
- package/lib/commands/slate/create.js +60 -0
- package/lib/commands/slate/link.js +60 -0
- package/lib/commands/slate/unlink.js +74 -0
- package/lib/deploy/features/index.js +3 -0
- package/lib/deploy/features/slate.js +123 -0
- package/lib/endpoints/index.js +8 -1
- package/lib/endpoints/lib/slate.js +91 -0
- package/lib/fn-utils/lib/common.js +1 -1
- package/lib/init/features/appsail/index.js +1 -1
- package/lib/init/features/index.js +15 -2
- package/lib/init/features/project.js +1 -1
- package/lib/init/features/slate/index.js +308 -0
- package/lib/internal/api.js +1 -1
- package/lib/internal/command.js +9 -5
- package/lib/option-filter.js +8 -2
- package/lib/port-resolver.js +7 -0
- package/lib/prompt/types/file-path.js +8 -5
- package/lib/serve/features/index.js +8 -1
- package/lib/serve/features/slate.js +47 -0
- package/lib/serve/index.js +19 -0
- package/lib/serve/server/index.js +61 -1
- package/lib/serve/server/lib/appsail/index.js +1 -1
- package/lib/serve/server/lib/master/index.js +25 -21
- package/lib/serve/server/lib/master/slate.js +45 -0
- package/lib/serve/server/lib/master/utils.js +2 -2
- package/lib/serve/server/lib/slate/index.js +144 -0
- package/lib/serve/server/lib/slate/static-server.js +193 -0
- package/lib/slate-utils.js +212 -0
- package/lib/util_modules/config/index.js +3 -1
- package/lib/util_modules/config/lib/slate.js +94 -0
- package/lib/util_modules/constants/lib/default.js +4 -0
- package/lib/util_modules/constants/lib/file-names.js +7 -1
- package/lib/util_modules/constants/lib/folder-names.js +1 -0
- package/lib/util_modules/constants/lib/scopes.js +3 -1
- package/lib/util_modules/context-help.js +2 -2
- package/lib/util_modules/fs/lib/async.js +8 -1
- package/lib/util_modules/fs/lib/sync.js +6 -1
- package/lib/util_modules/parser/toml.js +20 -5
- package/package.json +2 -2
|
@@ -3,17 +3,32 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
|
|
6
|
+
exports.convertTOML = exports.parseTOML = void 0;
|
|
7
|
+
const toml_1 = __importDefault(require("@iarna/toml"));
|
|
7
8
|
const error_1 = __importDefault(require("../../error"));
|
|
8
|
-
|
|
9
|
+
function parseTOML(str) {
|
|
9
10
|
try {
|
|
10
|
-
return
|
|
11
|
+
return toml_1.default.parse(str);
|
|
11
12
|
}
|
|
12
13
|
catch (e) {
|
|
13
14
|
const err = error_1.default.getErrorInstance(e, {
|
|
14
|
-
message: 'TOML Parsing error'
|
|
15
|
+
message: 'TOML Parsing error' + e
|
|
15
16
|
});
|
|
16
17
|
err.exit = 2;
|
|
17
18
|
throw err;
|
|
18
19
|
}
|
|
19
|
-
}
|
|
20
|
+
}
|
|
21
|
+
exports.parseTOML = parseTOML;
|
|
22
|
+
function convertTOML(object) {
|
|
23
|
+
try {
|
|
24
|
+
return toml_1.default.stringify(object);
|
|
25
|
+
}
|
|
26
|
+
catch (e) {
|
|
27
|
+
const err = error_1.default.getErrorInstance(e, {
|
|
28
|
+
message: 'TOML Writing error'
|
|
29
|
+
});
|
|
30
|
+
err.exit = 2;
|
|
31
|
+
throw err;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
exports.convertTOML = convertTOML;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "zcatalyst-cli",
|
|
3
|
-
"version": "1.18.0-beta.11",
|
|
3
|
+
"version": "1.18.0-beta.11-slate",
|
|
4
4
|
"description": "Command Line Tool for CATALYST",
|
|
5
5
|
"main": "./lib/index.js",
|
|
6
6
|
"bin": {
|
|
@@ -25,6 +25,7 @@
|
|
|
25
25
|
"homepage": "https://catalyst.zoho.com",
|
|
26
26
|
"license": "MIT",
|
|
27
27
|
"dependencies": {
|
|
28
|
+
"@iarna/toml": "^2.2.5",
|
|
28
29
|
"ansi-colors": "^4.1.3",
|
|
29
30
|
"app-module-path": "^2.2.0",
|
|
30
31
|
"better-queue": "^3.8.10",
|
|
@@ -51,7 +52,6 @@
|
|
|
51
52
|
"semver": "^7.3.7",
|
|
52
53
|
"string-width": "^4.2.3",
|
|
53
54
|
"strip-ansi": "^6.0.1",
|
|
54
|
-
"toml": "^3.0.0",
|
|
55
55
|
"update-notifier": "^5.1.0",
|
|
56
56
|
"winston": "^3.7.2",
|
|
57
57
|
"ws": "^8.5.0",
|