@vaiftech/cli 1.3.2 → 1.5.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 +17 -16
- package/dist/{chunk-7XA2HKEQ.js → chunk-JRB5YVG7.js} +1592 -26
- package/dist/cli.cjs +1626 -60
- package/dist/cli.js +2 -2
- package/dist/index.cjs +1605 -39
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
[](https://www.npmjs.com/package/@vaiftech/cli)
|
|
4
4
|
[](https://opensource.org/licenses/MIT)
|
|
5
5
|
|
|
6
|
-
Command-line tools for [VAIF Studio](https://vaif.studio) — scaffold full projects from templates, manage schemas, deploy functions, generate TypeScript types, and more.
|
|
6
|
+
Command-line tools for [VAIF Studio](https://vaif.studio) — scaffold full projects from templates with feature selection, browser-based authentication, manage schemas, deploy functions, generate TypeScript types, and more.
|
|
7
7
|
|
|
8
8
|
## Installation
|
|
9
9
|
|
|
@@ -114,28 +114,29 @@ vaif init --template nextjs-fullstack
|
|
|
114
114
|
| `storage` | File upload/download, signed URL helpers |
|
|
115
115
|
| `functions` | Serverless function invocation utilities |
|
|
116
116
|
|
|
117
|
-
Each template has sensible defaults (e.g. `nextjs-fullstack` defaults to `database` + `auth`), but you can customize freely. Feature-specific files are only generated when the feature is selected — for example, selecting `auth` adds login/signup pages, selecting `storage` adds upload hooks.
|
|
117
|
+
Each template has sensible defaults (e.g. `nextjs-fullstack` defaults to `database` + `auth`), but you can customize freely. Feature-specific files are only generated when the feature is selected — for example, selecting `auth` adds login/signup pages and the `@vaiftech/auth` dependency, selecting `storage` adds upload hooks.
|
|
118
|
+
|
|
119
|
+
If a `package.json` already exists in your directory, the CLI merges the template's dependencies into it instead of overwriting it.
|
|
118
120
|
|
|
119
121
|
### What Templates Generate
|
|
120
122
|
|
|
121
|
-
Templates generate **complete project scaffolding
|
|
123
|
+
Templates generate **complete project scaffolding** with everything you need to start building:
|
|
122
124
|
|
|
123
|
-
**
|
|
124
|
-
- `
|
|
125
|
-
- `
|
|
125
|
+
**Every template includes:**
|
|
126
|
+
- `README.md` — Step-by-step setup guide (credentials, login, migrations, functions, running)
|
|
127
|
+
- `package.json` (or equivalent) — All dependencies pre-configured
|
|
126
128
|
- `vaif.config.json` — VAIF project configuration
|
|
127
|
-
- `src/lib/vaif.ts` — Client initialization
|
|
128
129
|
- `.env.example` — Environment variables template
|
|
129
|
-
- `app/` or `src/` — Full app structure (layout, pages, components)
|
|
130
|
-
- Feature-conditional files (auth pages, storage hooks, realtime hooks)
|
|
131
|
-
- Prints next steps after scaffolding
|
|
132
|
-
|
|
133
|
-
**Native/Backend templates** (ios-swift-app, flutter-app, python-fastapi-backend, go-backend-api):
|
|
134
|
-
- `vaif.config.json` — Project configuration
|
|
135
|
-
- Platform-specific project files (Package.swift, pubspec.yaml, requirements.txt, go.mod)
|
|
136
130
|
- Client initialization and integration files
|
|
137
|
-
|
|
138
|
-
|
|
131
|
+
|
|
132
|
+
**With features selected, templates also include:**
|
|
133
|
+
- **database**: Drizzle migration (`drizzle/0001_initial.sql`), schema file, and config
|
|
134
|
+
- **auth**: Login/signup pages, auth guard component
|
|
135
|
+
- **realtime**: Subscription hooks with live data
|
|
136
|
+
- **storage**: File upload/download hooks
|
|
137
|
+
- **functions**: Example serverless function (`functions/hello.ts`) ready to deploy
|
|
138
|
+
|
|
139
|
+
**Native/Backend templates** include platform-specific equivalents (Python models, Go structs, Dart classes, Swift managers).
|
|
139
140
|
|
|
140
141
|
## Commands
|
|
141
142
|
|