@inkdropapp/theme-dev-helpers 0.3.2 → 0.3.4

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
@@ -36,3 +36,12 @@ If your theme package name doesn't include 'dark' but it is a dark mode:
36
36
  ```sh
37
37
  generate-palette -a dark
38
38
  ```
39
+
40
+ ## Run dev server
41
+
42
+ It provides a simple UI to preview your theme with hot-reloading.
43
+
44
+ ```sh
45
+ dev-server
46
+ ```
47
+
package/bin/dev-server ADDED
@@ -0,0 +1,5 @@
1
+ #!/usr/bin/env bash
2
+
3
+ SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
4
+
5
+ bunx --bun vite "$SCRIPT_DIR/.."
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inkdropapp/theme-dev-helpers",
3
- "version": "0.3.2",
3
+ "version": "0.3.4",
4
4
  "type": "module",
5
5
  "description": "A helper module for creating themes for Inkdrop",
6
6
  "keywords": [
@@ -8,7 +8,6 @@
8
8
  "markdown"
9
9
  ],
10
10
  "scripts": {
11
- "dev-server": "bunx --bun vite",
12
11
  "test": "echo \"Error: no test specified\" && exit 1"
13
12
  },
14
13
  "repository": {
@@ -18,7 +17,8 @@
18
17
  "author": "Takuya Matsuyama<t@inkdrop.app>",
19
18
  "license": "MIT",
20
19
  "bin": {
21
- "generate-palette": "./bin/generate-palette"
20
+ "generate-palette": "./bin/generate-palette",
21
+ "dev-server": "./bin/dev-server"
22
22
  },
23
23
  "dependencies": {
24
24
  "@inkdropapp/base-ui-theme": "^0.3.1",