ts-vibe 1.4.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.
Files changed (3) hide show
  1. package/README.md +80 -0
  2. package/index.js +26 -0
  3. package/package.json +13 -0
package/README.md ADDED
@@ -0,0 +1,80 @@
1
+ # tsBootstrup
2
+
3
+ CLI tool for bootstrapping TypeScript projects
4
+
5
+ ---
6
+
7
+ ## 🚀 Features
8
+
9
+ - Create TypeScript project structure
10
+ - Optional Git initialization
11
+ - Automatic README generation
12
+ - Path validation (prevents invalid/non-ASCII paths)
13
+ - Run existing projects
14
+ - Execution time tracking for operations
15
+
16
+ ---
17
+
18
+ ## ⚙️ Usage
19
+
20
+ ### Create a new project
21
+
22
+ ```bash
23
+ tsbootstrap init
24
+ ```
25
+
26
+ With Git:
27
+
28
+ ```bash
29
+ tsbootstrap init --git
30
+ ```
31
+
32
+ Skip README creation:
33
+
34
+ ```bash
35
+ tsbootstrap init --noReadme
36
+ ```
37
+
38
+ ---
39
+
40
+ ### Run project
41
+
42
+ ```bash
43
+ tsbootstrap run
44
+ ```
45
+
46
+ or shorthand:
47
+
48
+ ```bash
49
+ tsbootstrap r
50
+ ```
51
+ ---
52
+
53
+ ## 🧠 Flags
54
+
55
+ | Flag | Alias | Description |
56
+ | ------------ | ----- | ------------------------- |
57
+ | `--init` | `-i` | Create a new project |
58
+ | `--run` | `-r` | Run the project |
59
+ | `--clear` | `-c` | Clear current directory |
60
+ | `--git` | `-g` | Initialize git repository |
61
+ | `--lang` | `-l` | Choose cli lang en/ru |
62
+ | `--noReadme` | - | Skip README creation |
63
+
64
+ ---
65
+
66
+ ## ⚠️ Requirements
67
+
68
+ * Go 1.20+
69
+ * Node.js (for running TypeScript projects)
70
+ * Git (optional)
71
+
72
+ ---
73
+
74
+ ## 🛠 Example Workflow
75
+
76
+ ```bash
77
+ tsbootstrap init --git
78
+ cd my-project
79
+ npm start
80
+ ```
package/index.js ADDED
@@ -0,0 +1,26 @@
1
+ #!/usr/bin/env node
2
+
3
+ const os = require("os");
4
+ const path = require("path");
5
+ const { spawnSync } = require("child_process");
6
+
7
+ const platform = os.platform();
8
+
9
+ let binary;
10
+
11
+ if (platform === "linux") {
12
+ binary = "tsBootstrap-linux";
13
+ } else if (platform === "win32") {
14
+ binary = "tsBootstrap-windows.exe";
15
+ } else if (platform === "darwin") {
16
+ binary = "tsBootstrap-mac";
17
+ } else {
18
+ console.error("Unsupported OS");
19
+ process.exit(1);
20
+ }
21
+
22
+ const binPath = path.join(__dirname, "bin", "release", binary);
23
+
24
+ spawnSync(binPath, process.argv.slice(2), {
25
+ stdio: "inherit",
26
+ });
package/package.json ADDED
@@ -0,0 +1,13 @@
1
+ {
2
+ "name": "ts-vibe",
3
+ "version": "1.4.0",
4
+ "description": "CLI for quick TypeScript project bootstrap",
5
+ "bin": {
6
+ "ts-bootstrap": "./index.js"
7
+ },
8
+ "files": [
9
+ "index.js",
10
+ "bin/release"
11
+ ],
12
+ "license": "MIT"
13
+ }