create-wervt 0.2.11 → 0.2.12

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 CHANGED
@@ -1,3 +1,14 @@
1
1
  # create-wervt
2
2
 
3
- `npm create wervt` will scaffold a new wervt app. Work in progress, nothing usable yet.
3
+ Scaffolds a [wervt](https://wervt.app) app: Nuxt with `@wervt/nuxt`, Drizzle, valibot and Vite+,
4
+ a todo example, an `AGENTS.md` for your agent and a GitHub Actions workflow that deploys on push.
5
+
6
+ ```bash
7
+ vp create wervt my-app # or: pnpm create wervt my-app
8
+ cd my-app
9
+ vp exec wervt deploy
10
+ ```
11
+
12
+ `--empty` leaves out the todo example. Sign in first with
13
+ `vpx @wervt/cli login --url <control plane URL>`. See the
14
+ [quickstart](https://wervt.app/getting-started/quickstart).
package/index.js CHANGED
@@ -173,9 +173,10 @@ const main = defineCommand({
173
173
  [
174
174
  cd && `cd ${cd}`,
175
175
  !args.install && 'pnpm install',
176
- 'pnpm dev',
177
176
  monorepo && `pnpm app:deploy ${name} # from the repo root`,
178
- !monorepo && 'pnpm exec wervt deploy # or from CI: .github/workflows/deploy.yml',
177
+ !monorepo && 'pnpm exec wervt deploy # or push: .github/workflows/deploy.yml',
178
+ // The local stack is optional, so the dev server comes second: a deploy is the real test.
179
+ 'pnpm dev # optional; the database needs the local wervt stack',
179
180
  ]
180
181
  .filter(Boolean)
181
182
  .join('\n'),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-wervt",
3
- "version": "0.2.11",
3
+ "version": "0.2.12",
4
4
  "description": "Create a new wervt app: Nuxt 5, Postgres with Drizzle, live data with Electric.",
5
5
  "homepage": "https://wervt.app",
6
6
  "license": "MIT",
@@ -302,7 +302,9 @@ Queries are LogsQL. Logs may contain user data: quote only what's needed.
302
302
 
303
303
  ## Commands
304
304
 
305
- - `pnpm dev`: dev server against the local wervt stack (`docker compose up -d` in the wervt repo).
305
+ - `pnpm dev`: dev server. Pages and API routes work on their own; the database, live data and
306
+ files need the local wervt stack (`docker compose up -d` in the wervt repo), which is optional.
307
+ Without it, check database work on the deployed app.
306
308
  - `pnpm db:generate`: generate a migration from the schema.
307
309
  - `pnpm exec vp check --fix`: format, lint and type check. Run it before finishing.
308
310
  - Deploys: pushing to `main` deploys through `.github/workflows/deploy.yml`.
@@ -9,14 +9,14 @@
9
9
  "postinstall": "nuxt prepare"
10
10
  },
11
11
  "dependencies": {
12
- "@wervt/nuxt": "^0.3.0",
12
+ "@wervt/nuxt": "^0.3.1",
13
13
  "drizzle-orm": "1.0.0-rc.4",
14
14
  "nuxt": "npm:nuxt-nightly@5x",
15
15
  "valibot": "^1.5.0",
16
16
  "vue": "^3.5.43"
17
17
  },
18
18
  "devDependencies": {
19
- "@wervt/cli": "^0.2.11",
19
+ "@wervt/cli": "^0.2.12",
20
20
  "drizzle-kit": "1.0.0-rc.4",
21
21
  "vite-plus": "^1.0.0"
22
22
  }