create-pilotprojects-app 0.3.0 → 0.3.2
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 +26 -3
- package/dist/prompts.js +5 -5
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -59,7 +59,7 @@ The CLI is interactive — it asks a few questions then scaffolds, installs depe
|
|
|
59
59
|
| ------------------------------ | -------------------------------------------------------- | ----------------- |
|
|
60
60
|
| Project name | Any lowercase slug | — |
|
|
61
61
|
| Package scope | `@<name>` | `@<project-name>` |
|
|
62
|
-
| Apps to scaffold | Web / Mobile / Both |
|
|
62
|
+
| Apps to scaffold | Web only / Mobile only / Both | Web only |
|
|
63
63
|
| Environments | development / uat / production _(local always included)_ | production |
|
|
64
64
|
| Include design system? | Yes / No | Yes |
|
|
65
65
|
| Include Sentry? | Yes / No | Yes |
|
|
@@ -75,11 +75,19 @@ The CLI is interactive — it asks a few questions then scaffolds, installs depe
|
|
|
75
75
|
```bash
|
|
76
76
|
cd my-project
|
|
77
77
|
|
|
78
|
-
# Copy and fill in
|
|
79
|
-
cp apps/web/.env.
|
|
78
|
+
# Copy local env files and fill in values
|
|
79
|
+
cp apps/web/.env.local.example apps/web/.env.local
|
|
80
80
|
# Add: SUPABASE_URL, SUPABASE_ANON_KEY, SUPABASE_SERVICE_ROLE_KEY,
|
|
81
81
|
# DATABASE_URL, RESEND_API_KEY, SENTRY_DSN
|
|
82
82
|
|
|
83
|
+
# For each additional environment you selected:
|
|
84
|
+
# cp apps/web/.env.development.example apps/web/.env.development
|
|
85
|
+
# cp apps/web/.env.uat.example apps/web/.env.uat
|
|
86
|
+
# cp apps/web/.env.production.example apps/web/.env.production
|
|
87
|
+
|
|
88
|
+
# Mobile (if selected):
|
|
89
|
+
cp apps/mobile/.env.local.example apps/mobile/.env.local
|
|
90
|
+
|
|
83
91
|
# Start local Supabase (requires Supabase CLI)
|
|
84
92
|
supabase start
|
|
85
93
|
|
|
@@ -94,6 +102,21 @@ pnpm dev
|
|
|
94
102
|
|
|
95
103
|
---
|
|
96
104
|
|
|
105
|
+
## Environments
|
|
106
|
+
|
|
107
|
+
`local` is always included. The environments prompt lets you pick additional ones:
|
|
108
|
+
|
|
109
|
+
| Environment | Web env file | Mobile `APP_ENV` | EAS profile |
|
|
110
|
+
| ------------- | ------------------ | ---------------- | ------------------------------------- |
|
|
111
|
+
| `local` | `.env.local` | `local` | — |
|
|
112
|
+
| `development` | `.env.development` | `development` | `development` (dev client, simulator) |
|
|
113
|
+
| `uat` | `.env.uat` | `uat` | `uat` (internal distribution) |
|
|
114
|
+
| `production` | `.env.production` | `production` | `production` (App Store / Play Store) |
|
|
115
|
+
|
|
116
|
+
The mobile `app.config.ts` and `eas.json` are generated to include **only** the environments you selected.
|
|
117
|
+
|
|
118
|
+
---
|
|
119
|
+
|
|
97
120
|
## Tech stack
|
|
98
121
|
|
|
99
122
|
| Layer | Choice |
|
package/dist/prompts.js
CHANGED
|
@@ -25,14 +25,14 @@ export async function runPrompts(projectNameArg) {
|
|
|
25
25
|
return "Scope must start with @";
|
|
26
26
|
},
|
|
27
27
|
}),
|
|
28
|
-
apps: () => p.
|
|
28
|
+
apps: () => p.select({
|
|
29
29
|
message: "Which apps do you want to scaffold?",
|
|
30
30
|
options: [
|
|
31
|
-
{ value: "web", label: "Web", hint: "Next.js 15 + tRPC + Drizzle" },
|
|
32
|
-
{ value: "mobile", label: "Mobile", hint: "Expo SDK 52 + React Native" },
|
|
31
|
+
{ value: ["web"], label: "Web only", hint: "Next.js 15 + tRPC + Drizzle" },
|
|
32
|
+
{ value: ["mobile"], label: "Mobile only", hint: "Expo SDK 52 + React Native" },
|
|
33
|
+
{ value: ["web", "mobile"], label: "Web + Mobile", hint: "Both apps" },
|
|
33
34
|
],
|
|
34
|
-
|
|
35
|
-
required: true,
|
|
35
|
+
initialValue: ["web"],
|
|
36
36
|
}),
|
|
37
37
|
environments: () => p.multiselect({
|
|
38
38
|
message: "Which environments? (local is always included)",
|