2016-02-05 19:44:50 +00:00
|
|
|
# Package
|
|
|
|
|
2016-02-11 10:55:34 +00:00
|
|
|
version = "1.1.0"
|
2016-02-05 19:44:50 +00:00
|
|
|
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"
|