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 +4 -4
- package/package.json +1 -1
- package/scripts/issue-map-serve.ts +1 -1
- package/scripts/issue-map.ts +1 -1
package/README.md
CHANGED
|
@@ -9,10 +9,10 @@
|
|
|
9
9
|
在**要看的那個 repo** 裡跑:
|
|
10
10
|
|
|
11
11
|
```bash
|
|
12
|
-
bunx
|
|
12
|
+
bunx issue-map@latest
|
|
13
13
|
```
|
|
14
14
|
|
|
15
|
-
|
|
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
|
|
25
|
-
bunx -p
|
|
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
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* 最新狀態。資料抓取與渲染都在 `issue-map.ts`,這支只負責包成完整 HTML 文件並回應。
|
|
5
5
|
*
|
|
6
6
|
* 這是 package.json 的預設 bin,所以在**要看的那個 repo** 裡直接跑就會畫那個 repo:
|
|
7
|
-
* bunx
|
|
7
|
+
* bunx issue-map@latest
|
|
8
8
|
*
|
|
9
9
|
* 起來之後直接開瀏覽器。不要的話設 `ISSUE_MAP_OPEN=0`——`bun --watch` 的開發模式就是這樣關掉
|
|
10
10
|
* 的,否則每存一次檔就多一個分頁。
|
package/scripts/issue-map.ts
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
* 帶進快照的 issue:所有 open issue,加上仍被 open issue 牽著的 closed issue。後者畫成「已完成」
|
|
12
12
|
* 的節點讓進度看得見,沒人牽著之後自然消失。
|
|
13
13
|
*
|
|
14
|
-
* **要畫哪個 repo**:從 cwd 的 git 推斷,不必填——在那個 repo 裡跑 `bunx
|
|
14
|
+
* **要畫哪個 repo**:從 cwd 的 git 推斷,不必填——在那個 repo 裡跑 `bunx issue-map@latest`
|
|
15
15
|
* 就好。要指定別的 repo 設 `GH_REPO`。標籤字彙與 parent 的慣例都能用環境變數調,見底下的
|
|
16
16
|
* `CONFIG`,整份對照表在 README。
|
|
17
17
|
*
|