@botonic/cli 0.40.1 → 0.41.0-alpha.0
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/README.md +0 -175
- package/bin/dev.cmd +3 -0
- package/bin/dev.js +5 -0
- package/bin/run.js +5 -0
- package/lib/{botonic-api-service.d.ts → src/botonic-api-service.d.ts} +3 -3
- package/lib/src/botonic-api-service.js +245 -0
- package/lib/src/botonic-api-service.js.map +1 -0
- package/lib/src/botonic-examples.d.ts +2 -0
- package/lib/src/botonic-examples.js +28 -0
- package/lib/src/botonic-examples.js.map +1 -0
- package/lib/{commands → src/commands}/deploy.d.ts +13 -22
- package/lib/src/commands/deploy.js +346 -0
- package/lib/src/commands/deploy.js.map +1 -0
- package/lib/src/commands/login.d.ts +11 -0
- package/lib/src/commands/login.js +33 -0
- package/lib/src/commands/login.js.map +1 -0
- package/lib/src/commands/logout.d.ts +11 -0
- package/lib/src/commands/logout.js +22 -0
- package/lib/src/commands/logout.js.map +1 -0
- package/lib/{commands → src/commands}/new.d.ts +8 -11
- package/lib/src/commands/new.js +134 -0
- package/lib/src/commands/new.js.map +1 -0
- package/lib/{commands → src/commands}/serve.d.ts +3 -3
- package/lib/src/commands/serve.js +22 -0
- package/lib/src/commands/serve.js.map +1 -0
- package/lib/src/constants.js +7 -0
- package/lib/src/constants.js.map +1 -0
- package/lib/src/index.d.ts +1 -0
- package/lib/src/index.js +2 -0
- package/lib/src/index.js.map +1 -0
- package/lib/{interfaces.d.ts → src/interfaces.d.ts} +9 -0
- package/lib/src/interfaces.js +2 -0
- package/lib/{interfaces.js.map → src/interfaces.js.map} +1 -1
- package/lib/src/util/bot-config.js +98 -0
- package/lib/src/util/bot-config.js.map +1 -0
- package/lib/{analytics → src/util}/credentials-handler.d.ts +1 -1
- package/lib/src/util/credentials-handler.js +73 -0
- package/lib/src/util/credentials-handler.js.map +1 -0
- package/lib/src/util/download-gzip.js +71 -0
- package/lib/src/util/download-gzip.js.map +1 -0
- package/lib/{util → src/util}/environment-info.d.ts +1 -1
- package/lib/src/util/environment-info.js +46 -0
- package/lib/src/util/environment-info.js.map +1 -0
- package/lib/{util → src/util}/file-system.d.ts +2 -2
- package/lib/src/util/file-system.js +45 -0
- package/lib/src/util/file-system.js.map +1 -0
- package/lib/src/util/system.js +32 -0
- package/lib/src/util/system.js.map +1 -0
- package/lib/tsconfig.tsbuildinfo +1 -0
- package/oclif.manifest.json +191 -1
- package/package.json +43 -36
- package/bin/run +0 -5
- package/lib/analytics/credentials-handler.js +0 -77
- package/lib/analytics/credentials-handler.js.map +0 -1
- package/lib/botonic-api-service.js +0 -274
- package/lib/botonic-api-service.js.map +0 -1
- package/lib/botonic-examples.d.ts +0 -2
- package/lib/botonic-examples.js +0 -76
- package/lib/botonic-examples.js.map +0 -1
- package/lib/commands/deploy.js +0 -422
- package/lib/commands/deploy.js.map +0 -1
- package/lib/commands/login.d.ts +0 -16
- package/lib/commands/login.js +0 -47
- package/lib/commands/login.js.map +0 -1
- package/lib/commands/logout.d.ts +0 -11
- package/lib/commands/logout.js +0 -29
- package/lib/commands/logout.js.map +0 -1
- package/lib/commands/new.js +0 -159
- package/lib/commands/new.js.map +0 -1
- package/lib/commands/serve.js +0 -28
- package/lib/commands/serve.js.map +0 -1
- package/lib/commands/test.d.ts +0 -8
- package/lib/commands/test.js +0 -43
- package/lib/commands/test.js.map +0 -1
- package/lib/constants.js +0 -10
- package/lib/constants.js.map +0 -1
- package/lib/index.d.ts +0 -1
- package/lib/index.js +0 -6
- package/lib/index.js.map +0 -1
- package/lib/interfaces.js +0 -3
- package/lib/util/bot-config.js +0 -114
- package/lib/util/bot-config.js.map +0 -1
- package/lib/util/download-gzip.js +0 -87
- package/lib/util/download-gzip.js.map +0 -1
- package/lib/util/environment-info.js +0 -53
- package/lib/util/environment-info.js.map +0 -1
- package/lib/util/file-system.js +0 -59
- package/lib/util/file-system.js.map +0 -1
- package/lib/util/system.js +0 -43
- package/lib/util/system.js.map +0 -1
- package/scripts/postinstall.js +0 -13
- /package/lib/{constants.d.ts → src/constants.d.ts} +0 -0
- /package/lib/{util → src/util}/bot-config.d.ts +0 -0
- /package/lib/{util → src/util}/download-gzip.d.ts +0 -0
- /package/lib/{util → src/util}/system.d.ts +0 -0
package/lib/util/system.js
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.spawnNpmScript = exports.spawnProcess = exports.execCommandSafe = exports.execCommand = exports.sleep = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const child_process_1 = require("child_process");
|
|
6
|
-
function sleep(ms) {
|
|
7
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
8
|
-
return new Promise(resolve => setTimeout(resolve, ms));
|
|
9
|
-
});
|
|
10
|
-
}
|
|
11
|
-
exports.sleep = sleep;
|
|
12
|
-
function execCommand(command) {
|
|
13
|
-
return String((0, child_process_1.execSync)(command)).trim();
|
|
14
|
-
}
|
|
15
|
-
exports.execCommand = execCommand;
|
|
16
|
-
function execCommandSafe(command) {
|
|
17
|
-
try {
|
|
18
|
-
return execCommand(command);
|
|
19
|
-
}
|
|
20
|
-
catch (e) {
|
|
21
|
-
return String(e);
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
exports.execCommandSafe = execCommandSafe;
|
|
25
|
-
function spawnProcess(command, args, onClose) {
|
|
26
|
-
const childProcess = (0, child_process_1.spawn)(command, args, { shell: true }); // https://nodejs.org/api/child_process.html#child_process_spawning_bat_and_cmd_files_on_windows
|
|
27
|
-
childProcess.stdout.on('data', out => {
|
|
28
|
-
process.stdout.write(out);
|
|
29
|
-
});
|
|
30
|
-
childProcess.stderr.on('data', stderr => {
|
|
31
|
-
process.stderr.write(stderr);
|
|
32
|
-
});
|
|
33
|
-
childProcess.on('close', code => {
|
|
34
|
-
onClose && onClose();
|
|
35
|
-
process.stdout.write(`child process exited with code ${String(code)}`);
|
|
36
|
-
});
|
|
37
|
-
}
|
|
38
|
-
exports.spawnProcess = spawnProcess;
|
|
39
|
-
function spawnNpmScript(script, onClose) {
|
|
40
|
-
spawnProcess('npm', ['run', script], onClose);
|
|
41
|
-
}
|
|
42
|
-
exports.spawnNpmScript = spawnNpmScript;
|
|
43
|
-
//# sourceMappingURL=system.js.map
|
package/lib/util/system.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"system.js","sourceRoot":"","sources":["../../src/util/system.ts"],"names":[],"mappings":";;;;AAAA,iDAA+C;AAE/C,SAAsB,KAAK,CAAC,EAAU;;QACpC,OAAO,IAAI,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC,UAAU,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC,CAAA;IACxD,CAAC;CAAA;AAFD,sBAEC;AAED,SAAgB,WAAW,CAAC,OAAe;IACzC,OAAO,MAAM,CAAC,IAAA,wBAAQ,EAAC,OAAO,CAAC,CAAC,CAAC,IAAI,EAAE,CAAA;AACzC,CAAC;AAFD,kCAEC;AAED,SAAgB,eAAe,CAAC,OAAe;IAC7C,IAAI;QACF,OAAO,WAAW,CAAC,OAAO,CAAC,CAAA;KAC5B;IAAC,OAAO,CAAC,EAAE;QACV,OAAO,MAAM,CAAC,CAAC,CAAC,CAAA;KACjB;AACH,CAAC;AAND,0CAMC;AAED,SAAgB,YAAY,CAC1B,OAAe,EACf,IAAc,EACd,OAAsB;IAEtB,MAAM,YAAY,GAAG,IAAA,qBAAK,EAAC,OAAO,EAAE,IAAI,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAA,CAAC,gGAAgG;IAC3J,YAAY,CAAC,MAAM,CAAC,EAAE,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE;QACnC,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,CAAA;IAC3B,CAAC,CAAC,CAAA;IACF,YAAY,CAAC,MAAM,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,EAAE;QACtC,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAA;IAC9B,CAAC,CAAC,CAAA;IACF,YAAY,CAAC,EAAE,CAAC,OAAO,EAAE,IAAI,CAAC,EAAE;QAC9B,OAAO,IAAI,OAAO,EAAE,CAAA;QACpB,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,kCAAkC,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;IACxE,CAAC,CAAC,CAAA;AACJ,CAAC;AAhBD,oCAgBC;AAED,SAAgB,cAAc,CAAC,MAAc,EAAE,OAAsB;IACnE,YAAY,CAAC,KAAK,EAAE,CAAC,KAAK,EAAE,MAAM,CAAC,EAAE,OAAO,CAAC,CAAA;AAC/C,CAAC;AAFD,wCAEC"}
|
package/scripts/postinstall.js
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/*console.log(`
|
|
2
|
-
________ ________ _________ ________ ________ ___ ________
|
|
3
|
-
|\ __ \|\ __ \|\___ ___\\ __ \|\ ___ \|\ \|\ ____\
|
|
4
|
-
\ \ \|\ /\ \ \|\ \|___ \ \_\ \ \|\ \ \ \\ \ \ \ \ \ \___|
|
|
5
|
-
\ \ __ \ \ \\\ \ \ \ \ \ \ \\\ \ \ \\ \ \ \ \ \ \
|
|
6
|
-
\ \ \|\ \ \ \\\ \ \ \ \ \ \ \\\ \ \ \\ \ \ \ \ \ \____
|
|
7
|
-
\ \_______\ \_______\ \ \__\ \ \_______\ \__\\ \__\ \__\ \_______\
|
|
8
|
-
\|_______|\|_______| \|__| \|_______|\|__| \|__|\|__|\|_______|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
Build chatbots with React
|
|
13
|
-
`)*/
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|