Add lint info to README
This commit is contained in:
parent
0a32000d7f
commit
d0fc8efb96
16
README.md
16
README.md
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user