Commit a200dd6
refactor: rename webapp dev command and plugin to ui-bundle @W-21575874@ (#41)
* refactor: rename webapp dev command and plugin to ui-bundle
Rename `sf webapp dev` command to `sf ui-bundle dev` and update plugin identity:
- Rename src/commands/webapp/dev.ts to src/commands/ui-bundle/dev.ts
- Rename messages/webapp.dev.md to messages/ui-bundle.dev.md
- Rename schemas/webapp-dev.json to schemas/ui-bundle-dev.json
- Rename SF_WEBAPP_DEV_GUIDE.md to SF_UI_BUNDLE_DEV_GUIDE.md
- Rename test/commands/webapp/ to test/commands/ui-bundle/
- Rename plugin from @salesforce/plugin-app-dev to @salesforce/plugin-ui-bundle-dev
- Update command-snapshot.json: webapp:dev → ui-bundle:dev
- Update package.json: topics webapp → ui-bundle, homepage and repository URLs
- Update webappDiscovery.ts: path segment and folder constant webui → uiBundles
- Update COMMANDS.md and README.md with ui-bundle command and package references
- Update src/proxy/ProxyServer.ts with associated changes
W-21575874
Made-with: Cursor
* refactor: rename webapp references to ui-bundle and update package imports
- Rename dev command, messages, schemas, and configs from webapp to ui-bundle
- Update imports from @salesforce/webapp-experimental to @salesforce/ui-bundle
- Remove ErrorPageRenderer (template inlined upstream)
- Update all test helpers and NUT references
Made-with: Cursor
* docs: update SF_UI_BUNDLE_DEV_GUIDE with ui-bundle naming
- Replace webui/, webapplication.json, .webapplication-meta.xml references
- Replace app-based example names with bundle equivalents
- Delete SF_WEBAPP_DEV_GUIDE.md (superseded by SF_UI_BUNDLE_DEV_GUIDE.md)
- Fix title, debug log grep pattern, and project structure
Made-with: Cursor
* docs: replace app-based example names with bundle in messages
- MyApp → MyBundle in flags.name.description
- myUiBundle → myBundle in command examples
Made-with: Cursor
* fix: align moduleResolution with ui-bundle package build target
Switch tsconfig from Node16 to Preserve/Bundler to match how
@salesforce/ui-bundle generates its .d.ts files. The old
@salesforce/webapp-experimental included .js extensions in d.ts imports
(Node16-compatible), but @salesforce/ui-bundle dropped them (Bundler-style),
causing ESLint type resolution failures. Also corrects UIBundleManifest
import casing to match the actual export name.
Made-with: Cursor
* chore: switch @salesforce/ui-bundle from local file link to npm ^1.117.2
Made-with: Cursor
* Update schemas/ui__bundle-dev.json
Co-authored-by: Brian Buchanan <5377888+bpbuch@users.noreply.github.com>
* docs: update COMMANDS.md and README.md to ui-bundle naming
Replace all webapp/webapplication references with ui-bundle conventions,
update command from sf webapp dev to sf ui-bundle dev, and align
example names to use bundle-style naming (myBundle).
Made-with: Cursor
* chore: regenerate json schema after description update
Made-with: Cursor
* docs: update package name references to plugin-ui-bundle-dev in README
Made-with: Cursor
* chore: bump @salesforce/ui-bundle to ^1.117.3
Made-with: Cursor
* fix: update Vite proxy test helper header from WebApp to UiBundle
startViteProxyServer was sending X-Salesforce-WebApp-Proxy but dev.ts
checks X-Salesforce-UiBundle-Proxy, causing the Vite proxy detection
NUT to always fail.
Made-with: Cursor
* docs: expand UI bundle description in command help
* fix: simplify schema description for command result
Update JSDoc and schema to use concise description.
* docs: update error message examples to use camelCase naming convention
* fix: regenerate yarn.lock using yarn registry URLs
---------
Co-authored-by: Brian Buchanan <5377888+bpbuch@users.noreply.github.com>
Co-authored-by: gary-chang <gary.chang@salesforce.com>1 parent 0bdacc1 commit a200dd6
31 files changed
Lines changed: 1676 additions & 1938 deletions
File tree
- messages
- schemas
- src
- commands/ui-bundle
- config
- proxy
- server
- templates
- test
- commands/ui-bundle
- helpers
- config
- templates
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
17 | | - | |
18 | | - | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
19 | 23 | | |
20 | 24 | | |
21 | 25 | | |
22 | 26 | | |
23 | 27 | | |
24 | 28 | | |
25 | | - | |
| 29 | + | |
26 | 30 | | |
27 | | - | |
28 | | - | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
29 | 43 | | |
30 | 44 | | |
31 | | - | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
32 | 55 | | |
33 | | - | |
| 56 | + | |
34 | 57 | | |
35 | | - | |
| 58 | + | |
36 | 59 | | |
37 | | - | |
| 60 | + | |
38 | 61 | | |
39 | | - | |
| 62 | + | |
40 | 63 | | |
41 | | - | |
| 64 | + | |
42 | 65 | | |
43 | 66 | | |
44 | 67 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
19 | 18 | | |
20 | | - | |
| 19 | + | |
21 | 20 | | |
22 | 21 | | |
23 | 22 | | |
24 | 23 | | |
25 | 24 | | |
26 | 25 | | |
27 | | - | |
| 26 | + | |
28 | 27 | | |
29 | 28 | | |
30 | 29 | | |
| |||
33 | 32 | | |
34 | 33 | | |
35 | 34 | | |
36 | | - | |
| 35 | + | |
37 | 36 | | |
38 | 37 | | |
39 | 38 | | |
40 | | - | |
41 | | - | |
| 39 | + | |
| 40 | + | |
42 | 41 | | |
43 | 42 | | |
44 | 43 | | |
| |||
50 | 49 | | |
51 | 50 | | |
52 | 51 | | |
53 | | - | |
| 52 | + | |
54 | 53 | | |
55 | 54 | | |
56 | 55 | | |
57 | 56 | | |
58 | | - | |
| 57 | + | |
59 | 58 | | |
60 | 59 | | |
61 | 60 | | |
| |||
69 | 68 | | |
70 | 69 | | |
71 | 70 | | |
72 | | - | |
| 71 | + | |
73 | 72 | | |
74 | 73 | | |
75 | 74 | | |
| |||
101 | 100 | | |
102 | 101 | | |
103 | 102 | | |
104 | | - | |
| 103 | + | |
105 | 104 | | |
106 | 105 | | |
107 | 106 | | |
| |||
125 | 124 | | |
126 | 125 | | |
127 | 126 | | |
128 | | - | |
| 127 | + | |
129 | 128 | | |
130 | | - | |
| 129 | + | |
131 | 130 | | |
132 | 131 | | |
133 | 132 | | |
134 | | - | |
| 133 | + | |
135 | 134 | | |
136 | 135 | | |
137 | 136 | | |
138 | 137 | | |
139 | | - | |
| 138 | + | |
140 | 139 | | |
141 | 140 | | |
142 | | - | |
143 | 141 | | |
144 | 142 | | |
145 | 143 | | |
| 144 | + | |
146 | 145 | | |
147 | 146 | | |
148 | | - | |
| 147 | + | |
149 | 148 | | |
150 | 149 | | |
151 | 150 | | |
| |||
154 | 153 | | |
155 | 154 | | |
156 | 155 | | |
157 | | - | |
| 156 | + | |
158 | 157 | | |
159 | | - | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
160 | 163 | | |
161 | 164 | | |
162 | 165 | | |
163 | | - | |
| 166 | + | |
164 | 167 | | |
165 | 168 | | |
166 | 169 | | |
167 | | - | |
| 170 | + | |
168 | 171 | | |
169 | 172 | | |
170 | | - | |
| 173 | + | |
171 | 174 | | |
172 | 175 | | |
173 | 176 | | |
0 commit comments