Commit 73dc99b
committed
fix(ci): fix CLI argument parsing and use local rake build for tool generators
Fix frontend generator tests to properly test plugin build workflows:
**CLI Argument Parsing (openc3.sh)**
- Replace echo pipe argument parsing with shift/"$@" to preserve quotes
- Fixes: `./openc3.sh cli generate tool_vue 'Test Vue Tool'` now works
- Applied to both `cli` and `cliroot` commands (lines 268-273, 313-314)
**CI Workflow (tool.yml)**
- Add pnpm installation step (lines 30-33)
- Run `rake build VERSION=1.0.0` directly on CI runner instead of in
Docker container where pnpm is unavailable
- Use `pnpm install --ignore-scripts` for fresh plugins:
- Skip --frozen-lockfile (no lockfile in generated plugins)
- Keep --ignore-scripts to skip broken lifecycle hooks (e.g., Svelte's
prepare script that requires missing @material/theme dependencies)
- Non-tool plugins continue using `../openc3.sh cli rake build`
**Why This Works**
Tool/widget plugins have package.json, so Rakefile runs `pnpm run build`
(lines 19-23). Previously this failed inside Docker container because:
1. pnpm only installed in CI runner, not in openc3-cosmos-cmd-tlm-api
2. Svelte's prepare hook tried to compile themes without dependencies1 parent c68f3a6 commit 73dc99b
1 file changed
+12
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | | - | |
70 | | - | |
| 69 | + | |
| 70 | + | |
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
| |||
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
99 | | - | |
100 | | - | |
| 99 | + | |
| 100 | + | |
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
| |||
126 | 126 | | |
127 | 127 | | |
128 | 128 | | |
129 | | - | |
130 | | - | |
| 129 | + | |
| 130 | + | |
131 | 131 | | |
132 | 132 | | |
133 | 133 | | |
| |||
156 | 156 | | |
157 | 157 | | |
158 | 158 | | |
159 | | - | |
160 | | - | |
| 159 | + | |
| 160 | + | |
161 | 161 | | |
162 | 162 | | |
163 | 163 | | |
| |||
185 | 185 | | |
186 | 186 | | |
187 | 187 | | |
188 | | - | |
189 | | - | |
| 188 | + | |
| 189 | + | |
190 | 190 | | |
191 | 191 | | |
192 | 192 | | |
| |||
228 | 228 | | |
229 | 229 | | |
230 | 230 | | |
231 | | - | |
232 | | - | |
| 231 | + | |
| 232 | + | |
233 | 233 | | |
234 | 234 | | |
235 | 235 | | |
| |||
0 commit comments