Title: CLI: repeatable --plugin
Open Graph Title: CLI: repeatable --plugin
X Title: CLI: repeatable --plugin
Description: Follow-up 1 from #592 (the other follow-up there, pluginDataDir, stays tracked in #592's thread). Motivation Since #593 / 0.0.216, jss start -c config.json mounts plugins — but the simple case still requires writing a config file for wha...
Open Graph Description: Follow-up 1 from #592 (the other follow-up there, pluginDataDir, stays tracked in #592's thread). Motivation Since #593 / 0.0.216, jss start -c config.json mounts plugins — but the simple case stil...
X Description: Follow-up 1 from #592 (the other follow-up there, pluginDataDir, stays tracked in #592's thread). Motivation Since #593 / 0.0.216, jss start -c config.json mounts plugins — but the simple case ...
Opengraph URL: https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/594
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"CLI: repeatable --plugin \u003cmodule[@prefix]> flag for config-file-free app mounting","articleBody":"Follow-up 1 from #592 (the other follow-up there, `pluginDataDir`, stays tracked in #592's thread).\n\n## Motivation\n\nSince #593 / 0.0.216, `jss start -c config.json` mounts plugins — but the simple case still requires writing a config file for what is conceptually one argument. A repeatable flag closes that:\n\n```bash\njss start --root ./data --public --plugin ./chat/plugin.js@/chat --plugin tideholm/jss-plugin/tideholm-jss.js@/tideholm\n```\n\nIt's also the seam servejss needs to stay a pure flag translator: with this flag, `servejss --plugin ./chat/plugin.js@/chat ./public` forwards verbatim, and jsserve never learns plugin semantics (consistent with its How-it-works contract: JSS owns loading, the wrapper owns the CLI).\n\n## Proposed shape\n\n- **Repeatable**: commander collect pattern; each occurrence appends one entry.\n- **Syntax**: `module[@prefix]` — split on the **last** `@` whose remainder starts with `/`, so scoped packages parse unambiguously (`@scope/pkg/plugin.js@/app` → module `@scope/pkg/plugin.js`, prefix `/app`; bare `@scope/pkg/plugin.js` → no prefix).\n- **Merging**: CLI entries append to `config.plugins` from the file (both sources usable together), rather than the usual CLI-replaces-file scalar rule — replacing would make `-c` plus one `--plugin` silently drop the file's apps.\n- **Scope limits**: per-plugin `config` objects and explicit `id` stay config-file territory; the flag covers the module + prefix case only. Entries go through the existing loader untouched, so prefix validation, duplicate-id rejection, and fail-loudly-on-import-error all apply as-is.\n\n## Non-goals\n\n- No change to loader semantics (src/plugins.js).\n- No config auto-discovery — same explicit-opt-in stance as `-c` (#592).","author":{"url":"https://github.com/melvincarvalho","@type":"Person","name":"melvincarvalho"},"datePublished":"2026-07-11T06:58:15Z","url":"https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/594"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:19568cca-99d6-7e4f-e6a0-ecb36deab054 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DAAA:18D8CC:4A74D4:5E7574:6B038A30 |
| html-safe-nonce | bab725ac531678d3b9886ed6d6399e89ebfbe43b42e8a612a3b994fab1d4b301 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQUFBOjE4RDhDQzo0QTc0RDQ6NUU3NTc0OjZCMDM4QTMwIiwidmlzaXRvcl9pZCI6Ijg5NDMxOTQ3ODYzMDgwMDAzMDQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 20b478cb0e5374cce58dc093d505237e44f0214c582d9b0c8f3cf2ee36ee11bd |
| hovercard-subject-tag | issue:4861056683 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/JavaScriptSolidServer/JavaScriptSolidServer/594/issue_layout |
| twitter:image | https://opengraph.githubassets.com/3f23ce69b4749c629a5d07d59708abe5b529fd929fa8a7c35ae302d3736060f0/JavaScriptSolidServer/JavaScriptSolidServer/issues/594 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/3f23ce69b4749c629a5d07d59708abe5b529fd929fa8a7c35ae302d3736060f0/JavaScriptSolidServer/JavaScriptSolidServer/issues/594 |
| og:image:alt | Follow-up 1 from #592 (the other follow-up there, pluginDataDir, stays tracked in #592's thread). Motivation Since #593 / 0.0.216, jss start -c config.json mounts plugins — but the simple case stil... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | melvincarvalho |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| turbo-cache-control | no-preview |
| go-import | github.com/JavaScriptSolidServer/JavaScriptSolidServer git https://github.com/JavaScriptSolidServer/JavaScriptSolidServer.git |
| octolytics-dimension-user_id | 205442424 |
| octolytics-dimension-user_login | JavaScriptSolidServer |
| octolytics-dimension-repository_id | 958025407 |
| octolytics-dimension-repository_nwo | JavaScriptSolidServer/JavaScriptSolidServer |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 958025407 |
| octolytics-dimension-repository_network_root_nwo | JavaScriptSolidServer/JavaScriptSolidServer |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width