Skip to content

Commit

Permalink
Introduced jsfmt for consistent javascript formatting.
Browse files Browse the repository at this point in the history
  • Loading branch information
justinabrahms committed Feb 24, 2016
1 parent f70e2e6 commit 621fa5c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
yapf:
yapf --recursive --in-place --verify --exclude "*urls*" --exclude "*migrations*" --exclude "*node_modules*" . --exclude "*.git*"

jsfmt:
find . -type f -name '*.js' -\! -name '*soy*' -\! -wholename '*node_modules*' -\! -wholename '*/js/*' -\! -wholename '*/swipe/*' -exec node_modules/.bin/jsfmt -w {} \;
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,8 @@
"license": "BSD-2-Clause",
"bugs": {
"url": "https://github.com/starteam/starcellbio_html/issues"
},
"devDependencies": {
"jsfmt": "^0.5.3"
}
}

0 comments on commit 621fa5c

Please sign in to comment.