Created
February 15, 2016 19:47
-
-
Save jaylett/b7a5fea55d065fa96afa to your computer and use it in GitHub Desktop.
Build Spacelog CSS using pyScss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/Makefile b/Makefile | |
index b56426c..cd58544 100644 | |
--- a/Makefile | |
+++ b/Makefile | |
@@ -5,7 +5,8 @@ website_screen_sass_components = website/static/css/screen/*.scss | |
global_screen_css = global/static/css/screen.css | |
global_screen_sass = global/static/css/screen.scss | |
global_screen_sass_components = global/static/css/*.scss | |
-PYTHON ?= ./ENV/bin/python | |
+PYTHON ?= ./ENV/bin/python | |
+SASS ?= ./ENV/bin/pyscss | |
# Dev Django runserver variables | |
dev_webserver_ip ?= 0.0.0.0 | |
@@ -36,12 +37,10 @@ copyxapian: | |
cp -a ../current/xappydb xappydb | |
$(website_screen_css): $(website_screen_sass) $(website_screen_sass_components) | |
- sass --style compressed \ | |
- $(website_screen_sass) > $(website_screen_css) | |
+ $(SASS) $(website_screen_sass) > $(website_screen_css) | |
$(global_screen_css): $(global_screen_sass) $(global_screen_sass_components) | |
- sass --style compressed \ | |
- $(global_screen_sass) > $(global_screen_css) | |
+ $(SASS) $(global_screen_sass) > $(global_screen_css) | |
devserver: | |
$(PYTHON) -m website.manage runserver $(dev_webserver_ip):$(dev_webserver_port) | |
diff --git a/requirements.txt b/requirements.txt | |
index ea1cf85..2c6a07b 100644 | |
--- a/requirements.txt | |
+++ b/requirements.txt | |
@@ -3,3 +3,4 @@ redis~=2.2.0 | |
boto | |
django-templatetag-sugar==0.1 | |
gunicorn==19.3.0 | |
+pyScss==1.3.4 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment