create-spark-html-app 0.8.0 → 0.8.1

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
@@ -16,14 +16,14 @@ Then:
16
16
 
17
17
  ```bash
18
18
  cd my-app
19
- npm install
20
- npm run dev
19
+ bun install
20
+ bun run dev
21
21
  ```
22
22
 
23
23
  Run it with no name to be prompted:
24
24
 
25
25
  ```bash
26
- npm create spark-html-app@latest
26
+ bun create spark-html-app
27
27
  ```
28
28
 
29
29
  ## What you get
@@ -44,10 +44,10 @@ Every included feature ships with a live demo component, ready to run.
44
44
  Non-interactive? Pass flags instead of answering prompts:
45
45
 
46
46
  ```bash
47
- npx create-spark-html-app my-app --yes # accept the defaults
48
- npx create-spark-html-app my-app --all # everything on
49
- npx create-spark-html-app my-app --minimal # core only
50
- npx create-spark-html-app my-app --pwa --no-image # per-feature
47
+ bunx create-spark-html-app my-app --yes # accept the defaults
48
+ bunx create-spark-html-app my-app --all # everything on
49
+ bunx create-spark-html-app my-app --minimal # core only
50
+ bunx create-spark-html-app my-app --pwa --no-image # per-feature
51
51
  ```
52
52
 
53
53
  Everything is plain HTML and JavaScript — no compiler, no virtual DOM, no
@@ -61,6 +61,7 @@ virtual DOM, no build step required. Add only what you use.
61
61
  | Package | What it does |
62
62
  |---|---|
63
63
  | [`spark-html`](https://www.npmjs.com/package/spark-html) | The runtime — components, reactivity, stores, forms, scoped styles. 13 kB gzip, 0 deps. |
64
+ | [`spark-html-bun`](https://www.npmjs.com/package/spark-html-bun) | Dev server, bundler & preview on Bun — scoped HMR, no-build dev, post-build pipeline. |
64
65
  | [`spark-html-router`](https://www.npmjs.com/package/spark-html-router) | `<template route>` routing — nested routes/layouts, `route.query`, active links. |
65
66
  | [`spark-html-theme`](https://www.npmjs.com/package/spark-html-theme) | Dark/light/system theming in one line — persisted, no flash. |
66
67
  | [`spark-html-head`](https://www.npmjs.com/package/spark-html-head) | Reactive `<title>`/`<meta>` per route + a `head` store. |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-spark-html-app",
3
- "version": "0.8.0",
3
+ "version": "0.8.1",
4
4
  "description": "Scaffold a spark-html app — dev/build/preview on Bun",
5
5
  "type": "module",
6
6
  "bin": {
@@ -14,8 +14,8 @@ icons + offline app shell). `spark-html-head`, `spark-html-persist`,
14
14
  ## Develop
15
15
 
16
16
  ```bash
17
- npm install
18
- npm run dev # dev server with HMR
17
+ bun install
18
+ bun run dev # dev server with HMR
19
19
  ```
20
20
 
21
21
  In dev mode, `spark-html-devtools` adds a debugging overlay — inspect
@@ -5,7 +5,7 @@
5
5
  <p class="hint">
6
6
  A plain <code>&lt;img&gt;</code> — at build time it becomes a
7
7
  <code>&lt;picture&gt;</code> with webp/avif srcset, width/height, and lazy
8
- loading. Run <code>npm run build</code> and inspect <code>dist/</code>.
8
+ loading. Run <code>bun run build</code> and inspect <code>dist/</code>.
9
9
  </p>
10
10
 
11
11
  <img class="shot" src="/sample.jpg" alt="Sample image — optimized at build time" />