buildx-cli 1.8.22 → 1.8.24
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 +30 -2
- package/dist/README.md +30 -2
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/package.json +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -227,8 +227,9 @@ Modes:
|
|
|
227
227
|
- `product`: tries `POST /product/:product_key/projects`, then falls back to `plain` when product creation is denied (for example non-root auth).
|
|
228
228
|
|
|
229
229
|
Key options:
|
|
230
|
-
-
|
|
231
|
-
- `--
|
|
230
|
+
- `-i, --interactive`: prompt for missing options (recommended for first-time setup)
|
|
231
|
+
- `--project-id <id>`: target project ID (required unless interactive prompt is used)
|
|
232
|
+
- `--name <name>`: project name (required unless interactive prompt is used)
|
|
232
233
|
- `--description <text>`: project description (optional)
|
|
233
234
|
- `--product-key <key>`: enable product mode first, with fallback to plain mode
|
|
234
235
|
- `--app <none|next|expo|react>`: app scaffold target (default `none`)
|
|
@@ -244,6 +245,9 @@ Examples:
|
|
|
244
245
|
# backend only (plain mode)
|
|
245
246
|
npx buildx-cli project:init --project-id hello-world --name "Hello World"
|
|
246
247
|
|
|
248
|
+
# interactive guided mode
|
|
249
|
+
npx buildx-cli project:init --interactive
|
|
250
|
+
|
|
247
251
|
# product mode first, fallback to plain when not allowed
|
|
248
252
|
npx buildx-cli project:init --project-id hello-world --name "Hello World" --product-key approval
|
|
249
253
|
|
|
@@ -254,6 +258,25 @@ npx buildx-cli project:init --project-id hello-world --name "Hello World" --app
|
|
|
254
258
|
npx buildx-cli project:init --project-id hello-world --name "Hello World" --app expo
|
|
255
259
|
```
|
|
256
260
|
|
|
261
|
+
#### `project:add-pack`
|
|
262
|
+
Add Buildx pack dependencies into an existing project package.
|
|
263
|
+
|
|
264
|
+
Key options:
|
|
265
|
+
- `--pack <ui-packs|sdk>`: pack to install
|
|
266
|
+
- `--version <version>`: optional version override
|
|
267
|
+
- `--dir <path>`: target project directory (default current directory)
|
|
268
|
+
- `--manager <bun|pnpm|npm|yarn>`: force package manager
|
|
269
|
+
- `--json`: print machine-readable result
|
|
270
|
+
|
|
271
|
+
Examples:
|
|
272
|
+
```bash
|
|
273
|
+
# add UI packs with default version
|
|
274
|
+
npx buildx-cli project:add-pack --pack ui-packs
|
|
275
|
+
|
|
276
|
+
# add sdk in specific directory with pnpm
|
|
277
|
+
npx buildx-cli project:add-pack --pack sdk --manager pnpm --dir ./my-project
|
|
278
|
+
```
|
|
279
|
+
|
|
257
280
|
Generated auth-aware structure:
|
|
258
281
|
- Next.js scaffold source:
|
|
259
282
|
- `project:init --app next` runs `npx create-next-app@latest` first (TypeScript + App Router)
|
|
@@ -261,6 +284,8 @@ Generated auth-aware structure:
|
|
|
261
284
|
- Next.js template uses route groups for separation:
|
|
262
285
|
- `app/(public)/...` (sign-in/sign-up/forgot-password)
|
|
263
286
|
- `app/(private)/...` (protected dashboard)
|
|
287
|
+
- preserves create-next-app root `app/layout.tsx` (no hard overwrite)
|
|
288
|
+
- starter root `app/page.tsx` includes generic `Dashboard`, `Sign in`, and `Sign up` links with usage description
|
|
264
289
|
- Expo template uses auth-state route split in `App.tsx`:
|
|
265
290
|
- public screen tree for unauthenticated users
|
|
266
291
|
- private screen tree for authenticated users
|
|
@@ -271,12 +296,15 @@ Generated auth-aware structure:
|
|
|
271
296
|
UI package dependency resolution:
|
|
272
297
|
- generated apps depend on package from env `BUILDX_UI_PACKS_PACKAGE`
|
|
273
298
|
- default package name is `buildx-react-ui-packs`
|
|
299
|
+
- default package version is `^1.8.3` (override via `BUILDX_UI_PACKS_VERSION`)
|
|
274
300
|
- set a scoped package before seeding when unscoped npm name is unavailable:
|
|
275
301
|
- `BUILDX_UI_PACKS_PACKAGE=@your-scope/buildx-react-ui-packs npx buildx-cli project:init ...`
|
|
276
302
|
|
|
277
303
|
Notes:
|
|
278
304
|
- Next scaffold requires npm registry connectivity for `create-next-app`.
|
|
279
305
|
- Use `--dry-run` to preview file plan without running scaffold commands.
|
|
306
|
+
- Generated projects are package-manager agnostic (no forced `packageManager` lock in generated `package.json`).
|
|
307
|
+
- Next `app/globals.css` is normalized with Tailwind `@source` to include UI pack classes from `node_modules` (prevents missing utilities like `grid-cols-2` from shared components).
|
|
280
308
|
|
|
281
309
|
### New Project Maintenance
|
|
282
310
|
|
package/dist/README.md
CHANGED
|
@@ -227,8 +227,9 @@ Modes:
|
|
|
227
227
|
- `product`: tries `POST /product/:product_key/projects`, then falls back to `plain` when product creation is denied (for example non-root auth).
|
|
228
228
|
|
|
229
229
|
Key options:
|
|
230
|
-
-
|
|
231
|
-
- `--
|
|
230
|
+
- `-i, --interactive`: prompt for missing options (recommended for first-time setup)
|
|
231
|
+
- `--project-id <id>`: target project ID (required unless interactive prompt is used)
|
|
232
|
+
- `--name <name>`: project name (required unless interactive prompt is used)
|
|
232
233
|
- `--description <text>`: project description (optional)
|
|
233
234
|
- `--product-key <key>`: enable product mode first, with fallback to plain mode
|
|
234
235
|
- `--app <none|next|expo|react>`: app scaffold target (default `none`)
|
|
@@ -244,6 +245,9 @@ Examples:
|
|
|
244
245
|
# backend only (plain mode)
|
|
245
246
|
npx buildx-cli project:init --project-id hello-world --name "Hello World"
|
|
246
247
|
|
|
248
|
+
# interactive guided mode
|
|
249
|
+
npx buildx-cli project:init --interactive
|
|
250
|
+
|
|
247
251
|
# product mode first, fallback to plain when not allowed
|
|
248
252
|
npx buildx-cli project:init --project-id hello-world --name "Hello World" --product-key approval
|
|
249
253
|
|
|
@@ -254,6 +258,25 @@ npx buildx-cli project:init --project-id hello-world --name "Hello World" --app
|
|
|
254
258
|
npx buildx-cli project:init --project-id hello-world --name "Hello World" --app expo
|
|
255
259
|
```
|
|
256
260
|
|
|
261
|
+
#### `project:add-pack`
|
|
262
|
+
Add Buildx pack dependencies into an existing project package.
|
|
263
|
+
|
|
264
|
+
Key options:
|
|
265
|
+
- `--pack <ui-packs|sdk>`: pack to install
|
|
266
|
+
- `--version <version>`: optional version override
|
|
267
|
+
- `--dir <path>`: target project directory (default current directory)
|
|
268
|
+
- `--manager <bun|pnpm|npm|yarn>`: force package manager
|
|
269
|
+
- `--json`: print machine-readable result
|
|
270
|
+
|
|
271
|
+
Examples:
|
|
272
|
+
```bash
|
|
273
|
+
# add UI packs with default version
|
|
274
|
+
npx buildx-cli project:add-pack --pack ui-packs
|
|
275
|
+
|
|
276
|
+
# add sdk in specific directory with pnpm
|
|
277
|
+
npx buildx-cli project:add-pack --pack sdk --manager pnpm --dir ./my-project
|
|
278
|
+
```
|
|
279
|
+
|
|
257
280
|
Generated auth-aware structure:
|
|
258
281
|
- Next.js scaffold source:
|
|
259
282
|
- `project:init --app next` runs `npx create-next-app@latest` first (TypeScript + App Router)
|
|
@@ -261,6 +284,8 @@ Generated auth-aware structure:
|
|
|
261
284
|
- Next.js template uses route groups for separation:
|
|
262
285
|
- `app/(public)/...` (sign-in/sign-up/forgot-password)
|
|
263
286
|
- `app/(private)/...` (protected dashboard)
|
|
287
|
+
- preserves create-next-app root `app/layout.tsx` (no hard overwrite)
|
|
288
|
+
- starter root `app/page.tsx` includes generic `Dashboard`, `Sign in`, and `Sign up` links with usage description
|
|
264
289
|
- Expo template uses auth-state route split in `App.tsx`:
|
|
265
290
|
- public screen tree for unauthenticated users
|
|
266
291
|
- private screen tree for authenticated users
|
|
@@ -271,12 +296,15 @@ Generated auth-aware structure:
|
|
|
271
296
|
UI package dependency resolution:
|
|
272
297
|
- generated apps depend on package from env `BUILDX_UI_PACKS_PACKAGE`
|
|
273
298
|
- default package name is `buildx-react-ui-packs`
|
|
299
|
+
- default package version is `^1.8.3` (override via `BUILDX_UI_PACKS_VERSION`)
|
|
274
300
|
- set a scoped package before seeding when unscoped npm name is unavailable:
|
|
275
301
|
- `BUILDX_UI_PACKS_PACKAGE=@your-scope/buildx-react-ui-packs npx buildx-cli project:init ...`
|
|
276
302
|
|
|
277
303
|
Notes:
|
|
278
304
|
- Next scaffold requires npm registry connectivity for `create-next-app`.
|
|
279
305
|
- Use `--dry-run` to preview file plan without running scaffold commands.
|
|
306
|
+
- Generated projects are package-manager agnostic (no forced `packageManager` lock in generated `package.json`).
|
|
307
|
+
- Next `app/globals.css` is normalized with Tailwind `@source` to include UI pack classes from `node_modules` (prevents missing utilities like `grid-cols-2` from shared components).
|
|
280
308
|
|
|
281
309
|
### New Project Maintenance
|
|
282
310
|
|