mirror of
https://github.com/forcedotcom/afv-library.git
synced 2026-07-30 03:09:50 +08:00
fix: replace deprecated sf ui-bundle generate with sf template generate ui-bundle
This commit is contained in:
parent
82ab956dcd
commit
f04cbdecc2
@ -43,7 +43,7 @@ Build a complete, deployable Salesforce React UI bundle application from a natur
|
||||
### Phase 1: Scaffolding (Foundation)
|
||||
|
||||
```
|
||||
UI Bundle scaffold (sf ui-bundle generate)
|
||||
UI Bundle scaffold (sf template generate ui-bundle)
|
||||
v
|
||||
Install dependencies (npm install)
|
||||
v
|
||||
@ -214,7 +214,7 @@ Execute each phase sequentially. Complete all steps within a phase before moving
|
||||
|
||||
**Phase 1 -- Scaffolding**
|
||||
- 1. Load skill: Invoke `generating-ui-bundle-metadata`
|
||||
- 2. Execute: Run `sf ui-bundle generate`, install dependencies (`npm install`), configure meta XML, ui-bundle.json, and CSP trusted sites
|
||||
- 2. Execute: Run `sf template generate ui-bundle`, install dependencies (`npm install`), configure meta XML, ui-bundle.json, and CSP trusted sites
|
||||
- 3. Verify: Confirm directory structure and metadata files exist
|
||||
- 4. Checkpoint: UI bundle scaffold is ready -- proceed to Phase 2
|
||||
|
||||
|
||||
@ -1,13 +1,13 @@
|
||||
---
|
||||
name: generating-ui-bundle-metadata
|
||||
description: "Scaffold new Salesforce UI bundles and configure their metadata — sf ui-bundle generate, UIBundle bundles (meta XML, ui-bundle.json with routing/headers/outputDir), and CSP Trusted Sites for external domains. Use whenever creating a new UI bundle, setting up UI bundle metadata structure, configuring routing or headers, setting outputDir, adding external domains that need CSP registration, or editing bundle configuration. Triggers on: create UI bundle, create ui-bundle, new app, sf ui-bundle generate, metadata, ui-bundle.json, CSP, trusted site, bundle configuration, meta XML, routing config, external domain, headers config, outputDir."
|
||||
description: "Scaffold new Salesforce UI bundles and configure their metadata — sf template generate ui-bundle, UIBundle bundles (meta XML, ui-bundle.json with routing/headers/outputDir), and CSP Trusted Sites for external domains. Use whenever creating a new UI bundle, setting up UI bundle metadata structure, configuring routing or headers, setting outputDir, adding external domains that need CSP registration, or editing bundle configuration. Triggers on: create UI bundle, create ui-bundle, new app, sf template generate ui-bundle, metadata, ui-bundle.json, CSP, trusted site, bundle configuration, meta XML, routing config, external domain, headers config, outputDir."
|
||||
---
|
||||
|
||||
# UI Bundle Metadata
|
||||
|
||||
## Scaffolding a New UI Bundle
|
||||
|
||||
Use `sf ui-bundle generate` to create new apps — not create-react-app, Vite, or other generic scaffolds.
|
||||
Use `sf template generate ui-bundle` to create new apps — not create-react-app, Vite, or other generic scaffolds.
|
||||
|
||||
**UI bundle name (`-n`):** Alphanumerical only — no spaces, hyphens, underscores, or special characters. Example: `CoffeeBoutique` (not `Coffee Boutique`).
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user