Skip to content

Commit

Permalink
Use a single js file to run all pre-commit hooks, see phetsims/aqua#90
Browse files Browse the repository at this point in the history
  • Loading branch information
samreid committed May 16, 2020
1 parent dd3fdb9 commit 73b480a
Showing 1 changed file with 5 additions and 11 deletions.
16 changes: 5 additions & 11 deletions git-template-dir/hooks/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,12 @@
#-----------------------------------------------------------------------------------------------------------------------
# git pre-commit hooks
#
# To install this and other hooks, run:
# To install this and other hooks, run these commands from the root of your checkout. First it clears any pre-existing
# commit hooks, then installs the new hooks from this directory.
#
# for-each.sh active-repos git init --template=${ROOT}/phet-info/git-template-dir
#
# ... where ${ROOT} is the absolute path of the parent directory for your local copy of PhET repos.
#
# This and other hooks may use grunt, so you will also need to 'npm install' for active-repos.
#
# git init does not overwrite files, so you may need to clear existing precommit hooks with a command like:
#
# for-each.sh active-repos rm .git/hooks/pre-commit
# perennial/bin/for-each.sh perennial/data/active-repos rm .git/hooks/pre-commit
# perennial/bin/for-each.sh perennial/data/active-repos git init --template=../phet-info/git-template-dir
#
#-----------------------------------------------------------------------------------------------------------------------

node ../chipper/js/scripts/lint-main.js
node ../perennial/js/scripts/hook-pre-commit.js

0 comments on commit 73b480a

Please sign in to comment.