Repository navigation
v1.1.6
Electron support in the CLI: a new Electron template, and init / update recognise Electron projects. The library is unchanged from 1.1.5.
New
npx jops-core inittemplate 4. Electron JOPS Desktop App: creates an Electron Forge project in the current folder (main process, preload bridge with two sample IPC calls, a JOPS SPA with a sidebar and<Router jops screens>, a Content-Security-Policy), vendors the library tosrc/lib/and runsnpm install. An existingpackage.jsonis merged (its entries are kept;jops-coregoes todevDependencies). "None" is now choice 5.initin an existing Electron project (Electron Forge's default template, or any project withelectroninpackage.jsonthat loads a plain HTML page): vendors the library into the page's folder (src/lib/), replaces Forge's sample page (kept asindex.forge.html) or patches your own with the import map, the module script and a Content-Security-Policy, copies templates 1 and 2 next toindex.htmlwith page-relative paths, movesjops-coretodevDependenciesand adds ajops:updatescript. Forge's vite and webpack templates are refused, since they bundle the page.--electronforces the project type.npx jops-core updaterefreshes the library in an Electron project;npx jops-core buildpoints tonpm run makethere.
Docs
- README: new section "Desktop Apps (Electron)": the template, adding JOPS to an existing Electron project, paths under
file://(page-relative, no leading./or/), calling the main process through the preload bridge, events from the main process, the Content-Security-Policy, conventions. CLI and init menu updated. - AI guide: Electron section, and the path rule per setup gets an Electron line.