Skip to content

Commit

Permalink
Improve git pre-commit hook
Browse files Browse the repository at this point in the history
  • Loading branch information
Yuki Shimada committed Jul 4, 2018
1 parent 3e7b42c commit 3b2e912
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 9 deletions.
10 changes: 5 additions & 5 deletions VERSION-FILE
@@ -1,6 +1,6 @@
version: 0.0.4-26-g5494-mod
version: 0.0.4-36-g02e83-mod
branch: develop




b7ae3580f181870ce024ccc0f6c5e4d94b4cb17699deacd65778b8f3da3533d0 ./build/glboost.js
b7ae3580f181870ce024ccc0f6c5e4d94b4cb17699deacd65778b8f3da3533d0 ./build/glboost.js
37162b15ddb1511766b6fc46eec9129b3d6b3f91090bfe271e28f7abc1f7d199 ./build/glboost.min.js
2f3c64bc176cbd2b87bdb0fdb040fbdbfd7f385eab477e96a75507e2b09ce81f ./build/glboost.min.js.map
2 changes: 1 addition & 1 deletion build/glboost.js
Expand Up @@ -20984,4 +20984,4 @@ return mat4(

})));

(0,eval)('this').GLBoost.VERSION='version: 0.0.4-26-g5494-mod branch: develop';
(0,eval)('this').GLBoost.VERSION='version: 0.0.4-36-g02e83-mod branch: develop';
2 changes: 1 addition & 1 deletion build/glboost.min.js

Large diffs are not rendered by default.

9 changes: 7 additions & 2 deletions pre-commit
@@ -1,5 +1,10 @@
#!/bin/sh
#!/bin/bash

npm rum build
CURRENT_BRANCH=$(git rev-parse --abbrev-ref HEAD)

if [[ $CURRENT_BRANCH = master || $CURRENT_BRANCH = develop ]]
then
npm rum build
fi

git add ./VERSION-FILE ./build/glboost.js ./build/glboost.min.js ./build/glboost.min.js.map

0 comments on commit 3b2e912

Please sign in to comment.