-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7b0c2f0
commit f4ef4ff
Showing
4 changed files
with
49 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/usr/bin/env bash | ||
# Install PostCSS and cssnano globally | ||
npm install -g postcss-cli cssnano | ||
|
||
# Install UglifyJS globally | ||
npm install -g uglify-js | ||
|
||
# get fullpath to min.sh | ||
SCRIPT=$(readlink -f "$0") | ||
DIR=$(dirname "$SCRIPT") | ||
MINSH="$DIR/min.sh" | ||
|
||
# add a pre-commit hook which calls min.sh with no arguments | ||
# get the version of bash executing this script | ||
echo "$MINSH" > .git/hooks/pre-commit |
Oops, something went wrong.