This is the main component of leihs. See the super project leihs/leihs for more information.
Install needed dependencies:
node.js, seeasdfandasdf nodejs
If you changed the assets: ./bin/recompile-assets
Before pushing, make sure to commit and push public/assets submodule.
Optionally webpack can run alongside rails, to compile files on change instead of on request (faster). This is recommended when working on JS/Frontend primarily:
run ./bin/webpack-dev-server before starting ./bin/rails server
The install scripts of the dependencies most likely won't run and also should not be run for security reasons, so we use --ignore-scripts.
yarn install --ignore-scripts