add static server,websocket refresh watching mode (#149)

* add static server,websocket refresh watching mode

* watch optional

* we dont quit when building error in watch mode

* staticDir,publicUrl configure through dot env

* remove unused import

* serve optional
This commit is contained in:
Bung 2020-07-23 16:40:04 +08:00 • committed by GitHub
commit 98a2d1ce50
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 248 additions and 44 deletions

View file

@ -8,7 +8,8 @@ license = "MIT"
# Dependencies
requires "nim >= 0.16.1"
requires "ws"
requires "dotenv"
skipDirs = @["examples", "experiments", "tests"]
bin = @["karax/tools/karun"]