@shunyasasaki/mkserve 0.1.1 → 0.1.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.
Files changed (3) hide show
  1. package/README.md +14 -28
  2. package/dist/cli.mjs +1 -1
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -2,6 +2,7 @@
2
2
 
3
3
  ![Node.js](https://img.shields.io/badge/Node.js-5FA04E?logo=nodedotjs&labelColor=gray&logoColor=white)
4
4
  ![Vite](https://img.shields.io/badge/Vite-9135FF?logo=vite&labelColor=gray&logoColor=white)
5
+ ![npm](https://img.shields.io/npm/v/@shunyasasaki/mkserve)
5
6
  ![LICENSE](https://img.shields.io/github/license/shunya-sasaki/mkserve)
6
7
 
7
8
  Serve a folder of Markdown files as a live-reloading preview site: a file tree
@@ -9,46 +10,33 @@ on the left, the rendered document on the right, refreshed every time you save.
9
10
 
10
11
  ## ⚡ Quick Start
11
12
 
12
- 1. Point the `@shunya-sasaki` scope at GitHub Packages by adding these lines to
13
- `~/.npmrc` (once; details in Setup below):
14
-
15
- ```ini
16
- @shunya-sasaki:registry=https://npm.pkg.github.com
17
- //npm.pkg.github.com/:_authToken=${GH_TOKEN}
18
- ```
19
-
20
- 2. Install and run:
21
-
22
- ```sh
23
- pnpm add -g @shunya-sasaki/mkserve
24
- mkserve --open # serve the current directory and open the browser
25
- ```
13
+ ```sh
14
+ pnpm add -g @shunyasasaki/mkserve
15
+ mkserve --open # serve the current directory and open the browser
16
+ ```
26
17
 
27
18
  Open any `.md` file in your editor, save it, and the page updates in place.
28
19
 
29
20
  ## 📦 Requirements
30
21
 
31
22
  - Node.js 20.19 or later
32
- - A GitHub token with the `read:packages` scope (GitHub Packages requires
33
- authentication even for public packages)
34
23
 
35
24
  ## ⚙️ Setup
36
25
 
37
- `mkserve` is published to GitHub Packages, so npm-compatible clients need to
38
- know where the `@shunya-sasaki` scope lives. Add these lines to `~/.npmrc`:
26
+ `mkserve` is published on [npm](https://www.npmjs.com/package/@shunyasasaki/mkserve).
27
+ Install it globally with your preferred tool:
39
28
 
40
- ```ini
41
- @shunya-sasaki:registry=https://npm.pkg.github.com
42
- //npm.pkg.github.com/:_authToken=${GH_TOKEN}
29
+ ```sh
30
+ pnpm add -g @shunyasasaki/mkserve # pnpm
31
+ npm install -g @shunyasasaki/mkserve # npm
32
+ mise use -g npm:@shunyasasaki/mkserve # mise
43
33
  ```
44
34
 
45
- `${GH_TOKEN}` is read from your environment; you can also paste the token
46
- directly. Then install with your preferred tool:
35
+ Or run it once without installing:
47
36
 
48
37
  ```sh
49
- pnpm add -g @shunya-sasaki/mkserve # pnpm
50
- mise use -g npm:@shunya-sasaki/mkserve@0.1.0 # mise
51
- pnpm dlx @shunya-sasaki/mkserve # run once without installing
38
+ pnpm dlx @shunyasasaki/mkserve
39
+ npx @shunyasasaki/mkserve
52
40
  ```
53
41
 
54
42
  ## 🚀 Usage
@@ -106,8 +94,6 @@ Stop the server with `Ctrl+C`.
106
94
  the sidebar edge to resize it.
107
95
  - Light and dark themes follow your system setting.
108
96
 
109
- ## 📚 Reference
110
-
111
97
  ## 📄 License
112
98
 
113
99
  MIT
package/dist/cli.mjs CHANGED
@@ -28,7 +28,7 @@ import { visit } from "unist-util-visit";
28
28
  import { watch } from "chokidar";
29
29
  import ignore from "ignore";
30
30
  //#region package.json
31
- var version = "0.1.1";
31
+ var version = "0.1.2";
32
32
  var description = "Serve a workspace of Markdown files with a live-reloading preview.";
33
33
  //#endregion
34
34
  //#region src/shared/paths.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shunyasasaki/mkserve",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "Serve a workspace of Markdown files with a live-reloading preview.",
5
5
  "keywords": [
6
6
  "cli",