create-recur-tw 0.1.0 → 0.2.0

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 +1 -1
  2. package/index.js +6 -2
  3. package/package.json +9 -2
package/README.md CHANGED
@@ -17,7 +17,7 @@ npm create recur-tw@latest my-app -- --template saas --yes
17
17
 
18
18
  | Option | Description |
19
19
  |--------|-------------|
20
- | `-t, --template <name>` | Template to use (`saas`) |
20
+ | `-t, --template <name>` | Template to use (`saas`, `newsletter`) |
21
21
  | `--pm <manager>` | Package manager for install (`pnpm` / `npm` / `yarn` / `bun`) |
22
22
  | `--no-install` | Skip installing dependencies |
23
23
  | `--no-git` | Skip `git init` |
package/index.js CHANGED
@@ -13,7 +13,7 @@ import { downloadTemplate } from 'giget'
13
13
 
14
14
  // Each CLI release pins the templates repo to a tag so CLI and template
15
15
  // contents can't drift apart. Override with --ref (e.g. --ref main).
16
- const TEMPLATES_REF = 'v0.1.0'
16
+ const TEMPLATES_REF = 'v0.2.0'
17
17
  const TEMPLATES_REPO = 'recur-tw/templates'
18
18
 
19
19
  const TEMPLATES = {
@@ -21,7 +21,11 @@ const TEMPLATES = {
21
21
  label: 'SaaS 訂閱制服務',
22
22
  hint: 'Next.js + 多方案訂閱 + entitlements 權限閘門 + customer portal',
23
23
  },
24
- // Coming soon: newsletter, community, saas-tanstack, backend-only
24
+ newsletter: {
25
+ label: '付費電子報',
26
+ hint: 'Tiptap 編輯器 + R2 圖片上傳 + 訂閱牆,內容存 git 免資料庫',
27
+ },
28
+ // Coming soon: community, saas-tanstack, backend-only
25
29
  }
26
30
 
27
31
  const { version } = JSON.parse(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-recur-tw",
3
- "version": "0.1.0",
3
+ "version": "0.2.0",
4
4
  "description": "Scaffold a Recur-integrated app from official templates.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -9,7 +9,14 @@
9
9
  "files": [
10
10
  "index.js"
11
11
  ],
12
- "keywords": ["recur", "create", "scaffold", "template", "subscription", "payments"],
12
+ "keywords": [
13
+ "recur",
14
+ "create",
15
+ "scaffold",
16
+ "template",
17
+ "subscription",
18
+ "payments"
19
+ ],
13
20
  "homepage": "https://github.com/recur-tw/templates",
14
21
  "repository": {
15
22
  "type": "git",