create-jant 0.3.13 → 0.3.14

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
@@ -73,7 +73,7 @@ my-site/
73
73
  ```bash
74
74
  pnpm dev # Start dev server (http://localhost:9019)
75
75
  pnpm build # Build for production
76
- pnpm cf:deploy # Build + deploy to Cloudflare Workers
76
+ pnpm run deploy # Build + deploy to Cloudflare Workers
77
77
  pnpm typecheck # Run TypeScript checks
78
78
  pnpm lint # Run ESLint
79
79
  pnpm format # Format code with Prettier
package/dist/index.js CHANGED
@@ -9,7 +9,7 @@ import path from "path";
9
9
  import { fileURLToPath } from "url";
10
10
  var __filename = fileURLToPath(import.meta.url);
11
11
  var __dirname = path.dirname(__filename);
12
- var CORE_VERSION = "0.3.13";
12
+ var CORE_VERSION = "0.3.14";
13
13
  var TEMPLATE_DIR = fs.existsSync(path.resolve(__dirname, "../template")) ? path.resolve(__dirname, "../template") : path.resolve(__dirname, "../../../templates/jant-site");
14
14
  function isValidProjectName(name) {
15
15
  return /^[a-z0-9]([a-z0-9-]*[a-z0-9])?$/.test(name);
@@ -91,6 +91,7 @@ async function copyTemplate(config) {
91
91
  if (basename === "reset-local.sql") return false;
92
92
  if (basename === "seed-local.sql") return false;
93
93
  if (basename === "export-demo.mjs") return false;
94
+ if (basename === "export-seed.mjs") return false;
94
95
  return true;
95
96
  }
96
97
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-jant",
3
- "version": "0.3.13",
3
+ "version": "0.3.14",
4
4
  "description": "Create a new Jant project",
5
5
  "type": "module",
6
6
  "bin": {
@@ -2,7 +2,7 @@
2
2
 
3
3
  A personal website/blog powered by [Jant](https://github.com/jant-me/jant).
4
4
 
5
- ## Getting Started
5
+ ## Local Development
6
6
 
7
7
  ```bash
8
8
  pnpm dev
@@ -38,7 +38,7 @@ Edit `wrangler.toml`:
38
38
 
39
39
  > R2 bucket is automatically created on first deploy — no manual setup needed.
40
40
  >
41
- > **Note:** Changing `database_id` resets your local development database (local data is stored per database ID). This is why we recommend setting up deployment before starting local development.
41
+ > **Note:** Changing `database_id` resets your local development database (local data is stored per database ID). If you've already started local development, you'll need to go through the setup wizard again to create your admin account.
42
42
 
43
43
  ### 4. Set Production Secrets
44
44
 
@@ -62,7 +62,7 @@ wrangler secret put AUTH_SECRET
62
62
  pnpm db:migrate:remote
63
63
 
64
64
  # Build and deploy
65
- pnpm cf:deploy
65
+ pnpm run deploy
66
66
  ```
67
67
 
68
68
  Your site is now live at `https://<your-project>.<your-subdomain>.workers.dev`!
@@ -154,7 +154,7 @@ jobs:
154
154
  | ------------------------ | ---------------------------------- |
155
155
  | `pnpm dev` | Start development server |
156
156
  | `pnpm build` | Build for production |
157
- | `pnpm cf:deploy` | Build and deploy to Cloudflare |
157
+ | `pnpm run deploy` | Build and deploy to Cloudflare |
158
158
  | `pnpm preview` | Preview production build |
159
159
  | `pnpm typecheck` | Run TypeScript checks |
160
160
  | `pnpm db:migrate:remote` | Apply database migrations (remote) |
@@ -235,8 +235,8 @@ export default createApp({
235
235
  ## Updating
236
236
 
237
237
  ```bash
238
- # Update @jant/core
239
- pnpm update @jant/core
238
+ # Update @jant/core to latest version
239
+ pnpm add @jant/core@latest
240
240
 
241
241
  # Start dev server (auto-applies migrations locally)
242
242
  pnpm dev
@@ -245,10 +245,12 @@ pnpm dev
245
245
  pnpm db:migrate:remote
246
246
 
247
247
  # Deploy
248
- pnpm cf:deploy
248
+ pnpm run deploy
249
249
  ```
250
250
 
251
251
  > New versions of `@jant/core` may include database migrations. Always run `pnpm db:migrate:remote` before deploying after an update. Check the [release notes](https://github.com/jant-me/jant/releases) for any breaking changes.
252
+ >
253
+ > **Dev dependencies** (vite, wrangler, tailwindcss, etc.) may also need updating. Compare your `devDependencies` with the [latest template](https://github.com/jant-me/jant/blob/main/templates/jant-site/package.json) and update if needed.
252
254
 
253
255
  ## Documentation
254
256
 
@@ -8,7 +8,7 @@
8
8
  "dev": "pnpm db:migrate:local && vite dev",
9
9
  "dev:debug": "pnpm db:migrate:local && vite dev --port 19019",
10
10
  "build": "vite build",
11
- "cf:deploy": "pnpm build && wrangler deploy",
11
+ "deploy": "pnpm build && wrangler deploy",
12
12
  "preview": "vite preview",
13
13
  "typecheck": "tsc --noEmit",
14
14
  "db:migrate:local": "yes | wrangler d1 migrations apply DB --local",
@@ -82,7 +82,7 @@ cd my-blog
82
82
  pnpm dev
83
83
 
84
84
  # Deploy to Cloudflare
85
- pnpm cf:deploy
85
+ pnpm run deploy
86
86
  ```
87
87
 
88
88
  ## Documentation
@@ -147,7 +147,7 @@ cd my-blog
147
147
  pnpm dev
148
148
 
149
149
  # Deploy to Cloudflare
150
- pnpm cf:deploy
150
+ pnpm run deploy
151
151
  </code></pre>
152
152
  <h2>Documentation</h2>
153
153
  <ul>