@flaredev/cli 0.1.1 → 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.
- package/README.md +47 -47
- package/dist/index.js +373 -169
- package/package.json +3 -2
- package/templates/app/app/api/openapi.json/route.ts +23 -0
- package/templates/app/app/api/reference/route.ts +36 -0
- package/templates/app/app/dashboard/account/page.tsx +38 -0
- package/templates/app/app/dashboard/layout.tsx +39 -0
- package/templates/app/app/dashboard/page.tsx +42 -9
- package/templates/app/app/forgot-password/page.tsx +22 -0
- package/templates/app/app/globals.css +109 -4
- package/templates/app/app/layout.tsx +28 -26
- package/templates/app/app/page.tsx +126 -13
- package/templates/app/app/reset-password/page.tsx +31 -0
- package/templates/app/app/sign-in/page.tsx +49 -33
- package/templates/app/app/sign-up/page.tsx +42 -23
- package/templates/app/app/two-factor/page.tsx +25 -0
- package/templates/app/components/account/security-settings.tsx +525 -0
- package/templates/app/components/admin/fields/country-field.tsx +152 -0
- package/templates/app/components/admin/fields/field-widget.tsx +186 -128
- package/templates/app/components/admin/fields/multi-select-field.tsx +46 -0
- package/templates/app/components/admin/fields/phone-field.tsx +86 -0
- package/templates/app/components/admin/resource-nav.tsx +120 -109
- package/templates/app/components/admin/resource-table.tsx +31 -1
- package/templates/app/components/auth/auth-shell.tsx +284 -0
- package/templates/app/components/auth/password-forms.tsx +79 -0
- package/templates/app/components/auth/provider-icons.tsx +39 -0
- package/templates/app/components/auth/sign-in-flow.tsx +315 -0
- package/templates/app/components/auth/sign-up-form.tsx +101 -0
- package/templates/app/components/auth/social-buttons.tsx +56 -0
- package/templates/app/components/auth/two-factor-form.tsx +124 -0
- package/templates/app/components/auth/ui.tsx +96 -0
- package/templates/app/components/dashboard/dashboard-nav.tsx +35 -0
- package/templates/app/components/marketing/product-preview.tsx +70 -0
- package/templates/app/components/marketing/site-header.tsx +39 -0
- package/templates/app/components/sign-out-button.tsx +1 -1
- package/templates/app/components/ui/checkbox.tsx +25 -0
- package/templates/app/components/ui/radio-group.tsx +29 -0
- package/templates/app/db/auth-schema.ts +167 -118
- package/templates/app/lib/admin-nav.ts +1 -1
- package/templates/app/lib/api-docs.ts +16 -0
- package/templates/app/lib/auth-client.ts +16 -1
- package/templates/app/lib/auth-config.ts +33 -0
- package/templates/app/lib/auth-emails.ts +94 -0
- package/templates/app/lib/auth.ts +81 -6
- package/templates/app/lib/site.ts +47 -0
- package/templates/app/lib/theme.ts +79 -0
- package/templates/app/migrations/0000_init.sql +32 -1
- package/templates/app/migrations/meta/0000_snapshot.json +215 -1
- package/templates/app/migrations/meta/_journal.json +1 -1
- package/templates/app/vite.config.ts +5 -3
- package/templates/app/components/auth-form.tsx +0 -120
package/README.md
CHANGED
|
@@ -1,47 +1,47 @@
|
|
|
1
|
-
# @flaredev/cli
|
|
2
|
-
|
|
3
|
-
The `flare` command for [Flare](https://flare-docs.codetotech.com), a
|
|
4
|
-
batteries-included fullstack framework on Cloudflare Workers (vinext, D1,
|
|
5
|
-
Drizzle, Better Auth, R2). It scaffolds apps, generates resources with an admin
|
|
6
|
-
dashboard and REST API, runs migrations and deploys.
|
|
7
|
-
|
|
8
|
-
## Install
|
|
9
|
-
|
|
10
|
-
```sh
|
|
11
|
-
npm install -g @flaredev/cli # or: pnpm add -g @flaredev/cli
|
|
12
|
-
```
|
|
13
|
-
|
|
14
|
-
Or with the install scripts (they check for Node.js 22+ and use npm or pnpm):
|
|
15
|
-
|
|
16
|
-
```sh
|
|
17
|
-
# macOS / Linux
|
|
18
|
-
curl -fsSL https://flare-docs.codetotech.com/install.sh | bash
|
|
19
|
-
```
|
|
20
|
-
|
|
21
|
-
```powershell
|
|
22
|
-
# Windows PowerShell
|
|
23
|
-
irm https://flare-docs.codetotech.com/install.ps1 | iex
|
|
24
|
-
```
|
|
25
|
-
|
|
26
|
-
Or skip the install entirely:
|
|
27
|
-
|
|
28
|
-
```sh
|
|
29
|
-
npm create flare-framework@latest my-app
|
|
30
|
-
npx @flaredev/cli create my-app
|
|
31
|
-
```
|
|
32
|
-
|
|
33
|
-
## Use
|
|
34
|
-
|
|
35
|
-
```sh
|
|
36
|
-
flare create shop
|
|
37
|
-
cd shop
|
|
38
|
-
flare gen resource Product --fields
|
|
39
|
-
flare migrate
|
|
40
|
-
flare dev
|
|
41
|
-
flare deploy
|
|
42
|
-
```
|
|
43
|
-
|
|
44
|
-
Run `flare --help` for every command, or read the
|
|
45
|
-
[CLI reference](https://flare-docs.codetotech.com/reference/cli/).
|
|
46
|
-
|
|
47
|
-
Requires Node.js 22 or later.
|
|
1
|
+
# @flaredev/cli
|
|
2
|
+
|
|
3
|
+
The `flare` command for [Flare](https://flare-docs.codetotech.com), a
|
|
4
|
+
batteries-included fullstack framework on Cloudflare Workers (vinext, D1,
|
|
5
|
+
Drizzle, Better Auth, R2). It scaffolds apps, generates resources with an admin
|
|
6
|
+
dashboard and REST API, runs migrations and deploys.
|
|
7
|
+
|
|
8
|
+
## Install
|
|
9
|
+
|
|
10
|
+
```sh
|
|
11
|
+
npm install -g @flaredev/cli # or: pnpm add -g @flaredev/cli
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
Or with the install scripts (they check for Node.js 22+ and use npm or pnpm):
|
|
15
|
+
|
|
16
|
+
```sh
|
|
17
|
+
# macOS / Linux
|
|
18
|
+
curl -fsSL https://flare-docs.codetotech.com/install.sh | bash
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
```powershell
|
|
22
|
+
# Windows PowerShell
|
|
23
|
+
irm https://flare-docs.codetotech.com/install.ps1 | iex
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
Or skip the install entirely:
|
|
27
|
+
|
|
28
|
+
```sh
|
|
29
|
+
npm create flare-framework@latest my-app
|
|
30
|
+
npx @flaredev/cli create my-app
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
## Use
|
|
34
|
+
|
|
35
|
+
```sh
|
|
36
|
+
flare create shop
|
|
37
|
+
cd shop
|
|
38
|
+
flare gen resource Product --fields 'name:string, price:int, sku:string!'
|
|
39
|
+
flare migrate
|
|
40
|
+
flare dev
|
|
41
|
+
flare deploy
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
Run `flare --help` for every command, or read the
|
|
45
|
+
[CLI reference](https://flare-docs.codetotech.com/reference/cli/).
|
|
46
|
+
|
|
47
|
+
Requires Node.js 22 or later.
|