Add lint info to README

This commit is contained in:
Catalin Constantin Mititiuc 2025-05-23 16:41:33 -07:00
parent 610c04643c
commit 88f5b42019

View File

@ -64,12 +64,26 @@ or
$ make $ make
### visit `localhost:8080` in web browser Visit `localhost:8080` in web browser
### start watcher ### start watcher
$ docker exec -it container_name sitegen watch $ docker exec -it container_name sitegen watch
### lint moonscript
$ make lint
## gotchas
### What is `cosmo failed: [string "..."]:62: cannot resume dead coroutine`?
If you call `cosmo.yield`, your function **must** return `nil`! If you forget
to return `nil`, you will see this cryptic error:
Error: index.html -> html/index.html: cosmo failed: [string "..."]:62: cannot resume dead coroutine
make: *** [Makefile:6: build] Error 1`
## todo ## todo
* draft documents * draft documents