@emeryld/create-rrroutes 0.1.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 +33 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1524 -0
- package/dist/index.js.map +1 -0
- package/package.json +23 -0
package/README.md
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# @emeryld/create-rrroutes
|
|
2
|
+
|
|
3
|
+
Tiny CLI that scaffolds a RRRoutes monorepo (contract + backend + frontend).
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npx @emeryld/create-rrroutes
|
|
9
|
+
# or
|
|
10
|
+
pnpm dlx @emeryld/create-rrroutes
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
Prompts:
|
|
14
|
+
|
|
15
|
+
- Project name + target directory
|
|
16
|
+
- Package scope for the generated workspaces
|
|
17
|
+
- What to generate (contract only, server only, client only, or everything)
|
|
18
|
+
- If client is selected: React (Vite) or React Native (Expo)
|
|
19
|
+
|
|
20
|
+
Outputs:
|
|
21
|
+
|
|
22
|
+
- `packages/contract` with a starter registry + socket contracts
|
|
23
|
+
- `packages/server` with Express, RRRoutes server bindings, Prisma/Postgres setup (schema + client), socket health handlers, Dockerfile, and `.env`
|
|
24
|
+
- `packages/client` (React or React Native) with React Query, socket provider, health page, and `.env`
|
|
25
|
+
- Workspace-level `package.json`, `pnpm-workspace.yaml`, `tsconfig.base.json`, `.gitignore`
|
|
26
|
+
|
|
27
|
+
After generation, install deps (`npm install`) and use the workspace scripts:
|
|
28
|
+
|
|
29
|
+
- `npm run dev:server` – start the API
|
|
30
|
+
- `npm run dev:client` – start the web or native client
|
|
31
|
+
- `npm run prisma:generate --workspace @<scope>/server` – generate Prisma client
|
|
32
|
+
- `npm run prisma:migrate --workspace @<scope>/server` – run the initial migration against your Postgres instance
|
|
33
|
+
- `npm run build --workspaces` – build all packages
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
#!/usr/bin/env node
|