Phyks (Lucas Verney)
288039e732
* Build everything in `public/` folder, to serve only this and avoid issues with `publicPath` in webpack. * Moved some icons to FontAwesome and use spinning wheels from FontAwesome to indicate loading. * (Very) beginning of a webplayer.
23 lines
441 B
Plaintext
Executable File
23 lines
441 B
Plaintext
Executable File
# Get against which ref to diff
|
|
if git rev-parse --verify HEAD >/dev/null 2>&1
|
|
then
|
|
against=HEAD
|
|
else
|
|
# Initial commit
|
|
exit 1
|
|
fi
|
|
|
|
css_js_files=$(git diff-index --name-only $against | grep -e '.\(jsx\?\)\|\(s\?css\)$' | grep -v "^public")
|
|
|
|
# Nothing more to do if no JS files was committed
|
|
if [ -z "$css_js_files" ]
|
|
then
|
|
exit 0
|
|
fi
|
|
|
|
echo "Rebuilding dist JavaScript files…"
|
|
npm run clean
|
|
npm run build:prod
|
|
npm test
|
|
git add public
|