Add task to compile scss
This commit is contained in:
parent
10084f20d5
commit
795d9f4ec3
|
@ -4,3 +4,5 @@ nitter
|
|||
/tests/__pycache__
|
||||
/tests/geckodriver.log
|
||||
/tmp
|
||||
/tools/gencss
|
||||
/src/public/style.css
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
Loading…
Reference in New Issue