Browse Source

Merge pull request #35 from fancycode/styleshint

Add target "styleshint"
pull/37/head
Simon Eisenmann 11 years ago
parent
commit
f029d3969a
  1. 3
      Makefile
  2. 2
      src/hooks/pre-commit.hook

3
Makefile

@ -104,6 +104,9 @@ styles: @@ -104,6 +104,9 @@ styles:
sass --compass --scss $(SASSFLAGS) \
$(CURDIR)/src/styles/font-awesome.scss:$(CURDIR)/static/css/font-awesome.min.css
styleshint:
find src/styles -maxdepth 1 -name "*.scss" -print0 | xargs -0 -n1 sass --compass --scss $(SASSFLAGS) -c
releaseassets: RJSFLAGS = generateSourceMaps=false preserveLicenseComments=true
releaseassets: SASSFLAGS = --style=compressed --no-cache
releaseassets: dist_gopath assets

2
src/hooks/pre-commit.hook

@ -34,7 +34,7 @@ for file in `git diff-index --cached --name-only HEAD --diff-filter=ACMR| grep " @@ -34,7 +34,7 @@ for file in `git diff-index --cached --name-only HEAD --diff-filter=ACMR| grep "
done
if [ "${check_styles}" = "1" ]; then
make styles
make styleshint
r=$?
if [ $r != 0 ] ; then
echo "================================================================================================="

Loading…
Cancel
Save