Skip to content

Commit

Permalink
Add sass-watcher script with some hints about how to install it.
Browse files Browse the repository at this point in the history
  • Loading branch information
jone committed Sep 5, 2013
1 parent 32462b7 commit bc37da5
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,5 @@ eggs/
parts/
src/
var/
.sass-cache
.sass-cache
/.ruby-version
29 changes: 29 additions & 0 deletions sass-watcher.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
#!/usr/bin/env sh

command -v sass 2>&1 > /dev/null
has_sass=$?

command -v rbenv 2>&1 > /dev/null
has_rbenv=$?


if [[ $has_sass -eq 1 ]]; then
echo 'It seems you do not have "sass" installed yet.'

if [[ $has_rbenv -eq 0 ]]; then
echo "You have rbenv installed."
rbenv local 2>&1 > /dev/null
rbenv_enabled=$?
if [[ $rbenv_enabled -eq 1 ]]; then
echo "rbenv is not enabled, enable it with:"
echo " $ rbenv local 1.9.3-p194"
else
echo "Install sass with:"
echo " $ gem install sass"
fi
fi

exit 1;
fi

sass --watch plonetheme/onegov/resources/sass/main.scss:plonetheme/onegov/resources/css/main.css

0 comments on commit bc37da5

Please sign in to comment.