You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
856 B

3 years ago
  1. Outwatch-Test
  2. ====
  3. ## Prerequisites
  4. You should make sure that the following components are pre-installed on your machine:
  5. - [Node.js](https://nodejs.org/en/download/)
  6. - [Yarn](https://yarnpkg.com/en/docs/install)
  7. ## Create a module
  8. in sbt shell: `fastOptJS::webpack` or `fullOptJS::webpack`
  9. ## Working in dev mode
  10. In sbt shell, run `dev`. Then open `http://localhost:8080/` in your browser.
  11. This sbt-task will start webpack dev server, compile your code each time it changes
  12. and auto-reload the page.
  13. webpack dev server will close automatically when you stop the `dev` task
  14. (e.g by hitting `Enter` in the sbt shell while you are in `dev` watch mode).
  15. If you existed ungracefully and your webpack dev server is still open (check with `ps -aef | grep -v grep | grep webpack`),
  16. you can close it by running `fastOptJS::stopWebpackDevServer` in sbt.