Add task to compile scss

This commit is contained in:
Zed 2019-09-13 10:54:09 +02:00
parent 10084f20d5
commit 795d9f4ec3
3 changed files with 17 additions and 1 deletions

2
.gitignore vendored
View File

@ -4,3 +4,5 @@ nitter
/tests/__pycache__
/tests/geckodriver.log
/tmp
/tools/gencss
/src/public/style.css

View File

@ -11,9 +11,16 @@ bin = @["nitter"]
# Dependencies
requires "nim >= 0.19.9"
requires "norm >= 1.0.15"
requires "norm >= 1.0.17"
requires "jester >= 0.4.3"
requires "regex >= 0.11.2"
requires "q >= 0.0.7"
requires "nimcrypto >= 0.3.9"
requires "karax#b99a543"
requires "sass"
# Tasks
task scss, "Generate css":
exec "nim c --hint[Processing]:off -r tools/gencss"

7
tools/gencss.nim Normal file
View File

@ -0,0 +1,7 @@
import sass
compileFile("src/sass/index.scss",
outputPath = "public/css/style.css",
includePaths = @["src/sass/include"])
echo "Compiled to public/css/style.css"