@farm.js/create-app 0.1.0-beta.22 → 0.1.0-beta.25
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 +20 -0
- package/bin/create-farm-app.js +1 -0
- package/dist/index.js +2746 -11
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2743 -9
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/templates/auth/farm.config.ts +3 -0
- package/templates/auth/package.json +3 -3
- package/templates/basic/farm.config.ts +3 -0
- package/templates/basic/package.json +2 -2
- package/templates/better-auth/farm.config.ts +3 -0
- package/templates/better-auth/package.json +3 -3
package/README.md
CHANGED
|
@@ -15,4 +15,24 @@ automatically. The command explicitly selects the minimal Basic starter. Use `pn
|
|
|
15
15
|
`pnpm add`; pnpm resolves this initializer command to the published `@farm.js/create-app` package.
|
|
16
16
|
Pass `--skip-install` when you only want to generate the project files.
|
|
17
17
|
|
|
18
|
+
List every starter:
|
|
19
|
+
|
|
20
|
+
```bash
|
|
21
|
+
pnpm create @farm.js/app@beta --list-templates
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
Available templates:
|
|
25
|
+
|
|
26
|
+
- Core: `basic`, `auth`, `better-auth`
|
|
27
|
+
- Auth: `auth0`, `authjs`, `clerk`, `supabase`, `workos`
|
|
28
|
+
- Billing: `autumn`, `polar`, `stripe`
|
|
29
|
+
- Product integrations: `ai`, `jobs-inngest`, `jobs-trigger`, `resend`, `unkey`
|
|
30
|
+
|
|
31
|
+
Integration templates include provider wiring, a local UI feature, `.env.example`, a minimal dark
|
|
32
|
+
home page, and setup documentation. For example:
|
|
33
|
+
|
|
34
|
+
```bash
|
|
35
|
+
pnpm create @farm.js/app@beta stripe-app --template stripe --typescript
|
|
36
|
+
```
|
|
37
|
+
|
|
18
38
|
See the [FARMJS repository](https://github.com/farming-labs/farm.js) for documentation, examples, and support.
|
package/bin/create-farm-app.js
CHANGED
|
@@ -10,6 +10,7 @@ program
|
|
|
10
10
|
.version(version)
|
|
11
11
|
.argument("[project-name]", "Name of the project")
|
|
12
12
|
.option("-t, --template <template>", "Template to use")
|
|
13
|
+
.option("--list-templates", "List all available starter templates")
|
|
13
14
|
.option("--typescript", "Use TypeScript template")
|
|
14
15
|
.option("--skip-install", "Skip installing dependencies")
|
|
15
16
|
.action(async (projectName, options) => {
|