Add lint info to README

This commit is contained in:
Catalin Constantin Mititiuc 2025-06-16 20:18:05 -07:00
parent 0a32000d7f
commit d0fc8efb96

View File

@ -64,12 +64,26 @@ or
$ make
### visit `localhost:8080` in web browser
Visit `localhost:8080` in web browser
### start watcher
$ 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
* draft documents