Skip to content
This repository has been archived by the owner on Aug 13, 2019. It is now read-only.

STIJ-195: Added pre-commit hook support. #170

Open
wants to merge 12 commits into
base: develop
Choose a base branch
from
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ All notable changes to `digipolisgent/fractal_styleguide_gent-base`.

### 2.7.1
* STIJ-193: Added figcaption atom and figure molecule.
* STIJ-195: Added Git pre commit hook support in the gulpfile.

### 2.7.0
**IMPORTANT: Class .text-center has been removed**
Expand Down
8 changes: 5 additions & 3 deletions postinstall.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ if [ -d "./public" ]; then

mkdir ./public/styleguide/vendor;

cp -R node_modules/lightgallery ./public/styleguide/vendor/lightgallery;
cp -R node_modules/jquery ./public/styleguide/vendor/jquery;
cp -R node_modules/chosen-js ./public/styleguide/vendor/chosen-js;
cp -R ./node_modules/lightgallery ./public/styleguide/vendor/lightgallery;
cp -R ./node_modules/jquery ./public/styleguide/vendor/jquery;
cp -R ./node_modules/chosen-js ./public/styleguide/vendor/chosen-js;

ln -sf $PWD/scripts/pre-commit $PWD/.git/hooks/pre-commit
fi
7 changes: 7 additions & 0 deletions scripts/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# pre-commit

echo 'Testing the validity of your code...';

# Ensure that code that isn't part of the prospective commit isn't tested within your pre-commit script
# Test prospective commit
gulp validate;