spec-lite 1.1.10 → 1.1.11

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "spec-lite",
3
- "version": "1.1.10",
3
+ "version": "1.1.11",
4
4
  "description": "Spec-driven development kit for Claude Code",
5
5
  "type": "module",
6
6
  "bin": {
@@ -100,29 +100,35 @@ Bạn muốn build trong worktree riêng cho integration này không? (y/n)
100
100
 
101
101
  **Nếu chọn "y":**
102
102
 
103
- 1. **Tạo worktree mới** từ branch vừa tạo
104
- - Đường dẫn worktree: `../{repo-name}-{integration-slug}` (ví dụ: `../myapp-002-implement-todo`)
103
+ 1. **Thêm `.claude/worktrees/` vào `.gitignore`**
104
+ - Kiểm tra `.gitignore` ở root repo, nếu chưa có dòng `.claude/worktrees/` thì append:
105
+ ```bash
106
+ echo '.claude/worktrees/' >> .gitignore
107
+ ```
108
+
109
+ 2. **Tạo worktree mới** từ branch vừa tạo
110
+ - Đường dẫn worktree: `.claude/worktrees/{integration-slug}` (ví dụ: `.claude/worktrees/002-implement-todo`)
105
111
  - Lệnh:
106
112
  ```bash
107
- git worktree add ../{repo}-{slug} feat/{slug}
113
+ git worktree add .claude/worktrees/{slug} build/{slug}
108
114
  ```
109
115
 
110
- 2. **Detect package manager**
116
+ 3. **Detect package manager**
111
117
  - Kiểm tra theo thứ tự: `pnpm-lock.yaml` → `yarn.lock` → `package-lock.json` → `package.json`
112
118
  - Dùng package manager tương ứng: `pnpm install` / `yarn install` / `npm install`
113
119
  - Nếu không có `package.json` → bỏ qua bước install.
114
120
 
115
- 3. **Copy env files**
121
+ 4. **Copy env files**
116
122
  - Tìm tất cả file `.env*` ở root của working directory gốc (`.env`, `.env.local`, `.env.development`, v.v.)
117
123
  - Copy từng file vào worktree mới:
118
124
  ```bash
119
- cp .env* ../{repo}-{slug}/
125
+ cp .env* .claude/worktrees/{slug}/
120
126
  ```
121
127
  - Bỏ qua nếu không có file `.env*` nào.
122
128
 
123
- 4. **Chuyển working context sang worktree mới**
129
+ 5. **Chuyển working context sang worktree mới**
124
130
  - Tất cả các bước build tiếp theo đều chạy trong đường dẫn worktree mới.
125
- - Nhắc user biết đang build tại: `../{repo}-{slug}`
131
+ - Nhắc user biết đang build tại: `.claude/worktrees/{slug}`
126
132
 
127
133
  ### Với mỗi task pending
128
134