twtxtlist/twtxtlist.nimble

30 lines
676 B
Plaintext
Raw Normal View History

2016-02-05 19:44:50 +00:00
# Package
version = "0.1.0"
author = "Christine Dodrill"
description = "a list of twtxt hacker feeds"
license = "MIT"
srcDir = "src"
2016-02-06 23:14:55 +00:00
bin = @["twtxtlist", "worker"]
2016-02-05 19:44:50 +00:00
# Dependencies
2016-02-09 01:57:28 +00:00
requires "nim >= 0.13.0", "jester", "moustachu", "shorturl", "q"
2016-02-05 19:44:50 +00:00
mode = ScriptMode.Verbose
task db, "SQLite database prompt":
exec "sqlite3 data/twtxt.db"
2016-02-07 20:48:43 +00:00
task godep, "build go deps":
withDir "src/time":
exec "go build -buildmode=c-shared -o gotime.so time.go"
exec "cp gotime.so ../.."
2016-02-06 15:54:55 +00:00
task run, "Run app":
exec "nimble build"
exec "./twtxtlist"
2016-02-08 15:00:01 +00:00
task runForever, "run this forever":
2016-02-08 18:04:09 +00:00
exec "while true; do ./twtxtlist; sleep 2; done"