farmOS / field-kit

A modular, offline-first companion app to farmOS.
https://farmOS.org
GNU General Public License v3.0
60 stars 39 forks source link

Field Modules: development environment #307

Closed jgaehring closed 4 years ago

jgaehring commented 4 years ago

For a while now I've felt that the best approach to creating a development environment, which can leverage all the benefits of the Webpack devServer, such as hot module reloading, etc, is to package up Field Kit's /core directory as an npm library which can be imported as a devDependency by field modules. Then they can run their modules from an index.js entry point that loads the field modules directly Vue plugins before instantiated the core app, rather than fetching them from the server and loading them via the script loader.

jgaehring commented 4 years ago

Resolved by https://github.com/jgaehring/farm_precipitation/commit/944ad6df04d0eb047904242f6a0b526a2ff2b945.