electron-quick-start conversion to Scala.js
MIT License
electron-quick-start conversion to Scala.js
Requires npm
to be installed in the system.
Run sbt app/electronStart
.
The application is split into five sbt
modules to fit a project structure that works well with Scala.js and the
security guidelines outlined in Electron documentation:
app
sbt
plugin with following tasks:
app/electronInstall
- copies over resources (index.html
, package.json
, package-lock.json
, styles.css
)npm install
.app/electronCompile
- compiles Scala.js modules, copies output to target directory.app/electronStart
- runs npm start
on target directory.main
main
process of the Electron Process Model.Node.js
APIs and CommonJS
modules.preload
preload
script.Node.js
CommonJS
modules, but can only require
a subset of them.node-shared
main
and preload
modules.renderer
renderer
process of the Electron Process Model.CommonJS
modules, it is built separatelyscalaJSStage
setting in main
, preload
and renderer
modules can be used to toggle between FastLinkJS
and FullLinkJS
output.
This software is licensed under the MIT license