@stack-dev/cli 0.1.4 → 0.1.6
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/.turbo/turbo-build.log +20 -21
- package/CHANGELOG.md +10 -0
- package/README.md +108 -0
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +5 -5
- package/.turbo/daemon/6fa76abe2aa470d0-turbo.log.2025-08-02 +0 -5
- package/.turbo/daemon/6fa76abe2aa470d0-turbo.log.2025-12-29 +0 -1
- package/.turbo/daemon/6fa76abe2aa470d0-turbo.log.2025-12-30 +0 -0
- package/.turbo/turbo-check-types.log +0 -5
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,21 +1,20 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
>
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
[32mDTS[39m [1mdist/index.d.ts [22m[32m13.00 B[39m
|
|
1
|
+
|
|
2
|
+
> @stack-dev/cli@0.1.6 build /home/runner/work/stack-dev/stack-dev/apps/cli
|
|
3
|
+
> tsup src/index.ts --dts --format esm,cjs
|
|
4
|
+
|
|
5
|
+
CLI Building entry: src/index.ts
|
|
6
|
+
CLI Using tsconfig: tsconfig.json
|
|
7
|
+
CLI tsup v7.3.0
|
|
8
|
+
CLI Using tsup config: /home/runner/work/stack-dev/stack-dev/apps/cli/tsup.config.ts
|
|
9
|
+
CLI Target: node18
|
|
10
|
+
CLI Cleaning output folder
|
|
11
|
+
ESM Build start
|
|
12
|
+
CJS Build start
|
|
13
|
+
ESM dist/index.mjs 57.21 KB
|
|
14
|
+
ESM ⚡️ Build success in 150ms
|
|
15
|
+
CJS dist/index.js 59.85 KB
|
|
16
|
+
CJS ⚡️ Build success in 150ms
|
|
17
|
+
DTS Build start
|
|
18
|
+
DTS ⚡️ Build success in 2426ms
|
|
19
|
+
DTS dist/index.d.mts 13.00 B
|
|
20
|
+
DTS dist/index.d.ts 13.00 B
|
package/CHANGELOG.md
ADDED
package/README.md
ADDED
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
# Stack-Dev Workspace
|
|
2
|
+
|
|
3
|
+
An opinionated, high-velocity TypeScript monorepo manager built on `pnpm` and `tsup`. This workspace provides the scaffolding for building shared libraries, React components, and CLI tools with minimal configuration overhead.
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## ⚡ Quick Start
|
|
8
|
+
|
|
9
|
+
### 1. Install the CLI
|
|
10
|
+
To manage this workspace, install the `@stack-dev/cli` globally via npm:
|
|
11
|
+
|
|
12
|
+
```bash
|
|
13
|
+
npm install -g @stack-dev/cli
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
### 2. Create a New Workspace
|
|
17
|
+
Generate a new workspace using the `stack create` command:
|
|
18
|
+
|
|
19
|
+
```bash
|
|
20
|
+
stack create my-new-project
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
### 3. Generate Packages
|
|
24
|
+
Inside the workspace, use the `stack g` command to create different types of modules:
|
|
25
|
+
|
|
26
|
+
```bash
|
|
27
|
+
# Generate a vanilla TypeScript library
|
|
28
|
+
stack g my-utils --type library
|
|
29
|
+
|
|
30
|
+
# Generate a React library with Styled Components
|
|
31
|
+
stack g ui-kit --type react --style styled-components
|
|
32
|
+
|
|
33
|
+
# Generate a Vite + React application
|
|
34
|
+
stack g web-app --type vite
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
---
|
|
38
|
+
|
|
39
|
+
## 🛠 Commands
|
|
40
|
+
|
|
41
|
+
| Command | Alias | Description |
|
|
42
|
+
|-------------------------------|-------|----------------------------------------------|
|
|
43
|
+
| `stack create <name>` | | Initialize a new workspace |
|
|
44
|
+
| `stack g <name>` | | Generate a new package, app, or config |
|
|
45
|
+
| `stack link [name]` | `l` | Link a local workspace package to the current directory |
|
|
46
|
+
| `stack unlink [name]` | `u` | Remove a local package link |
|
|
47
|
+
|
|
48
|
+
---
|
|
49
|
+
|
|
50
|
+
## 🏗 Project Structure
|
|
51
|
+
|
|
52
|
+
This workspace is organized as follows:
|
|
53
|
+
|
|
54
|
+
- `packages/*`: Shared libraries and configuration packages.
|
|
55
|
+
- `apps/*`: Deployment targets such as Vite apps, CLIs, etc.
|
|
56
|
+
- `tooling/*`: Shared ESLint, Prettier, and TypeScript configuration files.
|
|
57
|
+
|
|
58
|
+
---
|
|
59
|
+
|
|
60
|
+
## 🔧 Development Workflow
|
|
61
|
+
|
|
62
|
+
### Building
|
|
63
|
+
To build the workspace, run:
|
|
64
|
+
|
|
65
|
+
```bash
|
|
66
|
+
pnpm run build
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
### Running Locally
|
|
70
|
+
To run a compiled build:
|
|
71
|
+
|
|
72
|
+
```bash
|
|
73
|
+
pnpm start
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
For development, run in watch mode:
|
|
77
|
+
|
|
78
|
+
```bash
|
|
79
|
+
pnpm run build --watch
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
---
|
|
83
|
+
|
|
84
|
+
## 🛠 Smart Linking with CLI
|
|
85
|
+
|
|
86
|
+
The `@stack-dev/cli` provides intelligent linking for local packages in your workspace:
|
|
87
|
+
|
|
88
|
+
- **Interactively link a package**:
|
|
89
|
+
```bash
|
|
90
|
+
stack link
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
- **Link as a `devDependency`**:
|
|
94
|
+
```bash
|
|
95
|
+
stack link @stack-dev/core --dev
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
To unlink a package:
|
|
99
|
+
|
|
100
|
+
```bash
|
|
101
|
+
stack unlink
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
---
|
|
105
|
+
|
|
106
|
+
## Documentation
|
|
107
|
+
|
|
108
|
+
Visit the individual package directories (e.g., `packages/cli` or `apps`) for more specific details about their usage and configuration.
|
package/dist/index.js
CHANGED
|
@@ -1281,7 +1281,7 @@ var import_commander = require("commander");
|
|
|
1281
1281
|
var import_enquirer3 = require("enquirer");
|
|
1282
1282
|
|
|
1283
1283
|
// package.json
|
|
1284
|
-
var version = "0.1.
|
|
1284
|
+
var version = "0.1.6";
|
|
1285
1285
|
|
|
1286
1286
|
// src/link-packages.ts
|
|
1287
1287
|
var import_promises4 = __toESM(require("fs/promises"));
|
package/dist/index.mjs
CHANGED
|
@@ -1258,7 +1258,7 @@ import { Command } from "commander";
|
|
|
1258
1258
|
import { prompt as prompt3 } from "enquirer";
|
|
1259
1259
|
|
|
1260
1260
|
// package.json
|
|
1261
|
-
var version = "0.1.
|
|
1261
|
+
var version = "0.1.6";
|
|
1262
1262
|
|
|
1263
1263
|
// src/link-packages.ts
|
|
1264
1264
|
import fs4 from "node:fs/promises";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stack-dev/cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.6",
|
|
4
4
|
"bin": {
|
|
5
5
|
"stack": "./dist/index.js"
|
|
6
6
|
},
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"json5": "^2.2.3",
|
|
13
13
|
"lodash": "^4.17.21",
|
|
14
14
|
"yaml": "^2.8.0",
|
|
15
|
-
"@stack-dev/core": "0.1.
|
|
15
|
+
"@stack-dev/core": "0.1.1"
|
|
16
16
|
},
|
|
17
17
|
"devDependencies": {
|
|
18
18
|
"@types/lodash": "^4.17.20",
|
|
@@ -21,9 +21,9 @@
|
|
|
21
21
|
"prettier": "^3.6.2",
|
|
22
22
|
"prettier-plugin-organize-imports": "^4.2.0",
|
|
23
23
|
"tsup": "^7.3.0",
|
|
24
|
-
"@stack-dev/
|
|
25
|
-
"@stack-dev/
|
|
26
|
-
"@stack-dev/
|
|
24
|
+
"@stack-dev/eslint-config": "0.1.1",
|
|
25
|
+
"@stack-dev/prettier-config": "0.1.1",
|
|
26
|
+
"@stack-dev/typescript-config": "0.1.1"
|
|
27
27
|
},
|
|
28
28
|
"scripts": {
|
|
29
29
|
"build": "tsup src/index.ts --dts --format esm,cjs",
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
2025-08-02T14:07:11.033942Z WARN daemon_server: turborepo_lib::commands::daemon: daemon already running
|
|
2
|
-
2025-08-02T14:13:35.352429Z WARN daemon_server: turborepo_lib::commands::daemon: daemon already running
|
|
3
|
-
2025-08-02T14:14:16.692196Z WARN daemon_server: turborepo_lib::commands::daemon: daemon already running
|
|
4
|
-
2025-08-02T14:15:28.816449Z WARN daemon_server: turborepo_lib::commands::daemon: daemon already running
|
|
5
|
-
2025-08-02T14:15:44.897293Z WARN daemon_server: turborepo_lib::commands::daemon: daemon already running
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
2025-12-29T21:35:30.387228Z WARN daemon_server: turborepo_lib::commands::daemon: daemon already running
|
|
File without changes
|