issue-map 0.1.0 → 0.2.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/README.md CHANGED
@@ -9,10 +9,10 @@
9
9
  在**要看的那個 repo** 裡跑:
10
10
 
11
11
  ```bash
12
- bunx github:gunter1020/issue-map#main
12
+ bunx issue-map@latest
13
13
  ```
14
14
 
15
- `#main` 不是裝飾:**不帶 ref 的話 bun 會一直用第一次解析到的那個 commit**。實測過——先跑不帶 ref 的版本,之後 repo 推了新 commit,再跑同一行還是拿到舊的(`~/.bun/install/cache/@GH@gunter1020-issue-map-<sha>@@@1` 看得到是哪一個),加上 `#main` 才拿到新的。
15
+ `@latest` npm 上最新的一版;要釘住特定版本就寫 `bunx issue-map@0.1.0`。
16
16
 
17
17
  起在 `http://localhost:4747` **並直接開瀏覽器**。每次重新整理都重抓 GitHub,看到的一定是現在的狀態。repo 是 `gh` 從 cwd 的 git 推斷的,不必填。
18
18
 
@@ -21,8 +21,8 @@ bunx github:gunter1020/issue-map#main
21
21
  只要一份靜態 HTML 的話(`-p` 是用來選另一個 bin 的,少了它會變成起 server):
22
22
 
23
23
  ```bash
24
- bunx -p github:gunter1020/issue-map#main issue-map-build # 寫到 dist/issue-map.html
25
- bunx -p github:gunter1020/issue-map#main issue-map-build out.html
24
+ bunx -p issue-map@latest issue-map-build # 寫到 dist/issue-map.html
25
+ bunx -p issue-map@latest issue-map-build out.html
26
26
  ```
27
27
 
28
28
  快照就是快照——狀態會過期,要看現在的狀態就用上面的 server。
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "issue-map",
3
- "version": "0.1.0",
3
+ "version": "0.2.0",
4
4
  "description": "把 GitHub Issues 的阻擋關係畫成一頁開發地圖:哪幾張票現在可以動、哪幾張在等誰、關鍵路徑是哪一條。",
5
5
  "keywords": [
6
6
  "bun",
@@ -4,7 +4,7 @@
4
4
  * 最新狀態。資料抓取與渲染都在 `issue-map.ts`,這支只負責包成完整 HTML 文件並回應。
5
5
  *
6
6
  * 這是 package.json 的預設 bin,所以在**要看的那個 repo** 裡直接跑就會畫那個 repo:
7
- * bunx github:gunter1020/issue-map
7
+ * bunx issue-map@latest
8
8
  *
9
9
  * 起來之後直接開瀏覽器。不要的話設 `ISSUE_MAP_OPEN=0`——`bun --watch` 的開發模式就是這樣關掉
10
10
  * 的,否則每存一次檔就多一個分頁。
@@ -11,7 +11,7 @@
11
11
  * 帶進快照的 issue:所有 open issue,加上仍被 open issue 牽著的 closed issue。後者畫成「已完成」
12
12
  * 的節點讓進度看得見,沒人牽著之後自然消失。
13
13
  *
14
- * **要畫哪個 repo**:從 cwd 的 git 推斷,不必填——在那個 repo 裡跑 `bunx github:gunter1020/issue-map`
14
+ * **要畫哪個 repo**:從 cwd 的 git 推斷,不必填——在那個 repo 裡跑 `bunx issue-map@latest`
15
15
  * 就好。要指定別的 repo 設 `GH_REPO`。標籤字彙與 parent 的慣例都能用環境變數調,見底下的
16
16
  * `CONFIG`,整份對照表在 README。
17
17
  *