rsetup 0.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/LICENSE +21 -0
- package/README.md +15 -0
- package/dist/bin.d.ts +1 -0
- package/dist/bin.js +9 -0
- package/dist/chunk-ISDHJ7ZF.js +13430 -0
- package/dist/index.d.ts +55 -0
- package/dist/index.js +13 -0
- package/package.json +67 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { RuntimeId, PackageManager, IntegrationSelection, ProcessRunner } from '@reposetup/core';
|
|
2
|
+
import { IntegrationRegistry } from '@reposetup/registry';
|
|
3
|
+
|
|
4
|
+
declare const EXIT_CODES: {
|
|
5
|
+
readonly SUCCESS: 0;
|
|
6
|
+
readonly GENERAL_FAILURE: 1;
|
|
7
|
+
readonly INVALID_INPUT: 2;
|
|
8
|
+
readonly RESOLUTION_FAILURE: 3;
|
|
9
|
+
readonly PREREQUISITE_MISSING: 4;
|
|
10
|
+
readonly VERIFICATION_FAILURE: 5;
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
interface CliIo {
|
|
14
|
+
writeOut(text: string): void;
|
|
15
|
+
writeErr(text: string): void;
|
|
16
|
+
}
|
|
17
|
+
interface CliFs {
|
|
18
|
+
readFile(path: string): Promise<string>;
|
|
19
|
+
}
|
|
20
|
+
interface CreateAnswers {
|
|
21
|
+
projectName: string;
|
|
22
|
+
projectPath?: string;
|
|
23
|
+
runtimeId: RuntimeId;
|
|
24
|
+
packageManager: PackageManager;
|
|
25
|
+
frameworkId: string;
|
|
26
|
+
frameworkOptions?: Record<string, unknown>;
|
|
27
|
+
integrations: IntegrationSelection[];
|
|
28
|
+
}
|
|
29
|
+
interface PromptCreateContext {
|
|
30
|
+
registry: IntegrationRegistry;
|
|
31
|
+
projectName?: string;
|
|
32
|
+
runtimeId?: RuntimeId;
|
|
33
|
+
packageManager?: PackageManager;
|
|
34
|
+
frameworkId?: string;
|
|
35
|
+
typescript?: boolean;
|
|
36
|
+
}
|
|
37
|
+
interface CliDeps {
|
|
38
|
+
registry?: IntegrationRegistry;
|
|
39
|
+
io?: CliIo;
|
|
40
|
+
fs?: CliFs;
|
|
41
|
+
promptCreate?: (context: PromptCreateContext) => Promise<CreateAnswers>;
|
|
42
|
+
confirmCreate?: () => Promise<boolean>;
|
|
43
|
+
runProcess?: ProcessRunner;
|
|
44
|
+
commandExists?: (command: string) => Promise<boolean>;
|
|
45
|
+
cwd?: string;
|
|
46
|
+
}
|
|
47
|
+
interface CliResult {
|
|
48
|
+
exitCode: number;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
declare function runCli(argv: string[], deps?: CliDeps): Promise<CliResult>;
|
|
52
|
+
|
|
53
|
+
declare const packageName: "rsetup";
|
|
54
|
+
|
|
55
|
+
export { type CliDeps, type CliFs, type CliIo, type CliResult, type CreateAnswers, EXIT_CODES, type PromptCreateContext, packageName, runCli };
|
package/dist/index.js
ADDED
package/package.json
ADDED
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "rsetup",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"license": "MIT",
|
|
5
|
+
"repository": {
|
|
6
|
+
"type": "git",
|
|
7
|
+
"url": "git+https://github.com/4d696e6b/RepoSetup.git"
|
|
8
|
+
},
|
|
9
|
+
"bugs": {
|
|
10
|
+
"url": "https://github.com/4d696e6b/RepoSetup/issues"
|
|
11
|
+
},
|
|
12
|
+
"homepage": "https://github.com/4d696e6b/RepoSetup#readme",
|
|
13
|
+
"description": "Compose, validate, and configure development stacks from the terminal.",
|
|
14
|
+
"keywords": [
|
|
15
|
+
"cli",
|
|
16
|
+
"developer-tools",
|
|
17
|
+
"scaffolding",
|
|
18
|
+
"typescript",
|
|
19
|
+
"nodejs",
|
|
20
|
+
"python",
|
|
21
|
+
"pnpm",
|
|
22
|
+
"installer"
|
|
23
|
+
],
|
|
24
|
+
"type": "module",
|
|
25
|
+
"engines": {
|
|
26
|
+
"node": ">=20"
|
|
27
|
+
},
|
|
28
|
+
"publishConfig": {
|
|
29
|
+
"access": "public"
|
|
30
|
+
},
|
|
31
|
+
"exports": {
|
|
32
|
+
".": {
|
|
33
|
+
"types": "./dist/index.d.ts",
|
|
34
|
+
"import": "./dist/index.js"
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
"main": "./dist/index.js",
|
|
38
|
+
"types": "./dist/index.d.ts",
|
|
39
|
+
"bin": {
|
|
40
|
+
"rsetup": "./dist/bin.js",
|
|
41
|
+
"reposetup": "./dist/bin.js"
|
|
42
|
+
},
|
|
43
|
+
"files": [
|
|
44
|
+
"dist/**/*.js",
|
|
45
|
+
"dist/**/*.d.ts",
|
|
46
|
+
"README.md",
|
|
47
|
+
"LICENSE"
|
|
48
|
+
],
|
|
49
|
+
"scripts": {
|
|
50
|
+
"build": "tsup",
|
|
51
|
+
"test": "vitest run",
|
|
52
|
+
"typecheck": "tsc --noEmit"
|
|
53
|
+
},
|
|
54
|
+
"devDependencies": {
|
|
55
|
+
"@reposetup/core": "workspace:*",
|
|
56
|
+
"@reposetup/integrations": "workspace:*",
|
|
57
|
+
"@reposetup/registry": "workspace:*",
|
|
58
|
+
"@types/node": "^22.20.4",
|
|
59
|
+
"tsup": "^8.5.1",
|
|
60
|
+
"typescript": "^5.9.3",
|
|
61
|
+
"vitest": "^5.0.1"
|
|
62
|
+
},
|
|
63
|
+
"dependencies": {
|
|
64
|
+
"@inquirer/prompts": "^8.7.2",
|
|
65
|
+
"commander": "^15.0.0"
|
|
66
|
+
}
|
|
67
|
+
}
|