create-jant 0.3.17 → 0.3.19

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/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.17";
12
+ var CORE_VERSION = "0.3.19";
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);
@@ -116,13 +116,14 @@ async function copyTemplate(config) {
116
116
  if (pkg.dependencies?.["@jant/core"] === "workspace:*") {
117
117
  pkg.dependencies["@jant/core"] = `^${CORE_VERSION}`;
118
118
  }
119
+ delete pkg.scripts["dev:debug"];
119
120
  if (packageManager !== "pnpm") {
120
121
  delete pkg.packageManager;
121
122
  if (pkg.scripts) {
122
123
  for (const [key, value] of Object.entries(pkg.scripts)) {
123
124
  if (typeof value === "string") {
124
125
  pkg.scripts[key] = value.replace(
125
- /pnpm (\S+)/g,
126
+ /pnpm run (\S+)/g,
126
127
  (_, script) => formatRunCmd(packageManager, script)
127
128
  );
128
129
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-jant",
3
- "version": "0.3.17",
3
+ "version": "0.3.19",
4
4
  "description": "Create a new Jant project",
5
5
  "type": "module",
6
6
  "bin": {
@@ -10,7 +10,25 @@ Deploy to Cloudflare instantly — no local setup required:
10
10
 
11
11
  [![Deploy to Cloudflare](https://deploy.workers.cloudflare.com/button)](https://deploy.workers.cloudflare.com/?url=https://github.com/jant-me/jant-starter)
12
12
 
13
- Your site will be live with automatic CI/CD. To develop locally:
13
+ #### Deploy form fields
14
+
15
+ | Field | What to do |
16
+ | -------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
17
+ | **Git account** | Select your GitHub account. A new repo will be created for you. |
18
+ | **D1 database** | Keep "Create new". The default name is fine. |
19
+ | **Database location hint** | Pick a region close to you (optional, Cloudflare auto-selects). |
20
+ | **R2 bucket** | Keep "Create new". The default name is fine. Used for media uploads. |
21
+ | **AUTH_SECRET** | Used for login session encryption. Keep the pre-filled value or generate your own with `openssl rand -base64 32`. |
22
+ | **SITE_URL** | Change this to your production URL (e.g. `https://my-blog.example.com`). If you don't have a custom domain yet, leave it empty — you can set it later in the Cloudflare dashboard after you know your `*.workers.dev` URL. |
23
+
24
+ #### After deploy
25
+
26
+ 1. Visit your site at the URL shown in the Cloudflare dashboard (e.g. `https://<project>.<account>.workers.dev`)
27
+ 2. Go to `/dash` to set up your admin account
28
+ 3. If you set `SITE_URL` to a custom domain, add it in: Cloudflare dashboard → Workers & Pages → your worker → Settings → Domains & Routes → Add Custom Domain
29
+ 4. If you left `SITE_URL` empty, set it to your `*.workers.dev` URL: Cloudflare dashboard → Workers & Pages → your worker → Settings → Variables and Secrets
30
+
31
+ #### Develop locally
14
32
 
15
33
  ```bash
16
34
  # Clone the repo that was created for you
@@ -191,9 +191,9 @@ export default defineConfig({
191
191
  },
192
192
  },
193
193
 
194
+ // @create-jant: @remove-start
194
195
  resolve: {
195
196
  alias: {
196
- // @create-jant: @remove-start
197
197
  // Monorepo development aliases
198
198
  // - @lingui/react/macro: Prevents Vite dependency scan error. Source code imports
199
199
  // from @lingui/react/macro (for SWC plugin), but we use Hono JSX. SWC rewrites
@@ -206,7 +206,7 @@ export default defineConfig({
206
206
  "../../packages/core/src/i18n/index.ts",
207
207
  ),
208
208
  "@jant/core": resolve(__dirname, "../../packages/core/src"),
209
- // @create-jant: @remove-end
210
209
  },
211
210
  },
211
+ // @create-jant: @remove-end
212
212
  });
@@ -17,8 +17,8 @@ port = 9019
17
17
  # See docs/configuration.md for full details
18
18
 
19
19
  [vars]
20
- # Required: Your site's public URL
21
- SITE_URL = "http://localhost:9019"
20
+ # Required: Your site's public URL (e.g. https://my-blog.example.com)
21
+ SITE_URL = ""
22
22
 
23
23
  # Optional: Site configuration
24
24
  # These can be overridden in dashboard settings (/dash/settings)