ts-vibe 1.4.0 → 1.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -15
- package/bin/release/ts-vibe-linux +0 -0
- package/bin/release/ts-vibe-mac +0 -0
- package/bin/release/ts-vibe-windows.exe +0 -0
- package/index.js +6 -6
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#
|
|
1
|
+
# ts-vibe
|
|
2
2
|
|
|
3
3
|
CLI tool for bootstrapping TypeScript projects
|
|
4
4
|
|
|
@@ -20,19 +20,19 @@ CLI tool for bootstrapping TypeScript projects
|
|
|
20
20
|
### Create a new project
|
|
21
21
|
|
|
22
22
|
```bash
|
|
23
|
-
|
|
23
|
+
npx ts-vibe init
|
|
24
24
|
```
|
|
25
25
|
|
|
26
26
|
With Git:
|
|
27
27
|
|
|
28
28
|
```bash
|
|
29
|
-
|
|
29
|
+
npx ts-vibe init --git
|
|
30
30
|
```
|
|
31
31
|
|
|
32
32
|
Skip README creation:
|
|
33
33
|
|
|
34
34
|
```bash
|
|
35
|
-
|
|
35
|
+
npx ts-vibe init --noReadme
|
|
36
36
|
```
|
|
37
37
|
|
|
38
38
|
---
|
|
@@ -40,14 +40,9 @@ tsbootstrap init --noReadme
|
|
|
40
40
|
### Run project
|
|
41
41
|
|
|
42
42
|
```bash
|
|
43
|
-
|
|
43
|
+
npm start
|
|
44
44
|
```
|
|
45
45
|
|
|
46
|
-
or shorthand:
|
|
47
|
-
|
|
48
|
-
```bash
|
|
49
|
-
tsbootstrap r
|
|
50
|
-
```
|
|
51
46
|
---
|
|
52
47
|
|
|
53
48
|
## 🧠 Flags
|
|
@@ -55,7 +50,6 @@ tsbootstrap r
|
|
|
55
50
|
| Flag | Alias | Description |
|
|
56
51
|
| ------------ | ----- | ------------------------- |
|
|
57
52
|
| `--init` | `-i` | Create a new project |
|
|
58
|
-
| `--run` | `-r` | Run the project |
|
|
59
53
|
| `--clear` | `-c` | Clear current directory |
|
|
60
54
|
| `--git` | `-g` | Initialize git repository |
|
|
61
55
|
| `--lang` | `-l` | Choose cli lang en/ru |
|
|
@@ -65,16 +59,16 @@ tsbootstrap r
|
|
|
65
59
|
|
|
66
60
|
## ⚠️ Requirements
|
|
67
61
|
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
62
|
+
- Go 1.20+
|
|
63
|
+
- Node.js (for running TypeScript projects)
|
|
64
|
+
- Git (optional)
|
|
71
65
|
|
|
72
66
|
---
|
|
73
67
|
|
|
74
68
|
## 🛠 Example Workflow
|
|
75
69
|
|
|
76
70
|
```bash
|
|
77
|
-
|
|
71
|
+
npx ts-vibe init --git --lang=ru
|
|
78
72
|
cd my-project
|
|
79
73
|
npm start
|
|
80
74
|
```
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/index.js
CHANGED
|
@@ -9,18 +9,18 @@ const platform = os.platform();
|
|
|
9
9
|
let binary;
|
|
10
10
|
|
|
11
11
|
if (platform === "linux") {
|
|
12
|
-
|
|
12
|
+
binary = "ts-vibe-linux";
|
|
13
13
|
} else if (platform === "win32") {
|
|
14
|
-
|
|
14
|
+
binary = "ts-vibe-windows.exe";
|
|
15
15
|
} else if (platform === "darwin") {
|
|
16
|
-
|
|
16
|
+
binary = "ts-vibe-mac";
|
|
17
17
|
} else {
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
console.error("Unsupported OS");
|
|
19
|
+
process.exit(1);
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
const binPath = path.join(__dirname, "bin", "release", binary);
|
|
23
23
|
|
|
24
24
|
spawnSync(binPath, process.argv.slice(2), {
|
|
25
|
-
|
|
25
|
+
stdio: "inherit",
|
|
26
26
|
});
|