create-checkly 4.0.14 → 4.1.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/{index.mjs → bin/run} +3 -1
- package/dist/actions/creates.js +12 -8
- package/dist/actions/creates.js.map +1 -1
- package/dist/actions/dependencies.d.ts +1 -1
- package/dist/actions/dependencies.js +18 -13
- package/dist/actions/dependencies.js.map +1 -1
- package/dist/actions/git.js +14 -10
- package/dist/actions/git.js.map +1 -1
- package/dist/actions/template.js +10 -6
- package/dist/actions/template.js.map +1 -1
- package/dist/commands/bootstrap.js +42 -20
- package/dist/commands/bootstrap.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/dist/utils/directory.d.ts +2 -1
- package/dist/utils/directory.js +32 -22
- package/dist/utils/directory.js.map +1 -1
- package/dist/utils/fullname.d.ts +1 -0
- package/dist/utils/fullname.js +85 -0
- package/dist/utils/fullname.js.map +1 -0
- package/dist/utils/installation.js +37 -28
- package/dist/utils/installation.js.map +1 -1
- package/dist/utils/messages.d.ts +0 -1
- package/dist/utils/messages.js +14 -10
- package/dist/utils/messages.js.map +1 -1
- package/dist/utils/prompts.d.ts +6 -2
- package/dist/utils/prompts.js +32 -21
- package/dist/utils/prompts.js.map +1 -1
- package/dist/utils/terminal.js +7 -2
- package/dist/utils/terminal.js.map +1 -1
- package/dist/utils/which-pm.d.ts +4 -0
- package/dist/utils/which-pm.js +20 -0
- package/dist/utils/which-pm.js.map +1 -0
- package/package.json +21 -18
- package/dist/index.d.ts +0 -1
- package/dist/index.js +0 -5
- package/dist/index.js.map +0 -1
package/{index.mjs → bin/run}
RENAMED
package/dist/actions/creates.js
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.createCustomBrowserCheck = void 0;
|
|
4
|
+
const fs = require("fs");
|
|
5
|
+
const path = require("path");
|
|
6
|
+
const directory_1 = require("../utils/directory");
|
|
7
|
+
const prompts_1 = require("../utils/prompts");
|
|
5
8
|
// Default Playwright-based Browser Check
|
|
6
9
|
const defaultBrowserCheck = `import { test, expect } from '@playwright/test'
|
|
7
10
|
|
|
@@ -13,11 +16,11 @@ test('Custom Browser Check', async ({ page }) => {
|
|
|
13
16
|
expect(response?.status()).toBeLessThan(400)
|
|
14
17
|
await page.screenshot({ path: 'screenshot.jpg' })
|
|
15
18
|
})`;
|
|
16
|
-
|
|
17
|
-
const { createInitialBrowserCheck } = await askCreateInitialBrowserCheck(onCancel);
|
|
19
|
+
async function createCustomBrowserCheck({ projectDirectory, onCancel }) {
|
|
20
|
+
const { createInitialBrowserCheck } = await (0, prompts_1.askCreateInitialBrowserCheck)(onCancel);
|
|
18
21
|
if (createInitialBrowserCheck) {
|
|
19
|
-
const { userWebsite } = await askUserWebsite(onCancel);
|
|
20
|
-
if (isValidUrl(userWebsite)) {
|
|
22
|
+
const { userWebsite } = await (0, prompts_1.askUserWebsite)(onCancel);
|
|
23
|
+
if ((0, directory_1.isValidUrl)(userWebsite)) {
|
|
21
24
|
fs.writeFileSync(path.join(projectDirectory, './__checks__/custom.spec.ts'), defaultBrowserCheck.replace(/URL_TO_CHECK/i, new URL(userWebsite).toString()));
|
|
22
25
|
}
|
|
23
26
|
else {
|
|
@@ -25,4 +28,5 @@ export async function createCustomBrowserCheck({ projectDirectory, onCancel }) {
|
|
|
25
28
|
}
|
|
26
29
|
}
|
|
27
30
|
}
|
|
31
|
+
exports.createCustomBrowserCheck = createCustomBrowserCheck;
|
|
28
32
|
//# sourceMappingURL=creates.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"creates.js","sourceRoot":"","sources":["../../src/actions/creates.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"creates.js","sourceRoot":"","sources":["../../src/actions/creates.ts"],"names":[],"mappings":";;;AAAA,yBAAwB;AACxB,6BAA4B;AAC5B,kDAA+C;AAC/C,8CAA+E;AAE/E,yCAAyC;AACzC,MAAM,mBAAmB,GAAG;;;;;;;;;GASzB,CAAA;AAEI,KAAK,UAAU,wBAAwB,CAC5C,EAAE,gBAAgB,EAAE,QAAQ,EAAsD;IAElF,MAAM,EAAE,yBAAyB,EAAE,GAAG,MAAM,IAAA,sCAA4B,EAAC,QAAQ,CAAC,CAAA;IAElF,IAAI,yBAAyB,EAAE;QAC7B,MAAM,EAAE,WAAW,EAAE,GAAG,MAAM,IAAA,wBAAc,EAAC,QAAQ,CAAC,CAAA;QAEtD,IAAI,IAAA,sBAAU,EAAC,WAAW,CAAC,EAAE;YAC3B,EAAE,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,gBAAgB,EAAE,6BAA6B,CAAC,EACzE,mBAAmB,CAAC,OAAO,CAAC,eAAe,EAAE,IAAI,GAAG,CAAC,WAAW,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAA;SACjF;aAAM;YACL,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,iEAAiE,CAAC,CAAA;SACxF;KACF;AACH,CAAC;AAfD,4DAeC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { PackageJson } from '../utils/directory
|
|
1
|
+
import { PackageJson } from '../utils/directory';
|
|
2
2
|
export declare function addDevDependecies(projectDirectory: string, packageJson: PackageJson): void;
|
|
3
3
|
export declare function installDependencies(targetDir: string): Promise<void>;
|
|
@@ -1,11 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.installDependencies = exports.addDevDependecies = void 0;
|
|
4
|
+
const fs = require("fs");
|
|
5
|
+
const path = require("path");
|
|
6
|
+
const execa = require("execa");
|
|
7
|
+
const terminal_1 = require("../utils/terminal");
|
|
8
|
+
const messages_1 = require("../utils/messages");
|
|
9
|
+
const prompts_1 = require("../utils/prompts");
|
|
10
|
+
const which_pm_1 = require("../utils/which-pm");
|
|
11
|
+
function addDevDependecies(projectDirectory, packageJson) {
|
|
9
12
|
if (!Reflect.has(packageJson, 'devDependencies')) {
|
|
10
13
|
packageJson.devDependencies = {};
|
|
11
14
|
}
|
|
@@ -16,12 +19,13 @@ export function addDevDependecies(projectDirectory, packageJson) {
|
|
|
16
19
|
});
|
|
17
20
|
fs.writeFileSync(path.join(projectDirectory, 'package.json'), JSON.stringify(packageJson, null, 2));
|
|
18
21
|
}
|
|
19
|
-
|
|
20
|
-
|
|
22
|
+
exports.addDevDependecies = addDevDependecies;
|
|
23
|
+
async function installDependencies(targetDir) {
|
|
24
|
+
const { installDependencies } = await (0, prompts_1.askInstallDependencies)();
|
|
21
25
|
if (installDependencies) {
|
|
22
|
-
const packageManager =
|
|
26
|
+
const packageManager = (await (0, which_pm_1.getPackageManager)())?.name || 'npm';
|
|
23
27
|
const installExec = execa(packageManager, ['install'], { cwd: targetDir });
|
|
24
|
-
const installSpinner = spinner('installing packages');
|
|
28
|
+
const installSpinner = (0, terminal_1.spinner)('installing packages');
|
|
25
29
|
await new Promise((resolve, reject) => {
|
|
26
30
|
installExec.stdout?.on('data', function (data) {
|
|
27
31
|
installSpinner.text = `installing \n${packageManager} ${data}`;
|
|
@@ -33,7 +37,8 @@ export async function installDependencies(targetDir) {
|
|
|
33
37
|
installSpinner.succeed();
|
|
34
38
|
}
|
|
35
39
|
else {
|
|
36
|
-
await hint('No worries.', 'Just remember to install the dependencies after this setup');
|
|
40
|
+
await (0, messages_1.hint)('No worries.', 'Just remember to install the dependencies after this setup');
|
|
37
41
|
}
|
|
38
42
|
}
|
|
43
|
+
exports.installDependencies = installDependencies;
|
|
39
44
|
//# sourceMappingURL=dependencies.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dependencies.js","sourceRoot":"","sources":["../../src/actions/dependencies.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"dependencies.js","sourceRoot":"","sources":["../../src/actions/dependencies.ts"],"names":[],"mappings":";;;AAAA,yBAAwB;AACxB,6BAA4B;AAC5B,+BAA8B;AAC9B,gDAA2C;AAC3C,gDAAwC;AAExC,8CAAyD;AACzD,gDAAqD;AAErD,SAAgB,iBAAiB,CAAE,gBAAwB,EAAE,WAAwB;IACnF,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,WAAW,EAAE,iBAAiB,CAAC,EAAE;QAChD,WAAW,CAAC,eAAe,GAAG,EAAE,CAAA;KACjC;IAED,MAAM,CAAC,MAAM,CAAC,WAAW,CAAC,eAAe,EAAE;QACzC,OAAO,EAAE,QAAQ;QACjB,SAAS,EAAE,QAAQ;QACnB,UAAU,EAAE,QAAQ;KACrB,CAAC,CAAA;IAEF,EAAE,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,gBAAgB,EAAE,cAAc,CAAC,EAAE,IAAI,CAAC,SAAS,CAAC,WAAW,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,CAAA;AACrG,CAAC;AAZD,8CAYC;AAEM,KAAK,UAAU,mBAAmB,CAAE,SAAiB;IAC1D,MAAM,EAAE,mBAAmB,EAAE,GAAG,MAAM,IAAA,gCAAsB,GAAE,CAAA;IAE9D,IAAI,mBAAmB,EAAE;QACvB,MAAM,cAAc,GAAG,CAAC,MAAM,IAAA,4BAAiB,GAAE,CAAC,EAAE,IAAI,IAAI,KAAK,CAAA;QACjE,MAAM,WAAW,GAAG,KAAK,CAAC,cAAc,EAAE,CAAC,SAAS,CAAC,EAAE,EAAE,GAAG,EAAE,SAAS,EAAE,CAAC,CAAA;QAC1E,MAAM,cAAc,GAAG,IAAA,kBAAO,EAAC,qBAAqB,CAAC,CAAA;QACrD,MAAM,IAAI,OAAO,CAAO,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;YAC1C,WAAW,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,EAAE,UAAU,IAAS;gBAChD,cAAc,CAAC,IAAI,GAAG,gBAAgB,cAAc,IAAI,IAAI,EAAE,CAAA;YAChE,CAAC,CAAC,CAAA;YACF,WAAW,CAAC,EAAE,CAAC,OAAO,EAAE,CAAC,KAAU,EAAE,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAA;YACtD,WAAW,CAAC,EAAE,CAAC,OAAO,EAAE,GAAG,EAAE,CAAC,OAAO,EAAE,CAAC,CAAA;QAC1C,CAAC,CAAC,CAAA;QACF,cAAc,CAAC,IAAI,GAAG,iCAAiC,CAAA;QACvD,cAAc,CAAC,OAAO,EAAE,CAAA;KACzB;SAAM;QACL,MAAM,IAAA,eAAI,EAAC,aAAa,EAAE,4DAA4D,CAAC,CAAA;KACxF;AACH,CAAC;AAnBD,kDAmBC"}
|
package/dist/actions/git.js
CHANGED
|
@@ -1,19 +1,23 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.initGit = void 0;
|
|
4
|
+
const fs = require("fs");
|
|
5
|
+
const path = require("path");
|
|
6
|
+
const directory_1 = require("../utils/directory");
|
|
7
|
+
const execa = require("execa");
|
|
8
|
+
const prompts_1 = require("../utils/prompts");
|
|
9
|
+
async function initGit(targetDir) {
|
|
10
|
+
if ((0, directory_1.hasGitDir)(targetDir)) {
|
|
8
11
|
return;
|
|
9
12
|
}
|
|
10
|
-
const { initializeGit } = await askInitializeGit();
|
|
13
|
+
const { initializeGit } = await (0, prompts_1.askInitializeGit)();
|
|
11
14
|
if (initializeGit) {
|
|
12
|
-
await
|
|
13
|
-
if (!hasGitIgnore(targetDir)) {
|
|
15
|
+
await execa('git', ['init'], { cwd: targetDir });
|
|
16
|
+
if (!(0, directory_1.hasGitIgnore)(targetDir)) {
|
|
14
17
|
const gitIgnore = 'node_modules\n.DS_Store';
|
|
15
18
|
fs.writeFileSync(path.join(targetDir, '.gitignore'), gitIgnore);
|
|
16
19
|
}
|
|
17
20
|
}
|
|
18
21
|
}
|
|
22
|
+
exports.initGit = initGit;
|
|
19
23
|
//# sourceMappingURL=git.js.map
|
package/dist/actions/git.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"git.js","sourceRoot":"","sources":["../../src/actions/git.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"git.js","sourceRoot":"","sources":["../../src/actions/git.ts"],"names":[],"mappings":";;;AAAA,yBAAwB;AACxB,6BAA4B;AAC5B,kDAA4D;AAC5D,+BAA8B;AAC9B,8CAAmD;AAE5C,KAAK,UAAU,OAAO,CAAE,SAAiB;IAC9C,IAAI,IAAA,qBAAS,EAAC,SAAS,CAAC,EAAE;QACxB,OAAM;KACP;IAED,MAAM,EAAE,aAAa,EAAE,GAAG,MAAM,IAAA,0BAAgB,GAAE,CAAA;IAElD,IAAI,aAAa,EAAE;QACjB,MAAM,KAAK,CAAC,KAAK,EAAE,CAAC,MAAM,CAAC,EAAE,EAAE,GAAG,EAAE,SAAS,EAAE,CAAC,CAAA;QAEhD,IAAI,CAAC,IAAA,wBAAY,EAAC,SAAS,CAAC,EAAE;YAC5B,MAAM,SAAS,GAAG,yBAAyB,CAAA;YAC3C,EAAE,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,YAAY,CAAC,EAAE,SAAS,CAAC,CAAA;SAChE;KACF;AACH,CAAC;AAfD,0BAeC"}
|
package/dist/actions/template.js
CHANGED
|
@@ -1,10 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.copyTemplate = void 0;
|
|
4
|
+
const chalk = require("chalk");
|
|
5
|
+
const giget_1 = require("giget");
|
|
6
|
+
const terminal_1 = require("../utils/terminal");
|
|
7
|
+
async function copyTemplate({ template, templatePath, targetDir }) {
|
|
8
|
+
const downloadTemplateSpinner = (0, terminal_1.spinner)('Downloading example template...');
|
|
6
9
|
try {
|
|
7
|
-
await downloadTemplate(templatePath, {
|
|
10
|
+
await (0, giget_1.downloadTemplate)(templatePath, {
|
|
8
11
|
force: true,
|
|
9
12
|
cwd: targetDir,
|
|
10
13
|
dir: '.',
|
|
@@ -24,4 +27,5 @@ export async function copyTemplate({ template, templatePath, targetDir }) {
|
|
|
24
27
|
downloadTemplateSpinner.text = chalk.green('Example template copied!');
|
|
25
28
|
downloadTemplateSpinner.succeed();
|
|
26
29
|
}
|
|
30
|
+
exports.copyTemplate = copyTemplate;
|
|
27
31
|
//# sourceMappingURL=template.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"template.js","sourceRoot":"","sources":["../../src/actions/template.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"template.js","sourceRoot":"","sources":["../../src/actions/template.ts"],"names":[],"mappings":";;;AAAA,+BAA8B;AAC9B,iCAAwC;AACxC,gDAA2C;AAQpC,KAAK,UAAU,YAAY,CAAE,EAAE,QAAQ,EAAE,YAAY,EAAE,SAAS,EAAqB;IAC1F,MAAM,uBAAuB,GAAG,IAAA,kBAAO,EAAC,iCAAiC,CAAC,CAAA;IAE1E,IAAI;QACF,MAAM,IAAA,wBAAgB,EAAC,YAAY,EAAE;YACnC,KAAK,EAAE,IAAI;YACX,GAAG,EAAE,SAAS;YACd,GAAG,EAAE,GAAG;SACT,CAAC,CAAA;KACH;IAAC,OAAO,CAAM,EAAE;QACf,IAAI,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE;YAC7B,uBAAuB,CAAC,IAAI,GAAG,KAAK,CAAC,GAAG,CAAC,2BAA2B,QAAQ,GAAG,CAAC,CAAA;YAChF,uBAAuB,CAAC,IAAI,EAAE,CAAA;SAC/B;aAAM;YACL,2BAA2B;YAC3B,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,CAAA;SACzB;QACD,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;KAChB;IAED,uBAAuB,CAAC,IAAI,GAAG,KAAK,CAAC,KAAK,CAAC,0BAA0B,CAAC,CAAA;IACtE,uBAAuB,CAAC,OAAO,EAAE,CAAA;AACnC,CAAC;AAtBD,oCAsBC"}
|
|
@@ -1,46 +1,68 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const axios_1 = require("axios");
|
|
4
|
+
const chalk = require("chalk");
|
|
5
|
+
const prompts = require("prompts");
|
|
6
|
+
const core_1 = require("@oclif/core");
|
|
7
|
+
const messages_js_1 = require("../utils/messages.js");
|
|
8
|
+
const directory_1 = require("../utils/directory");
|
|
9
|
+
const installation_1 = require("../utils/installation");
|
|
6
10
|
/**
|
|
7
11
|
* This code is heavily inspired by the amazing create-astro package over at
|
|
8
12
|
* https://github.com/withastro/astro/tree/main/packages/create-astro
|
|
9
13
|
*/
|
|
10
|
-
|
|
14
|
+
class Bootstrap extends core_1.Command {
|
|
11
15
|
async run() {
|
|
12
16
|
const { flags } = await this.parse(Bootstrap);
|
|
13
17
|
const { template } = flags;
|
|
14
18
|
const onCancel = () => {
|
|
15
|
-
|
|
16
|
-
// TODO: replace this with oclif error()
|
|
17
|
-
process.exit(1);
|
|
19
|
+
this.error(chalk.dim('Bailing, hope to see you again soon!\n'));
|
|
18
20
|
};
|
|
19
21
|
// This overrides the template prompt and skips to the next prompt
|
|
20
22
|
if (template) {
|
|
21
23
|
prompts.override({ template });
|
|
22
24
|
}
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
25
|
+
// This overrides prompts answers/selections (used on E2E tests)
|
|
26
|
+
if (process.env.CHECKLY_E2E_PROMPTS_INJECTIONS) {
|
|
27
|
+
try {
|
|
28
|
+
const injections = JSON.parse(process.env.CHECKLY_E2E_PROMPTS_INJECTIONS);
|
|
29
|
+
prompts.inject(injections);
|
|
30
|
+
}
|
|
31
|
+
catch {
|
|
32
|
+
process.stderr.write('Error parsing CHECKLY_E2E_PROMPTS_INJECTIONS environment variable for injections.');
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
let version = process.env.CHECKLY_CLI_VERSION ?? this.config.version;
|
|
36
|
+
// use latest version from NPM if it's running from the local environment or E2E
|
|
37
|
+
if (version === '0.0.1-dev') {
|
|
38
|
+
try {
|
|
39
|
+
const { data: packageInformation } = await axios_1.default.get('https://registry.npmjs.org/checkly/latest');
|
|
40
|
+
this.log(`\nNotice: replacing version '${version}' with latest '${packageInformation.version}'.\n`);
|
|
41
|
+
version = packageInformation.version;
|
|
42
|
+
}
|
|
43
|
+
catch { }
|
|
44
|
+
}
|
|
45
|
+
const greeting = await (0, messages_js_1.getUserGreeting)();
|
|
46
|
+
await (0, messages_js_1.header)(version, greeting);
|
|
47
|
+
const projectDirectory = await (0, installation_1.getProjectDirectory)({ onCancel });
|
|
48
|
+
if ((0, directory_1.hasPackageJsonFile)(projectDirectory)) {
|
|
28
49
|
// Init Checkly CLI for an existing project
|
|
29
|
-
await installWithinProject({ projectDirectory, version, onCancel });
|
|
50
|
+
await (0, installation_1.installWithinProject)({ projectDirectory, version, onCancel });
|
|
30
51
|
}
|
|
31
52
|
else {
|
|
32
53
|
// Create a project from the scratch using a template
|
|
33
|
-
await hint('Cool.', `Your project will be created in the directory "${projectDirectory}"`);
|
|
34
|
-
await createProject({ projectDirectory, version, onCancel });
|
|
54
|
+
await (0, messages_js_1.hint)('Cool.', `Your project will be created in the directory "${projectDirectory}"`);
|
|
55
|
+
await (0, installation_1.createProject)({ projectDirectory, version, onCancel });
|
|
35
56
|
}
|
|
36
57
|
// ask and install dependencies and initialize git
|
|
37
|
-
await installDependenciesAndInitGit({ projectDirectory });
|
|
38
|
-
await footer(projectDirectory);
|
|
58
|
+
await (0, installation_1.installDependenciesAndInitGit)({ projectDirectory });
|
|
59
|
+
await (0, messages_js_1.footer)(projectDirectory);
|
|
39
60
|
}
|
|
40
61
|
}
|
|
62
|
+
exports.default = Bootstrap;
|
|
41
63
|
Bootstrap.description = 'Bootstrap a Checkly project';
|
|
42
64
|
Bootstrap.flags = {
|
|
43
|
-
template: Flags.string({
|
|
65
|
+
template: core_1.Flags.string({
|
|
44
66
|
char: 't',
|
|
45
67
|
description: 'An optional template name',
|
|
46
68
|
}),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bootstrap.js","sourceRoot":"","sources":["../../src/commands/bootstrap.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"bootstrap.js","sourceRoot":"","sources":["../../src/commands/bootstrap.ts"],"names":[],"mappings":";;AAAA,iCAAyB;AACzB,+BAA8B;AAC9B,mCAAkC;AAClC,sCAA4C;AAC5C,sDAA4E;AAC5E,kDAAuD;AACvD,wDAK8B;AAE9B;;;GAGG;AAEH,MAAqB,SAAU,SAAQ,cAAO;IAU5C,KAAK,CAAC,GAAG;QACP,MAAM,EAAE,KAAK,EAAE,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,CAAA;QAC7C,MAAM,EAAE,QAAQ,EAAE,GAAG,KAAK,CAAA;QAE1B,MAAM,QAAQ,GAAG,GAAS,EAAE;YAC1B,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,wCAAwC,CAAC,CAAC,CAAA;QACjE,CAAC,CAAA;QAED,kEAAkE;QAClE,IAAI,QAAQ,EAAE;YACZ,OAAO,CAAC,QAAQ,CAAC,EAAE,QAAQ,EAAE,CAAC,CAAA;SAC/B;QAED,gEAAgE;QAChE,IAA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gB,EAAE,OAAO,EAAE,QAAQ,EAAE,CAAC,CAAA;SAC7D;QAED,kDAAkD;QAClD,MAAM,IAAA,4CAA6B,EAAC,EAAE,gBAAgB,EAAE,CAAC,CAAA;QAEzD,MAAM,IAAA,oBAAM,EAAC,gBAAgB,CAAC,CAAA;IAChC,CAAC;;AA/DH,4BAgEC;AA/DQ,qBAAW,GAAG,6BAA6B,CAAA;AAE3C,eAAK,GAAG;IACb,QAAQ,EAAE,YAAK,CAAC,MAAM,CAAC;QACrB,IAAI,EAAE,GAAG;QACT,WAAW,EAAE,2BAA2B;KACzC,CAAC;CACH,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"program":{"fileNames":["../../../node_modules/typescript/lib/lib.es5.d.ts","../../../node_modules/typescript/lib/lib.es2015.d.ts","../../../node_modules/typescript/lib/lib.es2016.d.ts","../../../node_modules/typescript/lib/lib.es2017.d.ts","../../../node_modules/typescript/lib/lib.es2018.d.ts","../../../node_modules/typescript/lib/lib.es2019.d.ts","../../../node_modules/typescript/lib/lib.es2020.d.ts","../../../node_modules/typescript/lib/lib.es2021.d.ts","../../../node_modules/typescript/lib/lib.dom.d.ts","../../../node_modules/typescript/lib/lib.dom.iterable.d.ts","../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts","../../../node_modules/typescript/lib/lib.scripthost.d.ts","../../../node_modules/typescript/lib/lib.es2015.core.d.ts","../../../node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../node_modules/typescript/lib/lib.es2017.object.d.ts","../../../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../node_modules/typescript/lib/lib.es2017.string.d.ts","../../../node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../node_modules/typescript/lib/lib.es2019.array.d.ts","../../../node_modules/typescript/lib/lib.es2019.object.d.ts","../../../node_modules/typescript/lib/lib.es2019.string.d.ts","../../../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../node_modules/typescript/lib/lib.es2019.intl.d.ts","../../../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../node_modules/typescript/lib/lib.es2020.date.d.ts","../../../node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../node_modules/typescript/lib/lib.es2020.string.d.ts","../../../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../node_modules/typescript/lib/lib.es2020.number.d.ts","../../../node_modules/typescript/lib/lib.es2021.promise.d.ts","../../../node_modules/typescript/lib/lib.es2021.string.d.ts","../../../node_modules/typescript/lib/lib.es2021.weakref.d.ts","../../../node_modules/typescript/lib/lib.es2021.intl.d.ts","../../../node_modules/typescript/lib/lib.esnext.intl.d.ts","../../../node_modules/typescript/lib/lib.es2021.full.d.ts","../../../node_modules/tslib/tslib.d.ts","../../../node_modules/unique-names-generator/dist/unique-names-generator.constructor.d.ts","../../../node_modules/unique-names-generator/dist/unique-names-generator.d.ts","../../../node_modules/unique-names-generator/dist/dictionaries/adjectives.d.ts","../../../node_modules/unique-names-generator/dist/dictionaries/animals.d.ts","../../../node_modules/unique-names-generator/dist/dictionaries/colors.d.ts","../../../node_modules/unique-names-generator/dist/dictionaries/countries.d.ts","../../../node_modules/unique-names-generator/dist/dictionaries/languages.d.ts","../../../node_modules/unique-names-generator/dist/dictionaries/names.d.ts","../../../node_modules/unique-names-generator/dist/dictionaries/star-wars.d.ts","../../../node_modules/unique-names-generator/dist/dictionaries/numbers.d.ts","../../../node_modules/unique-names-generator/dist/dictionaries/index.d.ts","../../../node_modules/unique-names-generator/dist/index.d.ts","../src/utils/directory.ts","../node_modules/chalk/index.d.ts","../../../node_modules/@types/node/assert.d.ts","../../../node_modules/@types/node/assert/strict.d.ts","../../../node_modules/@types/node/globals.d.ts","../../../node_modules/@types/node/async_hooks.d.ts","../../../node_modules/@types/node/buffer.d.ts","../../../node_modules/@types/node/child_process.d.ts","../../../node_modules/@types/node/cluster.d.ts","../../../node_modules/@types/node/console.d.ts","../../../node_modules/@types/node/constants.d.ts","../../../node_modules/@types/node/crypto.d.ts","../../../node_modules/@types/node/dgram.d.ts","../../../node_modules/@types/node/diagnostics_channel.d.ts","../../../node_modules/@types/node/dns.d.ts","../../../node_modules/@types/node/dns/promises.d.ts","../../../node_modules/@types/node/domain.d.ts","../../../node_modules/@types/node/dom-events.d.ts","../../../node_modules/@types/node/events.d.ts","../../../node_modules/@types/node/fs.d.ts","../../../node_modules/@types/node/fs/promises.d.ts","../../../node_modules/@types/node/http.d.ts","../../../node_modules/@types/node/http2.d.ts","../../../node_modules/@types/node/https.d.ts","../../../node_modules/@types/node/inspector.d.ts","../../../node_modules/@types/node/module.d.ts","../../../node_modules/@types/node/net.d.ts","../../../node_modules/@types/node/os.d.ts","../../../node_modules/@types/node/path.d.ts","../../../node_modules/@types/node/perf_hooks.d.ts","../../../node_modules/@types/node/process.d.ts","../../../node_modules/@types/node/punycode.d.ts","../../../node_modules/@types/node/querystring.d.ts","../../../node_modules/@types/node/readline.d.ts","../../../node_modules/@types/node/readline/promises.d.ts","../../../node_modules/@types/node/repl.d.ts","../../../node_modules/@types/node/stream.d.ts","../../../node_modules/@types/node/stream/promises.d.ts","../../../node_modules/@types/node/stream/consumers.d.ts","../../../node_modules/@types/node/stream/web.d.ts","../../../node_modules/@types/node/string_decoder.d.ts","../../../node_modules/@types/node/test.d.ts","../../../node_modules/@types/node/timers.d.ts","../../../node_modules/@types/node/timers/promises.d.ts","../../../node_modules/@types/node/tls.d.ts","../../../node_modules/@types/node/trace_events.d.ts","../../../node_modules/@types/node/tty.d.ts","../../../node_modules/@types/node/url.d.ts","../../../node_modules/@types/node/util.d.ts","../../../node_modules/@types/node/v8.d.ts","../../../node_modules/@types/node/vm.d.ts","../../../node_modules/@types/node/wasi.d.ts","../../../node_modules/@types/node/worker_threads.d.ts","../../../node_modules/@types/node/zlib.d.ts","../../../node_modules/@types/node/globals.global.d.ts","../../../node_modules/@types/node/index.d.ts","../../../node_modules/kleur/kleur.d.ts","../node_modules/@types/prompts/index.d.ts","../src/utils/prompts.ts","../src/actions/creates.ts","../node_modules/execa/index.d.ts","../../../node_modules/cli-spinners/index.d.ts","../node_modules/ora/index.d.ts","../src/utils/terminal.ts","../node_modules/passwd-user/index.d.ts","../src/utils/fullname.ts","../src/utils/messages.ts","../src/utils/which-pm.ts","../src/actions/dependencies.ts","../src/actions/git.ts","../../../node_modules/giget/dist/index.d.ts","../src/actions/template.ts","../../../node_modules/axios/index.d.ts","../../../node_modules/@oclif/core/lib/interfaces/help.d.ts","../../../node_modules/@oclif/core/lib/interfaces/pjson.d.ts","../../../node_modules/@oclif/core/lib/interfaces/topic.d.ts","../../../node_modules/@oclif/core/lib/interfaces/plugin.d.ts","../../../node_modules/@oclif/core/lib/interfaces/hooks.d.ts","../../../node_modules/@oclif/core/lib/interfaces/config.d.ts","../../../node_modules/@oclif/core/lib/interfaces/alphabet.d.ts","../../../node_modules/@oclif/core/lib/interfaces/errors.d.ts","../../../node_modules/@oclif/core/lib/interfaces/manifest.d.ts","../../../node_modules/@oclif/core/lib/interfaces/s3-manifest.d.ts","../../../node_modules/@oclif/core/lib/interfaces/parser.d.ts","../../../node_modules/@oclif/core/lib/interfaces/ts-config.d.ts","../../../node_modules/@oclif/core/lib/interfaces/flags.d.ts","../../../node_modules/@oclif/core/lib/interfaces/args.d.ts","../../../node_modules/@oclif/core/lib/interfaces/index.d.ts","../../../node_modules/@oclif/core/lib/errors/handle.d.ts","../../../node_modules/@oclif/core/lib/errors/errors/cli.d.ts","../../../node_modules/@oclif/core/lib/errors/errors/exit.d.ts","../../../node_modules/@oclif/core/lib/errors/errors/module-load.d.ts","../../../node_modules/@oclif/core/lib/errors/logger.d.ts","../../../node_modules/@oclif/core/lib/errors/config.d.ts","../../../node_modules/@oclif/core/lib/errors/index.d.ts","../../../node_modules/@oclif/core/lib/config/plugin.d.ts","../../../node_modules/@oclif/core/lib/config/config.d.ts","../../../node_modules/@oclif/core/lib/config/ts-node.d.ts","../../../node_modules/@oclif/core/lib/config/index.d.ts","../../../node_modules/@oclif/core/lib/command.d.ts","../../../node_modules/@oclif/core/lib/main.d.ts","../../../node_modules/@oclif/core/lib/flags.d.ts","../../../node_modules/@oclif/core/lib/args.d.ts","../../../node_modules/@oclif/core/lib/help/formatter.d.ts","../../../node_modules/@oclif/core/lib/help/command.d.ts","../../../node_modules/@oclif/core/lib/help/util.d.ts","../../../node_modules/@oclif/core/lib/help/index.d.ts","../../../node_modules/@oclif/core/lib/parser/help.d.ts","../../../node_modules/@oclif/core/lib/parser/index.d.ts","../../../node_modules/@oclif/core/lib/settings.d.ts","../../../node_modules/@oclif/core/lib/cli-ux/action/base.d.ts","../../../node_modules/@oclif/core/lib/cli-ux/config.d.ts","../../../node_modules/@oclif/core/lib/cli-ux/exit.d.ts","../../../node_modules/@oclif/core/lib/cli-ux/prompt.d.ts","../../../node_modules/@oclif/core/lib/cli-ux/styled/json.d.ts","../../../node_modules/@oclif/core/lib/cli-ux/styled/object.d.ts","../../../node_modules/@oclif/core/lib/cli-ux/styled/table.d.ts","../../../node_modules/@oclif/core/lib/cli-ux/styled/tree.d.ts","../../../node_modules/@types/cli-progress/index.d.ts","../../../node_modules/@oclif/core/lib/cli-ux/styled/progress.d.ts","../../../node_modules/@oclif/core/lib/cli-ux/styled/index.d.ts","../../../node_modules/@oclif/core/lib/cli-ux/wait.d.ts","../../../node_modules/@oclif/core/lib/cli-ux/index.d.ts","../../../node_modules/@oclif/core/lib/cli-ux/stream.d.ts","../../../node_modules/@oclif/core/lib/performance.d.ts","../../../node_modules/@oclif/core/lib/index.d.ts","../../../node_modules/@types/ms/index.d.ts","../../../node_modules/@types/debug/index.d.ts","../src/utils/installation.ts","../src/commands/bootstrap.ts","../../../node_modules/@babel/types/lib/index.d.ts","../../../node_modules/@types/babel__generator/index.d.ts","../../../node_modules/@babel/parser/typings/babel-parser.d.ts","../../../node_modules/@types/babel__template/index.d.ts","../../../node_modules/@types/babel__traverse/index.d.ts","../../../node_modules/@types/babel__core/index.d.ts","../../../node_modules/keyv/src/index.d.ts","../../../node_modules/@types/http-cache-semantics/index.d.ts","../../../node_modules/@types/responselike/index.d.ts","../../../node_modules/@types/cacheable-request/index.d.ts","../../../node_modules/@types/config/index.d.ts","../../../node_modules/@types/expect/index.d.ts","../../../node_modules/@types/minimatch/index.d.ts","../../../node_modules/@types/glob/index.d.ts","../../../node_modules/@types/graceful-fs/index.d.ts","../../../node_modules/@types/istanbul-lib-coverage/index.d.ts","../../../node_modules/@types/istanbul-lib-report/index.d.ts","../../../node_modules/@types/istanbul-reports/index.d.ts","../../../node_modules/@jest/expect-utils/build/index.d.ts","../../../node_modules/jest-matcher-utils/node_modules/chalk/index.d.ts","../../../node_modules/@sinclair/typebox/typebox.d.ts","../../../node_modules/@jest/schemas/build/index.d.ts","../../../node_modules/pretty-format/build/index.d.ts","../../../node_modules/jest-diff/build/index.d.ts","../../../node_modules/jest-matcher-utils/build/index.d.ts","../../../node_modules/expect/build/index.d.ts","../../../node_modules/@types/jest/index.d.ts","../../../node_modules/@types/json-schema/index.d.ts","../../../node_modules/@types/json5/index.d.ts","../../../node_modules/@types/keyv/index.d.ts","../../../node_modules/@types/luxon/src/settings.d.ts","../../../node_modules/@types/luxon/src/_util.d.ts","../../../node_modules/@types/luxon/src/zone.d.ts","../../../node_modules/@types/luxon/src/misc.d.ts","../../../node_modules/@types/luxon/src/duration.d.ts","../../../node_modules/@types/luxon/src/interval.d.ts","../../../node_modules/@types/luxon/src/datetime.d.ts","../../../node_modules/@types/luxon/src/info.d.ts","../../../node_modules/@types/luxon/src/luxon.d.ts","../../../node_modules/@types/luxon/index.d.ts","../../../node_modules/@types/minimist/index.d.ts","../../../node_modules/@types/normalize-package-data/index.d.ts","../../../node_modules/@types/semver/classes/semver.d.ts","../../../node_modules/@types/semver/functions/parse.d.ts","../../../node_modules/@types/semver/functions/valid.d.ts","../../../node_modules/@types/semver/functions/clean.d.ts","../../../node_modules/@types/semver/functions/inc.d.ts","../../../node_modules/@types/semver/functions/diff.d.ts","../../../node_modules/@types/semver/functions/major.d.ts","../../../node_modules/@types/semver/functions/minor.d.ts","../../../node_modules/@types/semver/functions/patch.d.ts","../../../node_modules/@types/semver/functions/prerelease.d.ts","../../../node_modules/@types/semver/functions/compare.d.ts","../../../node_modules/@types/semver/functions/rcompare.d.ts","../../../node_modules/@types/semver/functions/compare-loose.d.ts","../../../node_modules/@types/semver/functions/compare-build.d.ts","../../../node_modules/@types/semver/functions/sort.d.ts","../../../node_modules/@types/semver/functions/rsort.d.ts","../../../node_modules/@types/semver/functions/gt.d.ts","../../../node_modules/@types/semver/functions/lt.d.ts","../../../node_modules/@types/semver/functions/eq.d.ts","../../../node_modules/@types/semver/functions/neq.d.ts","../../../node_modules/@types/semver/functions/gte.d.ts","../../../node_modules/@types/semver/functions/lte.d.ts","../../../node_modules/@types/semver/functions/cmp.d.ts","../../../node_modules/@types/semver/functions/coerce.d.ts","../../../node_modules/@types/semver/classes/comparator.d.ts","../../../node_modules/@types/semver/classes/range.d.ts","../../../node_modules/@types/semver/functions/satisfies.d.ts","../../../node_modules/@types/semver/ranges/max-satisfying.d.ts","../../../node_modules/@types/semver/ranges/min-satisfying.d.ts","../../../node_modules/@types/semver/ranges/to-comparators.d.ts","../../../node_modules/@types/semver/ranges/min-version.d.ts","../../../node_modules/@types/semver/ranges/valid.d.ts","../../../node_modules/@types/semver/ranges/outside.d.ts","../../../node_modules/@types/semver/ranges/gtr.d.ts","../../../node_modules/@types/semver/ranges/ltr.d.ts","../../../node_modules/@types/semver/ranges/intersects.d.ts","../../../node_modules/@types/semver/ranges/simplify.d.ts","../../../node_modules/@types/semver/ranges/subset.d.ts","../../../node_modules/@types/semver/internals/identifiers.d.ts","../../../node_modules/@types/semver/index.d.ts","../../../node_modules/@types/stack-utils/index.d.ts","../../../node_modules/@types/tunnel/index.d.ts","../../../node_modules/@types/uuid/index.d.ts","../../../node_modules/@types/vinyl/index.d.ts","../../../node_modules/@types/ws/index.d.ts","../../../node_modules/@types/yargs-parser/index.d.ts","../../../node_modules/@types/yargs/index.d.ts"],"fileInfos":[{"version":"8730f4bf322026ff5229336391a18bcaa1f94d4f82416c8b2f3954e2ccaae2ba","affectsGlobalScope":true},"dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6","7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467","8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9","5f4e733ced4e129482ae2186aae29fde948ab7182844c3a5a51dd346182c7b06","4b421cbfb3a38a27c279dec1e9112c3d1da296f77a1a85ddadf7e7a425d45d18","1fc5ab7a764205c68fa10d381b08417795fc73111d6dd16b5b1ed36badb743d9","746d62152361558ea6d6115cf0da4dd10ede041d14882ede3568bce5dc4b4f1f",{"version":"3aafcb693fe5b5c3bd277bd4c3a617b53db474fe498fc5df067c5603b1eebde7","affectsGlobalScope":true},{"version":"f3d4da15233e593eacb3965cde7960f3fddf5878528d882bcedd5cbaba0193c7","affectsGlobalScope":true},{"version":"7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481","affectsGlobalScope":true},{"version":"097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd","affectsGlobalScope":true},{"version":"adb996790133eb33b33aadb9c09f15c2c575e71fb57a62de8bf74dbf59ec7dfb","affectsGlobalScope":true},{"version":"8cc8c5a3bac513368b0157f3d8b31cfdcfe78b56d3724f30f80ed9715e404af8","affectsGlobalScope":true},{"version":"cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a","affectsGlobalScope":true},{"version":"c5c05907c02476e4bde6b7e76a79ffcd948aedd14b6a8f56e4674221b0417398","affectsGlobalScope":true},{"version":"5f406584aef28a331c36523df688ca3650288d14f39c5d2e555c95f0d2ff8f6f","affectsGlobalScope":true},{"version":"22f230e544b35349cfb3bd9110b6ef37b41c6d6c43c3314a31bd0d9652fcec72","affectsGlobalScope":true},{"version":"7ea0b55f6b315cf9ac2ad622b0a7813315bb6e97bf4bb3fbf8f8affbca7dc695","affectsGlobalScope":true},{"version":"3013574108c36fd3aaca79764002b3717da09725a36a6fc02eac386593110f93","affectsGlobalScope":true},{"version":"eb26de841c52236d8222f87e9e6a235332e0788af8c87a71e9e210314300410a","affectsGlobalScope":true},{"version":"3be5a1453daa63e031d266bf342f3943603873d890ab8b9ada95e22389389006","affectsGlobalScope":true},{"version":"17bb1fc99591b00515502d264fa55dc8370c45c5298f4a5c2083557dccba5a2a","affectsGlobalScope":true},{"version":"7ce9f0bde3307ca1f944119f6365f2d776d281a393b576a18a2f2893a2d75c98","affectsGlobalScope":true},{"version":"6a6b173e739a6a99629a8594bfb294cc7329bfb7b227f12e1f7c11bc163b8577","affectsGlobalScope":true},{"version":"81cac4cbc92c0c839c70f8ffb94eb61e2d32dc1c3cf6d95844ca099463cf37ea","affectsGlobalScope":true},{"version":"b0124885ef82641903d232172577f2ceb5d3e60aed4da1153bab4221e1f6dd4e","affectsGlobalScope":true},{"version":"0eb85d6c590b0d577919a79e0084fa1744c1beba6fd0d4e951432fa1ede5510a","affectsGlobalScope":true},{"version":"da233fc1c8a377ba9e0bed690a73c290d843c2c3d23a7bd7ec5cd3d7d73ba1e0","affectsGlobalScope":true},{"version":"d154ea5bb7f7f9001ed9153e876b2d5b8f5c2bb9ec02b3ae0d239ec769f1f2ae","affectsGlobalScope":true},{"version":"bb2d3fb05a1d2ffbca947cc7cbc95d23e1d053d6595391bd325deb265a18d36c","affectsGlobalScope":true},{"version":"c80df75850fea5caa2afe43b9949338ce4e2de086f91713e9af1a06f973872b8","affectsGlobalScope":true},{"version":"9d57b2b5d15838ed094aa9ff1299eecef40b190722eb619bac4616657a05f951","affectsGlobalScope":true},{"version":"6c51b5dd26a2c31dbf37f00cfc32b2aa6a92e19c995aefb5b97a3a64f1ac99de","affectsGlobalScope":true},{"version":"6e7997ef61de3132e4d4b2250e75343f487903ddf5370e7ce33cf1b9db9a63ed","affectsGlobalScope":true},{"version":"2ad234885a4240522efccd77de6c7d99eecf9b4de0914adb9a35c0c22433f993","affectsGlobalScope":true},{"version":"5e5e095c4470c8bab227dbbc61374878ecead104c74ab9960d3adcccfee23205","affectsGlobalScope":true},{"version":"09aa50414b80c023553090e2f53827f007a301bc34b0495bfb2c3c08ab9ad1eb","affectsGlobalScope":true},{"version":"d7f680a43f8cd12a6b6122c07c54ba40952b0c8aa140dcfcf32eb9e6cb028596","affectsGlobalScope":true},{"version":"3787b83e297de7c315d55d4a7c546ae28e5f6c0a361b7a1dcec1f1f50a54ef11","affectsGlobalScope":true},{"version":"e7e8e1d368290e9295ef18ca23f405cf40d5456fa9f20db6373a61ca45f75f40","affectsGlobalScope":true},{"version":"faf0221ae0465363c842ce6aa8a0cbda5d9296940a8e26c86e04cc4081eea21e","affectsGlobalScope":true},{"version":"06393d13ea207a1bfe08ec8d7be562549c5e2da8983f2ee074e00002629d1871","affectsGlobalScope":true},{"version":"2768ef564cfc0689a1b76106c421a2909bdff0acbe87da010785adab80efdd5c","affectsGlobalScope":true},{"version":"b248e32ca52e8f5571390a4142558ae4f203ae2f94d5bac38a3084d529ef4e58","affectsGlobalScope":true},{"version":"6c55633c733c8378db65ac3da7a767c3cf2cf3057f0565a9124a16a3a2019e87","affectsGlobalScope":true},{"version":"fb4416144c1bf0323ccbc9afb0ab289c07312214e8820ad17d709498c865a3fe","affectsGlobalScope":true},{"version":"5b0ca94ec819d68d33da516306c15297acec88efeb0ae9e2b39f71dbd9685ef7","affectsGlobalScope":true},{"version":"34c839eaaa6d78c8674ae2c37af2236dee6831b13db7b4ef4df3ec889a04d4f2","affectsGlobalScope":true},{"version":"52d1bb7ab7a3306fd0375c8bff560feed26ed676a5b0457fa8027b563aecb9a4","affectsGlobalScope":true},"0ce99fa68940b918945c445a958e2568a5b7593f7e3a0eeef9f0f79d45651b91","f1c9fe42b65437a61104e601eb298c5c859fb522b483f1bdb700eed67a16f980","335df266a80c884e65fce9b47be7930e2cb75198d9e4113967368a32e18895e0","a3bd79ab934f07dd6ece330451a9606afc84d1e9c426929ba7ffb83925a24145","d94299553b772137eb45a4a26b2449daa8d7810d67f405f39e7ce762508f3890","d94299553b772137eb45a4a26b2449daa8d7810d67f405f39e7ce762508f3890","d94299553b772137eb45a4a26b2449daa8d7810d67f405f39e7ce762508f3890","d94299553b772137eb45a4a26b2449daa8d7810d67f405f39e7ce762508f3890","d94299553b772137eb45a4a26b2449daa8d7810d67f405f39e7ce762508f3890","d94299553b772137eb45a4a26b2449daa8d7810d67f405f39e7ce762508f3890","d94299553b772137eb45a4a26b2449daa8d7810d67f405f39e7ce762508f3890","15251c356eda72abcda48ca685c0028af114710df1e2465fea092f57ffc94b27","71ff7791d5bf5a912d090193d5ebfc134aa20822c99cf0585a1ec00018adbe9b","f4efe82fdfab5632d0e1589ec87020a41bdd6bb7b3c1d5bb728d6f4a38339a4c",{"version":"d592e5ca0b2a10fc2c8b4ca3b20d0bd97ac92c634b41adaecaf7276c1a3e1f0a","signature":"d0054cc688bd7b16e5c50f4d6e8433c74bee3f400a271beb0b8c0456f8051b5c"},"0d14fa22c41fdc7277e6f71473b20ebc07f40f00e38875142335d5b63cdfc9d2","587f13f1e8157bd8cec0adda0de4ef558bb8573daa9d518d1e2af38e87ecc91f","a69c09dbea52352f479d3e7ac949fde3d17b195abe90b045d619f747b38d6d1a",{"version":"bce910d9164785c9f0d4dcea4be359f5f92130c7c7833dea6138ab1db310a1f9","affectsGlobalScope":true},"7a435e0c814f58f23e9a0979045ec0ef5909aac95a70986e8bcce30c27dff228",{"version":"c81c51f43e343b6d89114b17341fb9d381c4ccbb25e0ee77532376052c801ba7","affectsGlobalScope":true},"db71be322f07f769200108aa19b79a75dd19a187c9dca2a30c4537b233aa2863","57135ce61976a8b1dadd01bb412406d1805b90db6e8ecb726d0d78e0b5f76050",{"version":"49479e21a040c0177d1b1bc05a124c0383df7a08a0726ad4d9457619642e875a","affectsGlobalScope":true},"82408ed3e959ddc60d3e9904481b5a8dc16469928257af22a3f7d1a3bc7fd8c4","b8e431e9b9bb2dc832b23d4e3e02774e953d5537998923f215ea446169e9a61e","3690133deae19c8127c5505fcb67b04bdc9eb053796008538a9b9abbb70d85aa","5b1c0a23f464f894e7c2b2b6c56df7b9afa60ed48c5345f8618d389a636b2108","be2b092f2765222757c6441b86c53a5ea8dfed47bbc43eab4c5fe37942c866b3","8e6b05abc98adba15e1ac78e137c64576c74002e301d682e66feb77a23907ab8","1ca735bb3d407b2af4fbee7665f3a0a83be52168c728cc209755060ba7ed67bd",{"version":"6b526a5ec4a401ca7c26cfe6a48e641d8f30af76673bad3b06a1b4504594a960","affectsGlobalScope":true},{"version":"b85c02e14ecb2a873dad5a1de72319b265160ba48f1b83661aeb3bba1366c1bc","affectsGlobalScope":true},"7a2ba0c9af860ac3e77b35ed01fd96d15986f17aa22fe40f188ae556fb1070df","fc3764040518a1008dd04bdc80964591b566b896283e00df85c95851c1f46237","55709608060f77965c270ac10ac646286589f1bd1cb174fff1778a2dd9a7ef31","790623a47c5eda62910098884ecb154dc0e5f3a23fc36c1bfb3b5b9ed44e2c2d","42b40e40f2a358cda332456214fad311e1806a6abf3cebaaac72496e07556642","354612fe1d49ecc9551ea3a27d94eef2887b64ef4a71f72ca444efe0f2f0ba80",{"version":"125af9d85cb9d5e508353f10a8d52f01652d2d48b2cea54789a33e5b4d289c1c","affectsGlobalScope":true},"f5490f53d40291cc8607f5463434d1ac6c5564bc4fbb03abceb03a8f6b014457","5e2b91328a540a0933ab5c2203f4358918e6f0fe7505d22840a891a6117735f1","3abc3512fa04aa0230f59ea1019311fd8667bd935d28306311dccc8b17e79d5d",{"version":"14a50dafe3f45713f7f27cb6320dff07c6ac31678f07959c2134260061bf91ff","affectsGlobalScope":true},{"version":"19da7150ca062323b1db6311a6ef058c9b0a39cc64d836b5e9b75d301869653b","affectsGlobalScope":true},"1349077576abb41f0e9c78ec30762ff75b710208aff77f5fdcc6a8c8ce6289dd","e2ce82603102b5c0563f59fb40314cc1ff95a4d521a66ad14146e130ea80d89c","a3e0395220255a350aa9c6d56f882bfcb5b85c19fddf5419ec822cf22246a26d","c27b01e8ddff5cd280711af5e13aecd9a3228d1c256ea797dd64f8fdec5f7df5","898840e876dfd21843db9f2aa6ae38ba2eab550eb780ff62b894b9fbfebfae6b","0cab4d7d4edc40cd3af9eea7c3ed6d1016910c0954c49c4297e479bf3822a625","1b952304137851e45bc009785de89ada562d9376177c97e37702e39e60c2f1ff","785e5be57d4f20f290a20e7b0c6263f6c57fd6e51283050756cef07d6d651c68","44b8b584a338b190a59f4f6929d072431950c7bd92ec2694821c11bce180c8a5","164deb2409ac5f4da3cd139dbcee7f7d66753d90363a4d7e2db8d8874f272270",{"version":"ba437529769c1d4766a8a6d5a304f46fbb4f5f1716f23f4cbf20b7a4fd82d8ba","affectsGlobalScope":true},{"version":"ab294c4b7279318ee2a8fdf681305457ecc05970c94108d304933f18823eeac1","affectsGlobalScope":true},"ad08154d9602429522cac965a715fde27d421d69b24756c5d291877dda75353e","bbda6ea452a2386093a1eda18a6e26a989e98869f1b9f37e46f510a986d2e740","812b25f798033c202baedf386a1ccc41f9191b122f089bffd10fdccce99fba11","993325544790073f77e945bee046d53988c0bc3ac5695c9cf8098166feb82661",{"version":"75dd741ca6a6c8d2437a6ca8349b64b816421dbf9fe82dd026afaba965576962","affectsGlobalScope":true},{"version":"8799401a7ab57764f0d464513a7fa7c72e1d70a226b172ec60fff534ea94d108","affectsGlobalScope":true},"2ce2210032ccaff7710e2abf6a722e62c54960458e73e356b6a365c93ab6ca66","92db194ef7d208d5e4b6242a3434573fd142a621ff996d84cc9dbba3553277d0","16a3080e885ed52d4017c902227a8d0d8daf723d062bec9e45627c6fdcd6699b",{"version":"0bd9543cd8fc0959c76fb8f4f5a26626c2ed62ef4be98fd857bce268066db0a2","affectsGlobalScope":true},"1ca6858a0cbcd74d7db72d7b14c5360a928d1d16748a55ecfa6bfaff8b83071b",{"version":"ab9b9a36e5284fd8d3bf2f7d5fcbc60052f25f27e4d20954782099282c60d23e","affectsGlobalScope":true},"247aa3419c98713231952b33801d4f46563fe542e03604acd8c63ac45a32409c","6ab263df6465e2ed8f1d02922bae18bb5b407020767de021449a4c509859b22e","69df555dcf417998a0bd06c327d1b34541d3345386b0d4c4ee8a0d78def0c980",{"version":"54c4f2da30f2df4a2c8c39f03547c487384797444cbee7741b4502f6768caed6","signature":"372a4210b5bb399cbb33199fd619f1bfea311418202a75c15f9cc80fad094c56"},{"version":"6d496997dcd1ee5f5f298a09bdad6600f4fe1eb7534b89ed2e32ffd249d17f4f","signature":"3cfba0668d0a95b36ee7549693f351145bc2bc9845e6e92058df51f7a539430f"},"088703b7810394a5af823ac753cca116931df81a97183725ae1e2c4e6038268d","c2a70cf2999d7ccd2f87c22042393b853e01bb2994d6561071aa53a82926c0de","437ce3def325725c84c242f916886e634ff8f133356ea88ccb4bdd425792bb36",{"version":"2b74a8599d6a990bae556ea25567c64287c246962b8ac3d5d5dfab2b81200365","signature":"9a2113ee93a05f67af7e3929e369332f93495c15a874133ab11aa68dc1d64815"},"5b4b7e3db05054235e7f427bf2d074ecccb2968df4f1d18bab474dae5d11a2d4",{"version":"8b6e9ae5b0a3cfbb152551f78e6e933806da19836f9f78c1104e302898c5d94c","signature":"a18e104dd2a03ceaac2a09b959233a6a7dd37fb54252a49a3b9b438e4d7a2180"},{"version":"f2a4ff0584fff57f7a5775248dbd6acf2722782d4f825ff025820860b753cbc9","signature":"2cd074f041d8f913641bda7188c6d931327c46b407193ed3e5f0a54efc38a124"},{"version":"f11e04065f595a625dabe1bbcf5e1d4d7edc5fc3f924b82adfb40f0dd54ab8ce","signature":"74276bad56eee3b9327bde1f0cbf1c174d93699fec26bfc7d13ff6a2fd5cf7a3"},{"version":"e14aa16c4894c1b24c68909b15b51c3a261f70745d944b68a91097b58fb7db8a","signature":"556a1e322d62fe478bb08e217d4c57ecd7b94748fa984d2fcd8adb6e7007afb3"},{"version":"9ae898364702a210e27ddd635e53446c27e5aa643a7876d42b9e9e6e80a67d14","signature":"6b8eeff203359884db647cc577f599bc1901c7a0961bf72c15807ee59823dd75"},"123340b110c925a45177bc7276149fc2ffe3d60045f0562899dd3df1d3201438",{"version":"88e474e8a8a625b5bb1728671a3d7b1ad0593b6cc0a3332eee9ce001f5d59104","signature":"80075b8c27af300c3eb8b6fdf210f069fbe03484fb83686a9e4dc2b652886069"},"1d729ea435a93e1a70519d06a6f13fa418c4c39a52b69e6db86750ebfcdf5554","3184417b619fcdab232c520b9e51c33972a43640fd42c34d2ceb3f2af2e036d0","dae88d3b13dcf4d8308373fedcbf715be18c1d062070761c3ffd89f7868927cf","bd80422c68e0575fee07883efc93fdbf32da39f76ab8479d56eba05e7fac8363","0f8e559a7908de02d384468f8d42b57d9142431e3fe0066c07d97a1f351a1df0","b619e4dcb6c3aaed579cf7650e68be5c8ed6a12b5548e0662b906dd907ab3f9f","c6c4a20d1ed72643252ad50b337f6f36792568cb82a2e1f2b2a7bb6235c9ea92","032e362f68a69c4f6af9678b4f5fdcf5b6c348e6aa279a7b2c89099bb7887a0a","4cbb99e1685ca6d0cea375d50c7c6e0f1c444fb4bdf301c48f7bfc92b7eea4b1","137fcb488abe39cd57437d2bf940862bfcaa709e248602461b82236c5a01c1ce","2b3849074b5813376ffe71ff550ef25cce638c43385ed63c1b5be504d3e213f6","b11931f950ee831b609fbee02a054339808b04aa58f10904826b8e5ee297cdfc","5a82a1daacf5f4e73e4ba80040bd0be03d8fcfee4080c973389b39bd0721553b","694ce0788daf31dadf82702cb0efe558014a0a210278c78817840f1caa4f3a09","99fd2587995ea6001ac20d6ecebe748e163d62e820f369452919c265f140b3c9","ee928a0e91da479fde4a2d782b8a6b2fb7dff7359b8f7ff7d23a34d7de276860","79aaadbaee10117769f82c33d6256fc7d0af0859348268e4663521bd00ad15a9","f24b104cf0541b30902b2c947cef8e4955f16068c492d00bc5c70530d8a5ae89","4df02f7093cfdaa88c78186c50064ce6307865d5a2b6f52d16b2a477a289840e","4a3de027fe2fe214e22db9703023024d85f2863138940a21b4933113313394bb","1b9f1ba55985edc074f18ddfe23c6c93d8463ff30651482e8783e56ca0df0653","e12f2c48252d0ae261db2be28206e4f1cc282fa5459a0f991a09f86bb766543f","19ef1d72f861901d6dd7891cc14c6ca0bd860b3089e33188f4764232b1bfaa38","cdfab96750a8e2ef4e62a98a3ea9a2918340577c5b3b118f013047345081e97e","f25853107b15fcb4af6c7958b772a6620f8d31f0d49b3167f0cd3753abad4463","c9f8f08177b56b7610d9ea52d6e297a4caa28493ad667a8972cab06083beec84","a92c7fc820badc697c7e9e99a9c6046d10edd876611a81c1efe4303ab4b8fecc","05bb04690b7d9826c0b120f986035c4c5f40eed0e981da285754709109f58fbe","a9b346b95282a7ec010c4d81cd49779643c08dbe77ebab40986a6a379626b1a2","64bd4308b81c3b91cf2dad86a3de6b25b3db7a740968645dca9cdb3575917799","2f49438d884d9213cf818e8dbb099aca5a610fb0afee5b178e58cdb20e18cd47","766089db9a6dfde973076bc4b0198e36a06fb7a6fc572be910ab3f0729efaabf","fb50971755e1a3ae7775d50e323062c4b5ab86307f9d815dd7357a3ed9e1505f","f0023e6c5b951d9aa820b86adeeb7b4dba49447b3ea30f489e8edbfdfa0cb32a","f8bf1455ac2c42adf42d8e805efb1d5f31f1caafa66b9e67bd02b983ace037f3","98bb229db2d81eaec4ba5ef6e7bbb77f24c424e63217bed49a951e9c6b518507","57db29be78958cdc0150a4c3f0972d1ff02f471a4083473c6b3c39d792771c7e","070517799e7231e1d0223ddf2af444ef25f85d0f4e16866444bf65e3f9d3887d","c5dcddb11f17e4e6b6798f089b2c68fb0b6d7f77fc5e6885f48f95b5d8d034c9","f46dd858efc9056e361553628bb84124c150a85ea5a787024f175b452dbdc1d9","168840936351f71eba6047f128bd450e7f1d724ef92d66d1514f98907061e2e9","797cc548454e0dbe50b0767a0b061fa7564b71b57fe541482f0a655a7d2bafb6","56e79a504c6d8570c1e5bdd0536182dd2fb461cdd8468cda2b2fade49fe559c9","b363b85c8e93be17e1cdb62c400e08ea1dd88df8dc9a6c9ac1d34b79695b9694","781cc223d1c1b6539094df46dce708348a90376e8cde19babdbe743057e44642","b9c05c23f53be5b435dde4349f70d5851c74b891a3cdd252efbf149437c3c5f0","6d8c708a5237a8508ee8553f22143a6d2fb60807de0574b41622c1e281b04c6d","7c610268bd1c45fd2d3722b590e303173b96822508eeabdfafc97b926fe370ea","bf0b596cf9d235ac4cb6b1a80ca7aab5d460d0f11979f4e6477cedd439fe053d","9d3fe3b9bfb39058d0632a883821ec42596cba09cfe88905bbe1d36530362383","7fdf7a2fc582a7515af30c6b14ca5ab78362fb7101894db535b1255aa8cfb2bf","2418f44e983932cac5d385e5461b39437436ddc2450a7d43edce2a791f521b84","0afa7442fb784125ea85b200f22e33fac286c8386bf2496fd42b3ed5f23f4206","2a91ca577dec2b3c6a0e8328e0a24632a2a6a655103ad4ecbdd0fc290699dd9f","6a9c5127096b35264eb7cd21b2417bfc1d42cceca9ba4ce2bb0c3410b7816042","78828b06c0d3b586954015e9ebde5480b009e166c71244763bda328ec0920f41",{"version":"ea508dc617744810ebcd3a61fdf79881fb95c1c0f8c8410895b2624272444d50","signature":"e8242a84c470d280b6e99955ddc747feca5ab36b7dca19c02224774561086361"},{"version":"04089f72994a08eb2b5a6f6fac9d65b4f398acd0053fc1c166574010c516530b","signature":"122ad84418448f638beb1d93eca9b193f62a66531dc40ce2d9809b167c32718f"},"f4617bbd5403ec5b058db53b242dcb1421952e2652bd5c80abf6a1c4ea5656d6","cc957354aa3c94c9961ebf46282cfde1e81d107fc5785a61f62c67f1dd3ac2eb","230d323ef7f2ffadfc0ceae494492c4d2faa2b4eaec07a4b71424d084b97ebb8","93de1c6dab503f053efe8d304cb522bb3a89feab8c98f307a674a4fae04773e9","6704f0b54df85640baaeebd86c9d4a1dbb661d5a4d57a75bc84162f562f6531d","9d255af1b09c6697089d3c9bf438292a298d8b7a95c68793c9aae80afc9e5ca7","92edb6e257fa64d3baae647490e041912684f5dc1f243d0aedd60b4b383ff50b","cab425b5559edac18327eb2c3c0f47e7e9f71b667290b7689faafd28aac69eae","3cfb0cb51cc2c2e1b313d7c4df04dbf7e5bda0a133c6b309bf6af77cf614b971","f992cd6cc0bcbaa4e6c810468c90f2d8595f8c6c3cf050c806397d3de8585562","ac09ce02a4231ab1887d361b7fc3388ea94c5658a665eab9c950f754d012ef5e","975f84de013567851d216d78a3a86736bb330cae11fdc907b222dffa148b31d2","963d59066dd6742da1918a6213a209bcc205b8ee53b1876ee2b4e6d80f97c85e","a55ca8b5f8c6a8535bb26fac1e10132a5338234ca3d5b9ed739fbc8ef41c8075","bf88ef4208a770ca39a844b182b3695df536326ea566893fdc5b8418702a331e","8b06ac3faeacb8484d84ddb44571d8f410697f98d7bfa86c0fda60373a9f5215","7eb06594824ada538b1d8b48c3925a83e7db792f47a081a62cf3e5c4e23cf0ee","f5638f7c2f12a9a1a57b5c41b3c1ea7db3876c003bab68e6a57afd6bcc169af0","6c1e688f95fcaf53b1e41c0fdadf2c1cfc96fa924eaf7f9fdb60f96deb0a4986","0d14fa22c41fdc7277e6f71473b20ebc07f40f00e38875142335d5b63cdfc9d2","c085e9aa62d1ae1375794c1fb927a445fa105fed891a7e24edbb1c3300f7384a","f315e1e65a1f80992f0509e84e4ae2df15ecd9ef73df975f7c98813b71e4c8da","5b9586e9b0b6322e5bfbd2c29bd3b8e21ab9d871f82346cb71020e3d84bae73e","3e70a7e67c2cb16f8cd49097360c0309fe9d1e3210ff9222e9dac1f8df9d4fb6","ab68d2a3e3e8767c3fba8f80de099a1cfc18c0de79e42cb02ae66e22dfe14a66","6d969939c4a63f70f2aa49e88da6f64b655c8e6799612807bef41ccff6ea0da9",{"version":"b2fdcc3836d425833af10e536ae5491c34e218bc71870f12a401720f874b6ce4","affectsGlobalScope":true},"f3e604694b624fa3f83f6684185452992088f5efb2cf136b62474aa106d6f1b6","96d14f21b7652903852eef49379d04dbda28c16ed36468f8c9fa08f7c14c9538","fec943fdb3275eb6e006b35e04a8e2e99e9adf3f4b969ddf15315ac7575a93e4","3c9a560aa168110f3b79790a66859d6131b0ae4d6fa8241146af19dbf8c68295","f21f46e0fd48bb5051ddc15ea4532fb6fa64bfb822a54fcd9d9d2fd8a366f91c","2cb090ebddbcb24d70f7feefd4e3bb9910c61ed0de51a6c6599bfab9405348b8","52ed17fe2c0a4bb27a4f13e99234b3d1f364dc27f9bd7964946d5ec62792a0cc","1eef59c38f38c64fcb60dcab950d8164a54e346eab8123a33141287765ce1a4e","b7648e912cb0958ae992e1b04e5bc78e79f11c7e27abd2b4c095f136a6bb2306","c68a4e9814ce3b5fffab0c0aac18172573b73e3853c5d5c509b809403fd434db","ce7dc6a3cbc2310198386d55981572f53742d67a615721f101554da7801a992b","c5641bb951da5d5252e7d8a806ec3c84f42555b5bd6a0879dbf1c7df1b8bd850","137394641f2db26158061d0638106d87919713c4dd17d17b0cdca1972ea0f8c8","209e814e8e71aec74f69686a9506dd7610b97ab59dcee9446266446f72a76d05","6fa0008bf91a4cc9c8963bace4bba0bd6865cbfa29c3e3ccc461155660fb113a","2b93035328f7778d200252681c1d86285d501ed424825a18f81e4c3028aa51d9","2ac9c8332c5f8510b8bdd571f8271e0f39b0577714d5e95c1e79a12b2616f069","42c21aa963e7b86fa00801d96e88b36803188018d5ad91db2a9101bccd40b3ff","d31eb848cdebb4c55b4893b335a7c0cca95ad66dee13cbb7d0893810c0a9c301","b9f96255e1048ed2ea33ec553122716f0e57fc1c3ad778e9aa15f5b46547bd23","7a9e0a564fee396cacf706523b5aeed96e04c6b871a8bebefad78499fbffc5bc","906c751ef5822ec0dadcea2f0e9db64a33fb4ee926cc9f7efa38afe5d5371b2a","5387c049e9702f2d2d7ece1a74836a14b47fbebe9bbeb19f94c580a37c855351","c68391fb9efad5d99ff332c65b1606248c4e4a9f1dd9a087204242b56c7126d6","e9cf02252d3a0ced987d24845dcb1f11c1be5541f17e5daa44c6de2d18138d0c","e8b02b879754d85f48489294f99147aeccc352c760d95a6fe2b6e49cd400b2fe","9f6908ab3d8a86c68b86e38578afc7095114e66b2fc36a2a96e9252aac3998e0","0eedb2344442b143ddcd788f87096961cd8572b64f10b4afc3356aa0460171c6","71405cc70f183d029cc5018375f6c35117ffdaf11846c35ebf85ee3956b1b2a6","c68baff4d8ba346130e9753cefe2e487a16731bf17e05fdacc81e8c9a26aae9d","2cd15528d8bb5d0453aa339b4b52e0696e8b07e790c153831c642c3dea5ac8af","479d622e66283ffa9883fbc33e441f7fc928b2277ff30aacbec7b7761b4e9579","ade307876dc5ca267ca308d09e737b611505e015c535863f22420a11fffc1c54","f8cdefa3e0dee639eccbe9794b46f90291e5fd3989fcba60d2f08fde56179fb9","86c5a62f99aac7053976e317dbe9acb2eaf903aaf3d2e5bb1cafe5c2df7b37a8","2b300954ce01a8343866f737656e13243e86e5baef51bd0631b21dcef1f6e954","a2d409a9ffd872d6b9d78ead00baa116bbc73cfa959fce9a2f29d3227876b2a1","b288936f560cd71f4a6002953290de9ff8dfbfbf37f5a9391be5c83322324898","61178a781ef82e0ff54f9430397e71e8f365fc1e3725e0e5346f2de7b0d50dfa","6a6ccb37feb3aad32d9be026a3337db195979cd5727a616fc0f557e974101a54","c649ea79205c029a02272ef55b7ab14ada0903db26144d2205021f24727ac7a3","38e2b02897c6357bbcff729ef84c736727b45cc152abe95a7567caccdfad2a1d","d6610ea7e0b1a7686dba062a1e5544dd7d34140f4545305b7c6afaebfb348341","3dee35db743bdba2c8d19aece7ac049bde6fa587e195d86547c882784e6ba34c","b15e55c5fa977c2f25ca0b1db52cfa2d1fd4bf0baf90a8b90d4a7678ca462ff1","f41d30972724714763a2698ae949fbc463afb203b5fa7c4ad7e4de0871129a17","843dd7b6a7c6269fd43827303f5cbe65c1fecabc30b4670a50d5a15d57daeeb9","f06d8b8567ee9fd799bf7f806efe93b67683ef24f4dea5b23ef12edff4434d9d","6017384f697ff38bc3ef6a546df5b230c3c31329db84cbfe686c83bec011e2b2","e1a5b30d9248549ca0c0bb1d653bafae20c64c4aa5928cc4cd3017b55c2177b0","a593632d5878f17295bd53e1c77f27bf4c15212822f764a2bfc1702f4b413fa0","a868a534ba1c2ca9060b8a13b0ffbbbf78b4be7b0ff80d8c75b02773f7192c29","da7545aba8f54a50fde23e2ede00158dc8112560d934cee58098dfb03aae9b9d","34baf65cfee92f110d6653322e2120c2d368ee64b3c7981dff08ed105c4f19b0","a1a261624efb3a00ff346b13580f70f3463b8cdcc58b60f5793ff11785d52cab","b0d10e46cfe3f6c476b69af02eaa38e4ccc7430221ce3109ae84bb9fb8282298","882057f051daf834e4d01701066e1bac2d243b0c3eda702b25874402c1e0172d","12fe557e4c2d5ce9e11362f69a8d7c05d0588de4ae415afe8c5106da5c2772aa","b729899cd0358594a799a91369578b41ff6b6f5db7335bba2ba52edd0df8d95b","2dd1d4cea14cead7a7fc9eec8f40593089dff0de8c0199458446143c9b8c4ea9","70e9a18da08294f75bf23e46c7d69e67634c0765d355887b9b41f0d959e1426e","32b5bbe4475a585fd18e648f915a37b48ac44ab94277ad161cbdf3bbfae580fc"],"options":{"declaration":true,"importHelpers":true,"module":1,"outDir":"./","sourceMap":true,"strict":true,"target":8},"fileIdsList":[[113,195],[113],[113,215],[112,113,120,148],[113,175],[113,159,175,176,177,178,185,186],[113,179,180,181,182,184],[113,183],[113,152],[113,141,143,145,148,159,163],[113,141,143,152,160,164],[113,160,161,162],[113,139,140,141,146,159,164],[113,157],[113,145],[113,152,154],[113,152,153,154,155,156,157,158],[112,113,120,148,152],[113,152,164,168],[113,152,164],[113,152,164,168,169,170],[113,152,171],[113,142,152,159,163,164,165,166,167,168,170,171,173,174,187,188,189],[113,148],[113,139,140,141,142,164],[113,141,143,164],[113,138,139,140,141,142,143,144,145,146,147,148,149,150,151],[113,164],[113,143,144,164],[113,138],[113,139,140,164],[113,152,163],[113,148,172],[113,195,196,197,198,199],[113,195,197],[83,86,112,113,120,201,202,203],[83,113,120],[113,191],[83,84,113,120,207],[84,113,120],[113,210],[113,211],[113,217,220],[113,233],[113,225],[113,226,227,229,230,234],[113,226,228,231],[113,227,228],[113,226,229,231],[113,225,227,228,229,230,231,232],[113,227],[113,226],[67,113],[70,113],[71,76,104,113],[72,83,84,91,101,112,113],[72,73,83,91,113],[74,113],[75,76,84,92,113],[76,101,109,113],[77,79,83,91,113],[78,113],[79,80,113],[83,113],[81,83,113],[83,84,85,101,112,113],[83,84,85,98,101,104,113],[113,117],[79,83,86,91,101,112,113],[83,84,86,87,91,101,109,112,113],[86,88,101,109,112,113],[67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119],[83,89,113],[90,112,113],[79,83,91,101,113],[92,113],[93,113],[70,94,113],[95,111,113,117],[96,113],[97,113],[83,98,99,113],[98,100,113,115],[71,83,101,102,103,104,113],[71,101,103,113],[101,102,113],[104,113],[105,113],[101,113],[83,107,108,113],[107,108,113],[76,91,101,109,113],[110,113],[91,111,113],[71,86,97,112,113],[76,113],[101,113,114],[113,115],[113,116],[71,76,83,85,94,101,112,113,115,117],[101,113,118],[86,101,113,120],[113,237,276],[113,237,261,276],[113,276],[113,237],[113,237,262,276],[113,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,256,257,258,259,260,261,262,263,264,265,266,267,268,269,270,271,272,273,274,275],[113,262,276],[86,88,113,120],[83,86,88,101,109,112,113,118,120],[113,282],[70,113,120,213,219],[113,217],[66,113,218],[113,216],[55,56,57,58,59,60,61,62,113],[53,54,63,113],[53,113],[101,113,120,121],[72,101,113,120],[113,126],[52,65,84,93,113,123],[52,65,84,93,113,123,125,128,131,132],[52,65,84,93,113,123,125],[52,66,113,128,135],[52,65,66,113,122,131,137,190,193],[52,64,84,93,113],[52,113,125,129],[52,65,113,123,124,133,134,136,192],[52,66,113,130],[52,65,66,93,113,122],[52,113,127],[52,113],[65],[148,190],[127]],"referencedMap":[[197,1],[195,2],[213,2],[216,3],[167,4],[175,2],[176,5],[177,2],[187,6],[178,2],[188,2],[185,7],[179,2],[180,2],[184,8],[181,9],[182,2],[186,2],[164,10],[161,11],[163,12],[160,13],[162,2],[158,14],[154,15],[155,16],[156,16],[153,9],[159,17],[157,2],[166,18],[169,19],[168,20],[171,21],[170,22],[190,23],[144,2],[151,24],[143,25],[145,2],[150,24],[138,2],[142,26],[152,27],[146,28],[148,29],[139,30],[141,31],[147,2],[140,2],[149,2],[165,32],[172,24],[173,33],[189,2],[174,2],[215,2],[200,34],[196,1],[198,35],[199,1],[204,36],[183,37],[205,2],[192,38],[206,2],[208,39],[209,40],[202,2],[210,2],[211,41],[212,42],[221,43],[222,2],[223,2],[224,37],[234,44],[226,45],[231,46],[229,47],[232,48],[230,49],[233,50],[228,2],[225,51],[227,52],[207,2],[235,2],[191,2],[67,53],[68,53],[70,54],[71,55],[72,56],[73,57],[74,58],[75,59],[76,60],[77,61],[78,62],[79,63],[80,63],[82,64],[81,65],[83,64],[84,66],[85,67],[69,68],[119,2],[86,69],[87,70],[88,71],[120,72],[89,73],[90,74],[91,75],[92,76],[93,77],[94,78],[95,79],[96,80],[97,81],[98,82],[99,82],[100,83],[101,84],[103,85],[102,86],[104,87],[105,88],[106,89],[107,90],[108,91],[109,92],[110,93],[111,94],[112,95],[113,96],[114,97],[115,98],[116,99],[117,100],[118,101],[236,2],[203,102],[261,103],[262,104],[237,105],[240,105],[259,103],[260,103],[250,103],[249,106],[247,103],[242,103],[255,103],[253,103],[257,103],[241,103],[254,103],[258,103],[243,103],[244,103],[256,103],[238,103],[245,103],[246,103],[248,103],[252,103],[263,107],[251,103],[239,103],[276,108],[275,2],[270,107],[272,109],[271,107],[264,107],[265,107],[267,107],[269,107],[273,109],[274,109],[266,109],[268,109],[277,2],[278,110],[279,2],[280,40],[281,111],[282,2],[283,112],[137,2],[126,2],[220,113],[135,2],[218,114],[219,115],[214,2],[201,64],[121,2],[217,116],[52,2],[9,2],[10,2],[14,2],[13,2],[2,2],[15,2],[16,2],[17,2],[18,2],[19,2],[20,2],[21,2],[22,2],[3,2],[4,2],[26,2],[23,2],[24,2],[25,2],[27,2],[28,2],[29,2],[5,2],[30,2],[31,2],[32,2],[33,2],[6,2],[37,2],[34,2],[35,2],[36,2],[38,2],[7,2],[39,2],[44,2],[45,2],[40,2],[41,2],[42,2],[43,2],[8,2],[51,2],[49,2],[46,2],[47,2],[48,2],[1,2],[50,2],[12,2],[11,2],[55,2],[56,2],[57,2],[58,2],[63,117],[59,2],[60,2],[62,2],[61,2],[64,118],[53,2],[54,119],[122,120],[66,2],[125,121],[127,122],[129,2],[124,123],[133,124],[134,125],[136,126],[194,127],[65,128],[130,129],[193,130],[131,131],[123,132],[128,133],[132,134]],"exportedModulesMap":[[197,1],[195,2],[213,2],[216,3],[167,4],[175,2],[176,5],[177,2],[187,6],[178,2],[188,2],[185,7],[179,2],[180,2],[184,8],[181,9],[182,2],[186,2],[164,10],[161,11],[163,12],[160,13],[162,2],[158,14],[154,15],[155,16],[156,16],[153,9],[159,17],[157,2],[166,18],[169,19],[168,20],[171,21],[170,22],[190,23],[144,2],[151,24],[143,25],[145,2],[150,24],[138,2],[142,26],[152,27],[146,28],[148,29],[139,30],[141,31],[147,2],[140,2],[149,2],[165,32],[172,24],[173,33],[189,2],[174,2],[215,2],[200,34],[196,1],[198,35],[199,1],[204,36],[183,37],[205,2],[192,38],[206,2],[208,39],[209,40],[202,2],[210,2],[211,41],[212,42],[221,43],[222,2],[223,2],[224,37],[234,44],[226,45],[231,46],[229,47],[232,48],[230,49],[233,50],[228,2],[225,51],[227,52],[207,2],[235,2],[191,2],[67,53],[68,53],[70,54],[71,55],[72,56],[73,57],[74,58],[75,59],[76,60],[77,61],[78,62],[79,63],[80,63],[82,64],[81,65],[83,64],[84,66],[85,67],[69,68],[119,2],[86,69],[87,70],[88,71],[120,72],[89,73],[90,74],[91,75],[92,76],[93,77],[94,78],[95,79],[96,80],[97,81],[98,82],[99,82],[100,83],[101,84],[103,85],[102,86],[104,87],[105,88],[106,89],[107,90],[108,91],[109,92],[110,93],[111,94],[112,95],[113,96],[114,97],[115,98],[116,99],[117,100],[118,101],[236,2],[203,102],[261,103],[262,104],[237,105],[240,105],[259,103],[260,103],[250,103],[249,106],[247,103],[242,103],[255,103],[253,103],[257,103],[241,103],[254,103],[258,103],[243,103],[244,103],[256,103],[238,103],[245,103],[246,103],[248,103],[252,103],[263,107],[251,103],[239,103],[276,108],[275,2],[270,107],[272,109],[271,107],[264,107],[265,107],[267,107],[269,107],[273,109],[274,109],[266,109],[268,109],[277,2],[278,110],[279,2],[280,40],[281,111],[282,2],[283,112],[137,2],[126,2],[220,113],[135,2],[218,114],[219,115],[214,2],[201,64],[121,2],[217,116],[52,2],[9,2],[10,2],[14,2],[13,2],[2,2],[15,2],[16,2],[17,2],[18,2],[19,2],[20,2],[21,2],[22,2],[3,2],[4,2],[26,2],[23,2],[24,2],[25,2],[27,2],[28,2],[29,2],[5,2],[30,2],[31,2],[32,2],[33,2],[6,2],[37,2],[34,2],[35,2],[36,2],[38,2],[7,2],[39,2],[44,2],[45,2],[40,2],[41,2],[42,2],[43,2],[8,2],[51,2],[49,2],[46,2],[47,2],[48,2],[1,2],[50,2],[12,2],[11,2],[55,2],[56,2],[57,2],[58,2],[63,117],[59,2],[60,2],[62,2],[61,2],[64,118],[53,2],[54,119],[122,120],[66,2],[125,121],[127,122],[129,2],[133,135],[194,136],[128,137]],"semanticDiagnosticsPerFile":[197,195,213,216,167,175,176,177,187,178,188,185,179,180,184,181,182,186,164,161,163,160,162,158,154,155,156,153,159,157,166,169,168,171,170,190,144,151,143,145,150,138,142,152,146,148,139,141,147,140,149,165,172,173,189,174,215,200,196,198,199,204,183,205,192,206,208,209,202,210,211,212,221,222,223,224,234,226,231,229,232,230,233,228,225,227,207,235,191,67,68,70,71,72,73,74,75,76,77,78,79,80,82,81,83,84,85,69,119,86,87,88,120,89,90,91,92,93,94,95,96,97,98,99,100,101,103,102,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,236,203,261,262,237,240,259,260,250,249,247,242,255,253,257,241,254,258,243,244,256,238,245,246,248,252,263,251,239,276,275,270,272,271,264,265,267,269,273,274,266,268,277,278,279,280,281,282,283,137,126,220,135,218,219,214,201,121,217,52,9,10,14,13,2,15,16,17,18,19,20,21,22,3,4,26,23,24,25,27,28,29,5,30,31,32,33,6,37,34,35,36,38,7,39,44,45,40,41,42,43,8,51,49,46,47,48,1,50,12,11,55,56,57,58,63,59,60,62,61,64,53,54,122,66,125,127,129,124,133,134,136,194,65,130,193,131,123,128,132]},"version":"4.9.4"}
|
|
@@ -8,7 +8,8 @@ export declare function hasPackageJsonFile(dirPath: string): boolean;
|
|
|
8
8
|
export declare function readPackageJson(dirPath: string): PackageJson;
|
|
9
9
|
export declare function isValidProjectDirectory(dirPath: string): boolean;
|
|
10
10
|
export declare function hasGitDir(dirPath: string): boolean;
|
|
11
|
-
export declare function
|
|
11
|
+
export declare function checkFilesToKeep(filesToKeep: string[], dirPath: string): void;
|
|
12
|
+
export declare function copyTemporaryFiles(filesToKeep: string[], dirPath: string, tempPath: string): void;
|
|
12
13
|
export declare function usePackageName(packageName: string): void;
|
|
13
14
|
export declare function hasGitIgnore(dirPath: string): boolean;
|
|
14
15
|
export declare function isValidUrl(string: string): boolean;
|
package/dist/utils/directory.js
CHANGED
|
@@ -1,13 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.generateProjectName = exports.isValidUrl = exports.hasGitIgnore = exports.usePackageName = exports.copyTemporaryFiles = exports.checkFilesToKeep = exports.hasGitDir = exports.isValidProjectDirectory = exports.readPackageJson = exports.hasPackageJsonFile = void 0;
|
|
4
|
+
const fs = require("fs");
|
|
5
|
+
const path = require("path");
|
|
6
|
+
const unique_names_generator_1 = require("unique-names-generator");
|
|
7
|
+
function hasPackageJsonFile(dirPath) {
|
|
5
8
|
return fs.existsSync(path.join(dirPath, 'package.json'));
|
|
6
9
|
}
|
|
7
|
-
|
|
10
|
+
exports.hasPackageJsonFile = hasPackageJsonFile;
|
|
11
|
+
function readPackageJson(dirPath) {
|
|
8
12
|
return JSON.parse(fs.readFileSync(path.join(dirPath, 'package.json'), 'utf-8'));
|
|
9
13
|
}
|
|
10
|
-
|
|
14
|
+
exports.readPackageJson = readPackageJson;
|
|
15
|
+
function isValidProjectDirectory(dirPath) {
|
|
11
16
|
if (!fs.existsSync(dirPath)) {
|
|
12
17
|
return true;
|
|
13
18
|
}
|
|
@@ -18,36 +23,39 @@ export function isValidProjectDirectory(dirPath) {
|
|
|
18
23
|
// only allow non initiated directory if it's empty
|
|
19
24
|
return fs.readdirSync(dirPath).length === 0;
|
|
20
25
|
}
|
|
21
|
-
|
|
26
|
+
exports.isValidProjectDirectory = isValidProjectDirectory;
|
|
27
|
+
function hasGitDir(dirPath) {
|
|
22
28
|
return fs.existsSync(path.join(dirPath, './.git'));
|
|
23
29
|
}
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
if (
|
|
27
|
-
// eslint-disable-next-line no-console
|
|
30
|
+
exports.hasGitDir = hasGitDir;
|
|
31
|
+
function checkFilesToKeep(filesToKeep, dirPath) {
|
|
32
|
+
if (filesToKeep.some(file => fs.existsSync(path.join(dirPath, file)))) {
|
|
28
33
|
process.stderr.write('It looks like you already have "__checks__" folder or "checkly.config.ts". ' +
|
|
29
34
|
'Please, remove them and try again.' + '\n');
|
|
30
|
-
fs.rmSync(tempPath, { recursive: true });
|
|
31
35
|
process.exit(1);
|
|
32
36
|
}
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
+
}
|
|
38
|
+
exports.checkFilesToKeep = checkFilesToKeep;
|
|
39
|
+
function copyTemporaryFiles(filesToKeep, dirPath, tempPath) {
|
|
40
|
+
for (const file of filesToKeep) {
|
|
41
|
+
fs.renameSync(`${tempPath}/${file}`, path.join(dirPath, file));
|
|
37
42
|
}
|
|
38
43
|
fs.rmSync(tempPath, { recursive: true });
|
|
39
44
|
}
|
|
40
|
-
|
|
45
|
+
exports.copyTemporaryFiles = copyTemporaryFiles;
|
|
46
|
+
function usePackageName(packageName) {
|
|
41
47
|
const filePath = './checkly.config.ts';
|
|
42
48
|
const checklyConfig = fs.readFileSync(filePath, 'utf-8');
|
|
43
49
|
fs.writeFileSync(filePath, checklyConfig
|
|
44
50
|
.replace(/Boilerplate Project/, packageName)
|
|
45
51
|
.replace(/boilerplate-project/, packageName));
|
|
46
52
|
}
|
|
47
|
-
|
|
53
|
+
exports.usePackageName = usePackageName;
|
|
54
|
+
function hasGitIgnore(dirPath) {
|
|
48
55
|
return fs.existsSync(path.join(dirPath, '.gitignore'));
|
|
49
56
|
}
|
|
50
|
-
|
|
57
|
+
exports.hasGitIgnore = hasGitIgnore;
|
|
58
|
+
function isValidUrl(string) {
|
|
51
59
|
try {
|
|
52
60
|
const url = new URL(string);
|
|
53
61
|
return url.protocol === 'http:' || url.protocol === 'https:';
|
|
@@ -56,12 +64,14 @@ export function isValidUrl(string) {
|
|
|
56
64
|
return false;
|
|
57
65
|
}
|
|
58
66
|
}
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
67
|
+
exports.isValidUrl = isValidUrl;
|
|
68
|
+
function generateProjectName() {
|
|
69
|
+
return (0, unique_names_generator_1.uniqueNamesGenerator)({
|
|
70
|
+
dictionaries: [unique_names_generator_1.colors, unique_names_generator_1.animals],
|
|
62
71
|
separator: '-',
|
|
63
72
|
length: 2,
|
|
64
73
|
style: 'lowerCase',
|
|
65
74
|
});
|
|
66
75
|
}
|
|
76
|
+
exports.generateProjectName = generateProjectName;
|
|
67
77
|
//# sourceMappingURL=directory.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"directory.js","sourceRoot":"","sources":["../../src/utils/directory.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"directory.js","sourceRoot":"","sources":["../../src/utils/directory.ts"],"names":[],"mappings":";;;AAAA,yBAAwB;AACxB,6BAA4B;AAC5B,mEAA8E;AAS9E,SAAgB,kBAAkB,CAAE,OAAe;IACjD,OAAO,EAAE,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,cAAc,CAAC,CAAC,CAAA;AAC1D,CAAC;AAFD,gDAEC;AAED,SAAgB,eAAe,CAAE,OAAe;IAC9C,OAAO,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,cAAc,CAAC,EAAE,OAAO,CAAC,CAAC,CAAA;AACjF,CAAC;AAFD,0CAEC;AAED,SAAgB,uBAAuB,CAAE,OAAe;IACtD,IAAI,CAAC,EAAE,CAAC,UAAU,CAAC,OAAO,CAAC,EAAE;QAC3B,OAAO,IAAI,CAAA;KACZ;IACD,6CAA6C;IAC7C,IAAI,kBAAkB,CAAC,OAAO,CAAC,EAAE;QAC/B,OAAO,IAAI,CAAA;KACZ;IACD,mDAAmD;IACnD,OAAO,EAAE,CAAC,WA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AC,CAC7C,CAAA;AACH,CAAC;AARD,wCAQC;AACD,SAAgB,YAAY,CAAE,OAAe;IAC3C,OAAO,EAAE,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,YAAY,CAAC,CAAC,CAAA;AACxD,CAAC;AAFD,oCAEC;AAED,SAAgB,UAAU,CAAE,MAAc;IACxC,IAAI;QACF,MAAM,GAAG,GAAG,IAAI,GAAG,CAAC,MAAM,CAAC,CAAA;QAC3B,OAAO,GAAG,CAAC,QAAQ,KAAK,OAAO,IAAI,GAAG,CAAC,QAAQ,KAAK,QAAQ,CAAA;KAC7D;IAAC,MAAM;QACN,OAAO,KAAK,CAAA;KACb;AACH,CAAC;AAPD,gCAOC;AAED,SAAgB,mBAAmB;IACjC,OAAO,IAAA,6CAAoB,EAAC;QAC1B,YAAY,EAAE,CAAC,+BAAM,EAAE,gCAAO,CAAC;QAC/B,SAAS,EAAE,GAAG;QACd,MAAM,EAAE,CAAC;QACT,KAAK,EAAE,WAAW;KACnB,CAAC,CAAA;AACJ,CAAC;AAPD,kDAOC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function getFullName(): Promise<string | undefined>;
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getFullName = void 0;
|
|
4
|
+
const execa = require("execa");
|
|
5
|
+
const passwdUser = require("passwd-user");
|
|
6
|
+
const environmentVariables = [
|
|
7
|
+
'GIT_AUTHOR_NAME',
|
|
8
|
+
'GIT_COMMITTER_NAME',
|
|
9
|
+
'HGUSER',
|
|
10
|
+
'C9_USER', // Cloud9
|
|
11
|
+
];
|
|
12
|
+
function checkEnv() {
|
|
13
|
+
const { env } = process;
|
|
14
|
+
const variableName = environmentVariables.find((variable) => env[variable]);
|
|
15
|
+
const fullName = variableName && env[variableName];
|
|
16
|
+
if (!fullName) {
|
|
17
|
+
throw new Error();
|
|
18
|
+
}
|
|
19
|
+
return fullName;
|
|
20
|
+
}
|
|
21
|
+
async function checkPasswd() {
|
|
22
|
+
const user = await passwdUser();
|
|
23
|
+
if (!user?.fullName) {
|
|
24
|
+
throw new Error();
|
|
25
|
+
}
|
|
26
|
+
return user.fullName;
|
|
27
|
+
}
|
|
28
|
+
async function checkGit() {
|
|
29
|
+
const fullName = await execa('git', ['config', '--global', 'user.name']);
|
|
30
|
+
if (!fullName?.stdout) {
|
|
31
|
+
throw new Error();
|
|
32
|
+
}
|
|
33
|
+
return fullName.stdout;
|
|
34
|
+
}
|
|
35
|
+
async function checkOsaScript() {
|
|
36
|
+
const fullName = await execa('osascript', ['-e', 'long user name of (system info)']);
|
|
37
|
+
if (!fullName?.stdout) {
|
|
38
|
+
throw new Error();
|
|
39
|
+
}
|
|
40
|
+
return fullName.stdout;
|
|
41
|
+
}
|
|
42
|
+
async function checkWmic() {
|
|
43
|
+
const stdout = await execa('wmic', [
|
|
44
|
+
'useraccount',
|
|
45
|
+
'where',
|
|
46
|
+
`name="${process.env.USERNAME}"`,
|
|
47
|
+
'get',
|
|
48
|
+
'fullname',
|
|
49
|
+
]);
|
|
50
|
+
const fullName = stdout.stdout.replace('FullName', '').trim();
|
|
51
|
+
if (!fullName) {
|
|
52
|
+
throw new Error();
|
|
53
|
+
}
|
|
54
|
+
return fullName;
|
|
55
|
+
}
|
|
56
|
+
async function checkGetEnt() {
|
|
57
|
+
const result = await execa('getent', ['passwd', '$(whoami)']);
|
|
58
|
+
const fullName = (result.stdout.split(':')[4] || '').replace(/,.*/, '');
|
|
59
|
+
if (!fullName) {
|
|
60
|
+
throw new Error();
|
|
61
|
+
}
|
|
62
|
+
return fullName;
|
|
63
|
+
}
|
|
64
|
+
function fallback() {
|
|
65
|
+
if (process.platform === 'darwin') {
|
|
66
|
+
return Promise.any([checkPasswd(), checkOsaScript()]);
|
|
67
|
+
}
|
|
68
|
+
if (process.platform === 'win32') {
|
|
69
|
+
// The full name is usually not set by default in the system on Windows 7+
|
|
70
|
+
return Promise.any([checkGit(), checkWmic()]);
|
|
71
|
+
}
|
|
72
|
+
return Promise.any([checkPasswd(), checkGetEnt(), checkGit()]);
|
|
73
|
+
}
|
|
74
|
+
async function getFullName() {
|
|
75
|
+
try {
|
|
76
|
+
return await checkEnv();
|
|
77
|
+
}
|
|
78
|
+
catch { }
|
|
79
|
+
try {
|
|
80
|
+
return await fallback();
|
|
81
|
+
}
|
|
82
|
+
catch { }
|
|
83
|
+
}
|
|
84
|
+
exports.getFullName = getFullName;
|
|
85
|
+
//# sourceMappingURL=fullname.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fullname.js","sourceRoot":"","sources":["../../src/utils/fullname.ts"],"names":[],"mappings":";;;AAAA,+BAA8B;AAC9B,0CAAyC;AAEzC,MAAM,oBAAoB,GAAG;IAC3B,iBAAiB;IACjB,oBAAoB;IACpB,QAAQ;IACR,SAAS,EAAE,SAAS;CACrB,CAAA;AAED,SAAS,QAAQ;IACf,MAAM,EAAE,GAAG,EAAE,GAAG,OAAO,CAAA;IACvB,MAAM,YAAY,GAAG,oBAAoB,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC,CAAA;IAC3E,MAAM,QAAQ,GAAG,YAAY,IAAI,GAAG,CAAC,YAAY,CAAC,CAAA;IAElD,IAAI,CAAC,QAAQ,EAAE;QACb,MAAM,IAAI,KAAK,EAAE,CAAA;KAClB;IAED,OAAO,QAAQ,CAAA;AACjB,CAAC;AAED,KAAK,UAAU,WAAW;IACxB,MAAM,IAAI,GAAG,MAAM,UAAU,EAAE,CAAA;IAE/B,IAAI,CAAC,IAAI,EAAE,QAAQ,EAAE;QACnB,MAAM,IAAI,KAAK,EAAE,CAAA;KAClB;IAED,OAAO,IAAI,CAAC,QAAQ,CAAA;AACtB,CAAC;AAED,KAAK,UAAU,QAAQ;IACrB,MAAM,QAAQ,GAAG,MAAM,KAAK,C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AED,OAAO,QAAQ,CAAA;AACjB,CAAC;AAED,SAAS,QAAQ;IACf,IAAI,OAAO,CAAC,QAAQ,KAAK,QAAQ,EAAE;QACjC,OAAO,OAAO,CAAC,GAAG,CAAC,CAAC,WAAW,EAAE,EAAE,cAAc,EAAE,CAAC,CAAC,CAAA;KACtD;IAED,IAAI,OAAO,CAAC,QAAQ,KAAK,OAAO,EAAE;QAChC,0EAA0E;QAC1E,OAAO,OAAO,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE,EAAE,SAAS,EAAE,CAAC,CAAC,CAAA;KAC9C;IAED,OAAO,OAAO,CAAC,GAAG,CAAC,CAAC,WAAW,EAAE,EAAE,WAAW,EAAE,EAAE,QAAQ,EAAE,CAAC,CAAC,CAAA;AAChE,CAAC;AAEM,KAAK,UAAU,WAAW;IAC/B,IAAI;QACF,OAAO,MAAM,QAAQ,EAAE,CAAA;KACxB;IAAC,MAAM,GAAE;IAEV,IAAI;QACF,OAAO,MAAM,QAAQ,EAAE,CAAA;KACxB;IAAC,MAAM,GAAE;AACZ,CAAC;AARD,kCAQC"}
|
|
@@ -1,60 +1,69 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
const
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.installDependenciesAndInitGit = exports.createProject = exports.installWithinProject = exports.getProjectDirectory = void 0;
|
|
4
|
+
const debug_1 = require("debug");
|
|
5
|
+
const directory_1 = require("./directory");
|
|
6
|
+
const prompts_1 = require("./prompts");
|
|
7
|
+
const dependencies_1 = require("../actions/dependencies");
|
|
8
|
+
const template_1 = require("../actions/template");
|
|
9
|
+
const creates_1 = require("../actions/creates");
|
|
10
|
+
const git_1 = require("../actions/git");
|
|
11
|
+
const debug = (0, debug_1.default)('checkly:create-cli');
|
|
9
12
|
const templateBaseRepo = 'checkly/checkly-cli/examples';
|
|
10
|
-
|
|
13
|
+
async function getProjectDirectory({ onCancel }) {
|
|
11
14
|
debug('Ask or detect directory name');
|
|
12
15
|
const cwd = process.cwd();
|
|
13
16
|
// if directory has a package.json, do not ask project directory and use CWD
|
|
14
|
-
const { projectDirectory } = hasPackageJsonFile(cwd)
|
|
17
|
+
const { projectDirectory } = (0, directory_1.hasPackageJsonFile)(cwd)
|
|
15
18
|
? { projectDirectory: cwd }
|
|
16
|
-
: await askProjectDirectory(onCancel);
|
|
19
|
+
: await (0, prompts_1.askProjectDirectory)(onCancel);
|
|
17
20
|
if (!projectDirectory) {
|
|
18
21
|
process.stderr.write('You must provide a valid directory name. Please try again.');
|
|
19
22
|
}
|
|
20
23
|
return projectDirectory;
|
|
21
24
|
}
|
|
22
|
-
|
|
25
|
+
exports.getProjectDirectory = getProjectDirectory;
|
|
26
|
+
async function installWithinProject({ projectDirectory, version, onCancel }) {
|
|
23
27
|
debug('Existing package.json detected');
|
|
24
|
-
const { initializeProject } = await askInitializeProject(onCancel);
|
|
28
|
+
const { initializeProject } = await (0, prompts_1.askInitializeProject)(onCancel);
|
|
25
29
|
if (initializeProject) {
|
|
26
|
-
const packageJson = readPackageJson(projectDirectory);
|
|
27
|
-
const temporaryDir = generateProjectName();
|
|
30
|
+
const packageJson = (0, directory_1.readPackageJson)(projectDirectory);
|
|
31
|
+
const temporaryDir = (0, directory_1.generateProjectName)();
|
|
28
32
|
debug('Add dependencies to existing package.json');
|
|
29
|
-
addDevDependecies(projectDirectory, packageJson);
|
|
33
|
+
(0, dependencies_1.addDevDependecies)(projectDirectory, packageJson);
|
|
34
|
+
const FILE_TO_KEEP = ['__checks__', 'checkly.config.ts'];
|
|
35
|
+
(0, directory_1.checkFilesToKeep)(FILE_TO_KEEP, projectDirectory);
|
|
30
36
|
debug('Copy boilerplate project to temporary folder');
|
|
31
|
-
await copyTemplate({
|
|
37
|
+
await (0, template_1.copyTemplate)({
|
|
32
38
|
template: 'boilerplate-project',
|
|
33
|
-
templatePath: `github:${templateBaseRepo}/boilerplate-project
|
|
39
|
+
templatePath: `github:${templateBaseRepo}/boilerplate-project#${version}`,
|
|
34
40
|
targetDir: temporaryDir,
|
|
35
41
|
});
|
|
36
|
-
copyTemporaryFiles(projectDirectory, temporaryDir);
|
|
37
|
-
usePackageName(packageJson.name);
|
|
42
|
+
(0, directory_1.copyTemporaryFiles)(FILE_TO_KEEP, projectDirectory, temporaryDir);
|
|
43
|
+
(0, directory_1.usePackageName)(packageJson.name);
|
|
38
44
|
debug('Create custom Browser check');
|
|
39
|
-
await createCustomBrowserCheck({ projectDirectory, onCancel });
|
|
45
|
+
await (0, creates_1.createCustomBrowserCheck)({ projectDirectory, onCancel });
|
|
40
46
|
}
|
|
41
47
|
else {
|
|
42
48
|
process.exit(0);
|
|
43
49
|
}
|
|
44
50
|
}
|
|
45
|
-
|
|
46
|
-
|
|
51
|
+
exports.installWithinProject = installWithinProject;
|
|
52
|
+
async function createProject({ projectDirectory, version, onCancel }) {
|
|
53
|
+
const templateResponse = await (0, prompts_1.askTemplate)(onCancel);
|
|
47
54
|
debug('Downloading template');
|
|
48
|
-
await copyTemplate({
|
|
55
|
+
await (0, template_1.copyTemplate)({
|
|
49
56
|
template: templateResponse.template,
|
|
50
|
-
templatePath: `github:${templateBaseRepo}/${templateResponse.template}
|
|
57
|
+
templatePath: `github:${templateBaseRepo}/${templateResponse.template}#${version}`,
|
|
51
58
|
targetDir: projectDirectory,
|
|
52
59
|
});
|
|
53
60
|
}
|
|
54
|
-
|
|
61
|
+
exports.createProject = createProject;
|
|
62
|
+
async function installDependenciesAndInitGit({ projectDirectory }) {
|
|
55
63
|
debug('Install npm dependencies');
|
|
56
|
-
await installDependencies(projectDirectory);
|
|
64
|
+
await (0, dependencies_1.installDependencies)(projectDirectory);
|
|
57
65
|
debug('Init .git & .gitignore');
|
|
58
|
-
await initGit(projectDirectory);
|
|
66
|
+
await (0, git_1.initGit)(projectDirectory);
|
|
59
67
|
}
|
|
68
|
+
exports.installDependenciesAndInitGit = installDependenciesAndInitGit;
|
|
60
69
|
//# sourceMappingURL=installation.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"installation.js","sourceRoot":"","sources":["../../src/utils/installation.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"installation.js","sourceRoot":"","sources":["../../src/utils/installation.ts"],"names":[],"mappings":";;;AAAA,iCAAyB;AACzB,2CAA4I;AAC5I,uCAAkF;AAClF,0DAAgF;AAChF,kDAAkD;AAClD,gDAA6D;AAC7D,wCAAwC;AAExC,MAAM,KAAK,GAAG,IAAA,eAAK,EAAC,oBAAoB,CAAC,CAAA;AACzC,MAAM,gBAAgB,GAAG,8BAA8B,CAAA;AAEhD,KAAK,UAAU,mBAAmB,CAAE,EAAE,QAAQ,EAA4B;IAC/E,KAAK,CAAC,8BAA8B,CAAC,CAAA;IACrC,MAAM,GAAG,GAAG,OAAO,CAAC,GAAG,EAAE,CAAA;IAEzB,4EAA4E;IAC5E,MAAM,EAAE,gBAAgB,EAAE,GAAG,IAAA,8BAAkB,EAAC,GAAG,CAAC;QAClD,CAAC,CAAC,EAAE,gBAAgB,EAAE,GAAG,EAAE;QAC3B,CAAC,CAAC,MAAM,IAAA,6BAAmB,EAAC,QAAQ,CAAC,CAAA;IAEvC,IAAI,CAAC,gBAAgB,EAAE;QACrB,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,4DAA4D,CAAC,CAAA;KACnF;IAED,OAAO,gBAAgB,CAAA;AACzB,CAAC;AAdD,kDAcC;AAEM,KAAK,UAAU,oBAAoB,CACxC,EAAE,gBAAgB,EAAE,OAAO,EAAE,QAAQ,EAAuE;IAC5G,KAAK,CAAC,gCAAgC,CAAC,CAAA;IACvC,MAAM,EAAE,iBAAiB,EAAE,GAAG,MAAM,IAAA,8BAAoB,EAAC,QAAQ,CAAC,CAAA;IAElE,IAAI,iBAAiB,EAAE;QACrB,MAAM,WAAW,GAAG,IAAA,2BAAe,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D,sCAUC;AAEM,KAAK,UAAU,6BAA6B,CACjD,EAAE,gBAAgB,EAAgC;IAClD,KAAK,CAAC,0BAA0B,CAAC,CAAA;IACjC,MAAM,IAAA,kCAAmB,EAAC,gBAAgB,CAAC,CAAA;IAE3C,KAAK,CAAC,wBAAwB,CAAC,CAAA;IAC/B,MAAM,IAAA,aAAO,EAAC,gBAAgB,CAAC,CAAA;AACjC,CAAC;AAPD,sEAOC"}
|
package/dist/utils/messages.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
export declare function getUserGreeting(): Promise<string>;
|
|
2
|
-
export declare function bail(): void;
|
|
3
2
|
export declare function header(version: string, greeting: string): Promise<void>;
|
|
4
3
|
export declare function hint(prefix: string, text: string): Promise<void>;
|
|
5
4
|
export declare function footer(targetDir?: string): Promise<void>;
|
package/dist/utils/messages.js
CHANGED
|
@@ -1,23 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.footer = exports.hint = exports.header = exports.getUserGreeting = void 0;
|
|
1
4
|
/* eslint no-console: 'off' */
|
|
2
|
-
|
|
3
|
-
|
|
5
|
+
const chalk = require("chalk");
|
|
6
|
+
const fullname_1 = require("./fullname");
|
|
4
7
|
function sleep(ms) {
|
|
5
8
|
return new Promise(resolve => setTimeout(resolve, ms));
|
|
6
9
|
}
|
|
7
|
-
|
|
8
|
-
const name = await
|
|
10
|
+
async function getUserGreeting() {
|
|
11
|
+
const name = await (0, fullname_1.getFullName)();
|
|
9
12
|
return name ? `Hi ${name}!` : 'Hi there!';
|
|
10
13
|
}
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
}
|
|
14
|
-
export async function header(version, greeting) {
|
|
14
|
+
exports.getUserGreeting = getUserGreeting;
|
|
15
|
+
async function header(version, greeting) {
|
|
15
16
|
console.log(`${chalk.black.bgCyan.bold(' checkly ')} v${version} ${chalk.bold('Build and Run Synthetics That Scale')}\n`);
|
|
16
17
|
await sleep(1000);
|
|
17
18
|
console.log(`${greeting} Let's get you started on your ${chalk.green.bold('monitoring as code')} journey!\n`);
|
|
18
19
|
await sleep(500);
|
|
19
20
|
}
|
|
20
|
-
|
|
21
|
+
exports.header = header;
|
|
22
|
+
async function hint(prefix, text) {
|
|
21
23
|
await sleep(100);
|
|
22
24
|
if (process.stdout.columns < 80) {
|
|
23
25
|
console.log(`${chalk.cyan('◼')} ${chalk.cyan(prefix)}`);
|
|
@@ -27,7 +29,8 @@ export async function hint(prefix, text) {
|
|
|
27
29
|
console.log(`${chalk.cyan('◼')} ${chalk.cyan(prefix)} ${chalk.dim(text)}\n`);
|
|
28
30
|
}
|
|
29
31
|
}
|
|
30
|
-
|
|
32
|
+
exports.hint = hint;
|
|
33
|
+
async function footer(targetDir) {
|
|
31
34
|
const max = process.stdout.columns;
|
|
32
35
|
const prefix = max < 80 ? ' ' : ' '.repeat(9);
|
|
33
36
|
await sleep(200);
|
|
@@ -47,4 +50,5 @@ export async function footer(targetDir) {
|
|
|
47
50
|
console.log(`${prefix}- Check the docs at ${chalk.cyan('https://checklyhq.com/docs/cli')}`);
|
|
48
51
|
console.log(`${prefix}- Join the Checkly Slack community at ${chalk.cyan('https://checklyhq.com/slack')}\n`);
|
|
49
52
|
}
|
|
53
|
+
exports.footer = footer;
|
|
50
54
|
//# sourceMappingURL=messages.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"messages.js","sourceRoot":"","sources":["../../src/utils/messages.ts"],"names":[],"mappings":"AAAA,8BAA8B;
|
|
1
|
+
{"version":3,"file":"messages.js","sourceRoot":"","sources":["../../src/utils/messages.ts"],"names":[],"mappings":";;;AAAA,8BAA8B;AAC9B,+BAA8B;AAC9B,yCAAwC;AAExC,SAAS,KAAK,CAAE,EAAU;IACxB,OAAO,IAAI,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC,UAAU,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC,CAAA;AACxD,CAAC;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AAO,CAAC,GAAG,CAAC,GAAG,MAAM,uBAAuB,KAAK,CAAC,IAAI,CAAC,gCAAgC,CAAC,EAAE,CAAC,CAAA;IAC3F,OAAO,CAAC,GAAG,CAAC,GAAG,MAAM,yCAAyC,KAAK,CAAC,IAAI,CAAC,6BAA6B,CAAC,IAAI,CAAC,CAAA;AAC9G,CAAC;AAhCD,wBAgCC"}
|
package/dist/utils/prompts.d.ts
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
export declare const PROJECT_TEMPLATES: {
|
|
2
|
+
value: string;
|
|
3
|
+
title: string;
|
|
4
|
+
}[];
|
|
1
5
|
export declare function askInitializeProject(onCancel: any): Promise<{
|
|
2
6
|
initializeProject: boolean;
|
|
3
7
|
}>;
|
|
@@ -13,9 +17,9 @@ export declare function askCreateInitialBrowserCheck(onCancel: any): Promise<{
|
|
|
13
17
|
export declare function askUserWebsite(onCancel: any): Promise<{
|
|
14
18
|
userWebsite: string;
|
|
15
19
|
}>;
|
|
16
|
-
export declare function askInstallDependencies(): Promise<{
|
|
20
|
+
export declare function askInstallDependencies(onCancel?: any): Promise<{
|
|
17
21
|
installDependencies: boolean;
|
|
18
22
|
}>;
|
|
19
|
-
export declare function askInitializeGit(): Promise<{
|
|
23
|
+
export declare function askInitializeGit(onCancel?: any): Promise<{
|
|
20
24
|
initializeGit: boolean;
|
|
21
25
|
}>;
|
package/dist/utils/prompts.js
CHANGED
|
@@ -1,8 +1,17 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.askInitializeGit = exports.askInstallDependencies = exports.askUserWebsite = exports.askCreateInitialBrowserCheck = exports.askTemplate = exports.askProjectDirectory = exports.askInitializeProject = exports.PROJECT_TEMPLATES = void 0;
|
|
4
|
+
const path = require("path");
|
|
5
|
+
const chalk = require("chalk");
|
|
6
|
+
const prompts = require("prompts");
|
|
7
|
+
const directory_1 = require("../utils/directory");
|
|
8
|
+
exports.PROJECT_TEMPLATES = [
|
|
9
|
+
{ value: 'advanced-project', title: 'An advanced TypeScript project with multiple examples and best practices (recommended)' },
|
|
10
|
+
{ value: 'advanced-project-js', title: 'An advanced JavaScript project with multiple examples and best practices' },
|
|
11
|
+
{ value: 'boilerplate-project', title: 'A boilerplate TypeScript project with basic config' },
|
|
12
|
+
{ value: 'boilerplate-project-js', title: 'A boilerplate JavaScript project with basic config' },
|
|
13
|
+
];
|
|
14
|
+
function askInitializeProject(onCancel) {
|
|
6
15
|
return prompts({
|
|
7
16
|
type: 'confirm',
|
|
8
17
|
name: 'initializeProject',
|
|
@@ -10,36 +19,34 @@ export function askInitializeProject(onCancel) {
|
|
|
10
19
|
initial: true,
|
|
11
20
|
}, { onCancel });
|
|
12
21
|
}
|
|
13
|
-
|
|
22
|
+
exports.askInitializeProject = askInitializeProject;
|
|
23
|
+
function askProjectDirectory(onCancel) {
|
|
14
24
|
return prompts({
|
|
15
25
|
type: 'text',
|
|
16
26
|
name: 'projectDirectory',
|
|
17
27
|
message: 'Where do you want to create your new project?',
|
|
18
|
-
initial: generateProjectName(),
|
|
28
|
+
initial: (0, directory_1.generateProjectName)(),
|
|
19
29
|
format: val => path.resolve(val),
|
|
20
30
|
validate(dirName) {
|
|
21
31
|
const absolutePath = path.resolve(dirName);
|
|
22
|
-
if (!isValidProjectDirectory(absolutePath)) {
|
|
32
|
+
if (!(0, directory_1.isValidProjectDirectory)(absolutePath)) {
|
|
23
33
|
return `"${chalk.bold(absolutePath)}" is not empty!`;
|
|
24
34
|
}
|
|
25
35
|
return true;
|
|
26
36
|
},
|
|
27
37
|
}, { onCancel });
|
|
28
38
|
}
|
|
29
|
-
|
|
39
|
+
exports.askProjectDirectory = askProjectDirectory;
|
|
40
|
+
function askTemplate(onCancel) {
|
|
30
41
|
return prompts({
|
|
31
42
|
type: 'select',
|
|
32
43
|
name: 'template',
|
|
33
44
|
message: 'Which template would you like to use for your new project?',
|
|
34
|
-
choices:
|
|
35
|
-
{ value: 'advanced-project', title: 'An advanced TypeScript project with multiple examples and best practices (recommended)' },
|
|
36
|
-
{ value: 'advanced-project-js', title: 'An advanced JavaScript project with multiple examples and best practices' },
|
|
37
|
-
{ value: 'boilerplate-project', title: 'A boilerplate TypeScript project with basic config' },
|
|
38
|
-
{ value: 'boilerplate-project-js', title: 'A boilerplate JavaScript project with basic config' },
|
|
39
|
-
],
|
|
45
|
+
choices: exports.PROJECT_TEMPLATES,
|
|
40
46
|
}, { onCancel });
|
|
41
47
|
}
|
|
42
|
-
|
|
48
|
+
exports.askTemplate = askTemplate;
|
|
49
|
+
function askCreateInitialBrowserCheck(onCancel) {
|
|
43
50
|
return prompts({
|
|
44
51
|
type: 'confirm',
|
|
45
52
|
name: 'createInitialBrowserCheck',
|
|
@@ -47,27 +54,31 @@ export function askCreateInitialBrowserCheck(onCancel) {
|
|
|
47
54
|
initial: true,
|
|
48
55
|
}, { onCancel });
|
|
49
56
|
}
|
|
50
|
-
|
|
57
|
+
exports.askCreateInitialBrowserCheck = askCreateInitialBrowserCheck;
|
|
58
|
+
function askUserWebsite(onCancel) {
|
|
51
59
|
return prompts({
|
|
52
60
|
type: 'text',
|
|
53
61
|
name: 'userWebsite',
|
|
54
62
|
message: 'Please provide the URL of the site you want to check.',
|
|
55
63
|
}, { onCancel });
|
|
56
64
|
}
|
|
57
|
-
|
|
65
|
+
exports.askUserWebsite = askUserWebsite;
|
|
66
|
+
function askInstallDependencies(onCancel = () => true) {
|
|
58
67
|
return prompts({
|
|
59
68
|
type: 'confirm',
|
|
60
69
|
name: 'installDependencies',
|
|
61
70
|
message: 'Would you like to install NPM dependencies? (recommended)',
|
|
62
71
|
initial: true,
|
|
63
|
-
}, { onCancel
|
|
72
|
+
}, { onCancel });
|
|
64
73
|
}
|
|
65
|
-
|
|
74
|
+
exports.askInstallDependencies = askInstallDependencies;
|
|
75
|
+
function askInitializeGit(onCancel = () => true) {
|
|
66
76
|
return prompts({
|
|
67
77
|
type: 'confirm',
|
|
68
78
|
name: 'initializeGit',
|
|
69
79
|
message: 'Would you like to initialize a new git repo? (optional)',
|
|
70
80
|
initial: true,
|
|
71
|
-
}, { onCancel
|
|
81
|
+
}, { onCancel });
|
|
72
82
|
}
|
|
83
|
+
exports.askInitializeGit = askInitializeGit;
|
|
73
84
|
//# sourceMappingURL=prompts.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prompts.js","sourceRoot":"","sources":["../../src/utils/prompts.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"prompts.js","sourceRoot":"","sources":["../../src/utils/prompts.ts"],"names":[],"mappings":";;;AAAA,6BAA4B;AAC5B,+BAA8B;AAC9B,mCAAkC;AAClC,kDAAiF;AAEpE,QAAA,iBAAiB,GAAG;IAC/B,EAAE,KAAK,EAAE,kBAAkB,EAAE,KAAK,EAAE,wFAAwF,EAAE;IAC9H,EAAE,KAAK,EAAE,qBAAqB,EAAE,KAAK,EAAE,0EAA0E,EAAE;IACnH,EAAE,KAAK,EAAE,qBAAqB,EAAE,KAAK,EAAE,oDAAoD,EAAE;IAC7F,EAAE,KAAK,EAAE,wBAAwB,EAAE,KAAK,EAAE,oDAAoD,EAAE;CACjG,CAAA;AAED,SAAgB,oBAAoB,CAAE,QAAa;IACjD,OAAO,OAAO,CAAC;QACb,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,mBAAmB;QACzB,OAAO,EAAE,2EAA2E;QACpF,OAAO,EAAE,IAAI;KACd,EAAE,EAAE,QAAQ,EAAE,CAAC,CAAA;AAClB,CAAC;AAPD,oDAOC;AAED,SAAgB,mBAAmB,CAAE,QAAa;IAChD,OAAO,OAAO,CAAC;QACb,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,kBAAkB;QACxB,OAAO,EAAE,+CAA+C;QACxD,OAAO,EAAE,IAAA,+BAAmB,GAAE;QAC9B,MAAM,EAAE,GAAG,C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E,CAAC,CAAA;AAClB,CAAC;AAPD,wDAOC;AAED,SAAgB,gBAAgB,CAAE,WAAgB,GAAG,EAAE,CAAC,IAAI;IAC1D,OAAO,OAAO,CAAC;QACb,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,eAAe;QACrB,OAAO,EAAE,yDAAyD;QAClE,OAAO,EAAE,IAAI;KACd,EAAE,EAAE,QAAQ,EAAE,CAAC,CAAA;AAClB,CAAC;AAPD,4CAOC"}
|
package/dist/utils/terminal.js
CHANGED
|
@@ -1,7 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.spinner = void 0;
|
|
4
|
+
const ora = require("ora");
|
|
5
|
+
function spinner(text) {
|
|
3
6
|
return ora({
|
|
4
7
|
text: `${text}`,
|
|
8
|
+
stream: process.stdout,
|
|
5
9
|
}).start();
|
|
6
10
|
}
|
|
11
|
+
exports.spinner = spinner;
|
|
7
12
|
//# sourceMappingURL=terminal.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"terminal.js","sourceRoot":"","sources":["../../src/utils/terminal.ts"],"names":[],"mappings":"AACA,
|
|
1
|
+
{"version":3,"file":"terminal.js","sourceRoot":"","sources":["../../src/utils/terminal.ts"],"names":[],"mappings":";;;AACA,2BAA0B;AAE1B,SAAgB,OAAO,CAAE,IAAY;IACnC,OAAO,GAAG,CAAC;QACT,IAAI,EAAE,GAAG,IAAI,EAAE;QACf,MAAM,EAAE,OAAO,CAAC,MAAM;KACvB,CAAC,CAAC,KAAK,EAAE,CAAA;AACZ,CAAC;AALD,0BAKC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getPackageManager = void 0;
|
|
4
|
+
function pmFromUserAgent(userAgent) {
|
|
5
|
+
const pmSpec = userAgent.split(' ')[0];
|
|
6
|
+
const separatorPos = pmSpec.lastIndexOf('/');
|
|
7
|
+
const name = pmSpec.substring(0, separatorPos);
|
|
8
|
+
return {
|
|
9
|
+
name: name === 'npminstall' ? 'cnpm' : name,
|
|
10
|
+
version: pmSpec.substring(separatorPos + 1),
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
function getPackageManager() {
|
|
14
|
+
if (!process.env.npm_config_user_agent) {
|
|
15
|
+
return undefined;
|
|
16
|
+
}
|
|
17
|
+
return pmFromUserAgent(process.env.npm_config_user_agent);
|
|
18
|
+
}
|
|
19
|
+
exports.getPackageManager = getPackageManager;
|
|
20
|
+
//# sourceMappingURL=which-pm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"which-pm.js","sourceRoot":"","sources":["../../src/utils/which-pm.ts"],"names":[],"mappings":";;;AAAA,SAAS,eAAe,CAAE,SAAiB;IACzC,MAAM,MAAM,GAAG,SAAS,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAA;IACtC,MAAM,YAAY,GAAG,MAAM,CAAC,WAAW,CAAC,GAAG,CAAC,CAAA;IAC5C,MAAM,IAAI,GAAG,MAAM,CAAC,SAAS,CAAC,CAAC,EAAE,YAAY,CAAC,CAAA;IAC9C,OAAO;QACL,IAAI,EAAE,IAAI,KAAK,YAAY,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI;QAC3C,OAAO,EAAE,MAAM,CAAC,SAAS,CAAC,YAAY,GAAG,CAAC,CAAC;KAC5C,CAAA;AACH,CAAC;AAED,SAAgB,iBAAiB;IAC/B,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,qBAAqB,EAAE;QACtC,OAAO,SAAS,CAAA;KACjB;IACD,OAAO,eAAe,CAAC,OAAO,CAAC,GAAG,CAAC,qBAAqB,CAAC,CAAA;AAC3D,CAAC;AALD,8CAKC"}
|
package/package.json
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-checkly",
|
|
3
|
-
"version": "4.0
|
|
3
|
+
"version": "4.1.0",
|
|
4
4
|
"description": "Checkly Create CLI",
|
|
5
|
-
"type": "module",
|
|
6
5
|
"main": "dist/index.js",
|
|
7
6
|
"types": "dist/index.d.ts",
|
|
8
7
|
"private": false,
|
|
@@ -11,7 +10,7 @@
|
|
|
11
10
|
"prepack": "echo \"Warning: no oclif manifest configured\"",
|
|
12
11
|
"prepare": "npm run clean && tsc --build",
|
|
13
12
|
"test": "jest --selectProjects unit",
|
|
14
|
-
"test:e2e": "
|
|
13
|
+
"test:e2e": "npm run prepare && jest --selectProjects E2E",
|
|
15
14
|
"start": "node ./index.mjs",
|
|
16
15
|
"watch": "tsc --watch"
|
|
17
16
|
},
|
|
@@ -28,12 +27,16 @@
|
|
|
28
27
|
".": "./index.mjs"
|
|
29
28
|
},
|
|
30
29
|
"bin": {
|
|
31
|
-
"create-cli": "./
|
|
30
|
+
"create-cli": "./bin/run"
|
|
32
31
|
},
|
|
33
32
|
"files": [
|
|
34
|
-
"dist"
|
|
35
|
-
"create-cli.js"
|
|
33
|
+
"dist"
|
|
36
34
|
],
|
|
35
|
+
"oclif": {
|
|
36
|
+
"bin": "create-cli",
|
|
37
|
+
"commands": "./dist/commands",
|
|
38
|
+
"default": "bootstrap"
|
|
39
|
+
},
|
|
37
40
|
"homepage": "https://github.com/checkly/checkly-cli#readme",
|
|
38
41
|
"dependencies": {
|
|
39
42
|
"@oclif/core": "2.8.11",
|
|
@@ -41,26 +44,23 @@
|
|
|
41
44
|
"@oclif/plugin-plugins": "2.3.0",
|
|
42
45
|
"axios": "1.4.0",
|
|
43
46
|
"chalk": "4.1.2",
|
|
44
|
-
"debug": "
|
|
45
|
-
"execa": "
|
|
46
|
-
"
|
|
47
|
-
"
|
|
48
|
-
"
|
|
49
|
-
"prompts": "
|
|
50
|
-
"unique-names-generator": "
|
|
51
|
-
"which-pm-runs": "^1.1.0"
|
|
47
|
+
"debug": "4.3.4",
|
|
48
|
+
"execa": "5.1.0",
|
|
49
|
+
"giget": "1.1.2",
|
|
50
|
+
"ora": "5.4.1",
|
|
51
|
+
"passwd-user": "3.0.0",
|
|
52
|
+
"prompts": "2.4.2",
|
|
53
|
+
"unique-names-generator": "4.7.1"
|
|
52
54
|
},
|
|
53
55
|
"devDependencies": {
|
|
54
56
|
"@types/config": "3.3.0",
|
|
55
|
-
"@types/debug": "
|
|
57
|
+
"@types/debug": "4.1.7",
|
|
56
58
|
"@types/glob": "8.0.0",
|
|
57
59
|
"@types/jest": "29.5.3",
|
|
58
60
|
"@types/luxon": "3.3.1",
|
|
59
61
|
"@types/node": "20.3.3",
|
|
60
|
-
"@types/prompts": "
|
|
62
|
+
"@types/prompts": "2.4.2",
|
|
61
63
|
"@types/uuid": "9.0.1",
|
|
62
|
-
"@types/which-pm-runs": "^1.0.0",
|
|
63
|
-
"@types/ws": "8.5.5",
|
|
64
64
|
"config": "3.3.8",
|
|
65
65
|
"jest": "29.6.2",
|
|
66
66
|
"rimraf": "5.0.1",
|
|
@@ -83,6 +83,9 @@
|
|
|
83
83
|
"testMatch": [
|
|
84
84
|
"<rootDir>/e2e/__tests__/**/*.spec.ts"
|
|
85
85
|
],
|
|
86
|
+
"testPathIgnorePatterns": [
|
|
87
|
+
"<rootDir>/e2e/__tests__/fixtures"
|
|
88
|
+
],
|
|
86
89
|
"preset": "ts-jest",
|
|
87
90
|
"testEnvironment": "node"
|
|
88
91
|
}
|
package/dist/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function main(): Promise<void>;
|
package/dist/index.js
DELETED
package/dist/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,yBAAyB,CAAA;AAE/C,MAAM,CAAC,KAAK,UAAU,IAAI;IACxB,MAAM,SAAS,CAAC,GAAG,EAAE,CAAA;AACvB,CAAC"}
|