Skip to content

Commit

Permalink
Add task to compile scss
Browse files Browse the repository at this point in the history
  • Loading branch information
zedeus committed Sep 13, 2019
1 parent 10084f2 commit 795d9f4
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,5 @@ nitter
/tests/__pycache__
/tests/geckodriver.log
/tmp
/tools/gencss
/src/public/style.css
9 changes: 8 additions & 1 deletion nitter.nimble
Original file line number Diff line number Diff line change
Expand Up @@ -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 changes: 7 additions & 0 deletions tools/gencss.nim
Original file line number Diff line number Diff line change
@@ -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"

0 comments on commit 795d9f4

Please sign in to comment.