Skip to content

Commit

Permalink
fix: specific gulp path
Browse files Browse the repository at this point in the history
  • Loading branch information
gaowhen committed Jan 12, 2016
1 parent 28c04eb commit 4521187
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
CHANGED_ASSETS="$(git diff --cached --name-only --diff-filter=ACM 2>/dev/null | grep '.js$' | xargs)"

if [ -n "${CHANGED_ASSETS}" ]; then
# npm run gulp lint --file="${CHANGED_ASSETS}"
# npm run gulp eslint --file="${CHANGED_ASSETS}"
gulp jscs --file="${CHANGED_ASSETS}"
# ./node_modules/.bin/gulp lint --file="${CHANGED_ASSETS}"
# ./node_modules/.bin/gulp eslint --file="${CHANGED_ASSETS}"
./node_modules/.bin/gulp jscs --file="${CHANGED_ASSETS}"
exit $?
else
exit 0
Expand Down

0 comments on commit 4521187

Please sign in to comment.