Skip to content
This repository has been archived by the owner on Mar 18, 2021. It is now read-only.

Commit

Permalink
Merge pull request #73 from jhrcek/recommendWatch
Browse files Browse the repository at this point in the history
Recommend spago --watch over watchexec (closes #71)
  • Loading branch information
JordanMartinez authored Mar 10, 2020
2 parents d20566e + 8497e40 commit 9e251cd
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/01-Static-HTML/01-Static-HTML.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,10 @@ parcel serve assets/static-html/static-html.html -o static-html--parcelified.htm

## Automatic Reload

To automatically reload the page upon saving the source `.purs` file, launch the `spago bundle-app` command in a separate terminal with the following [`watchexec`](https://github.com/watchexec/watchexec) prefix:
```
watchexec -w src -e purs --
```
To automatically recompile the code and reload the page upon saving the source `.purs` file, run the spago command above in separate terminal with an additional flag `-w` (or `--watch`).

The full command for this example is:
```
watchexec -w src -e purs -- spago bundle-app -m StaticHTML.StaticHTML -t assets/static-html/static-html.js
spago bundle-app -w -m StaticHTML.StaticHTML -t assets/static-html/static-html.js
```
This prefix may be applied to all subsequent examples.
This flag can be used in all subsequent examples.

0 comments on commit 9e251cd

Please sign in to comment.