nitter/nitter.nimble
somini ae7d2eafb8
Fix special tasks
I get errors like this:

```
nitter-git/tools/gencss.nim(1, 8) Error: cannot open file: sass
stack trace: (most recent call last)
/tmp/nimblecache-798796522/nimscriptapi_3049515398.nim(187, 16)
nitter-git/nitter.nimble(31, 8) scssTask
/usr/lib/nim/system/nimscript.nim(260, 7) exec
/usr/lib/nim/system/nimscript.nim(260, 7) Error: unhandled exception: FAILED: nim c -r tools/gencss [OSError]
       Tip: 2 messages have been suppressed, use --verbose to show them.
     Error: Exception raised during nimble script execution
```
2022-01-21 23:01:38 +00:00

35 lines
773 B
Nim

# Package
version = "0.1.0"
author = "zedeus"
description = "An alternative front-end for Twitter"
license = "AGPL-3.0"
srcDir = "src"
bin = @["nitter"]
# Dependencies
requires "nim >= 1.4.8"
requires "jester >= 0.5.0"
requires "karax#c71bc92"
requires "sass#e683aa1"
requires "nimcrypto#a5742a9"
requires "markdown#abdbe5e"
requires "packedjson#d11d167"
requires "supersnappy#2.1.1"
requires "redpool#8b7c1db"
requires "https://github.com/zedeus/redis#d0a0e6f"
requires "zippy#0.7.3"
requires "flatty#0.2.3"
requires "jsony#d0e69bd"
# Tasks
task scss, "Generate css":
exec "nimble c --hint[Processing]:off -d:danger -r tools/gencss"
task md, "Render md":
exec "nimble c --hint[Processing]:off -d:danger -r tools/rendermd"