Phyks (Lucas Verney)
157382c3b8
When not setting an endpoint protocol scheme at login, "http" was assumed. Changing this to the same protocol as current one, to avoid mixed blocked content. Also prevent multiple submissions of LoginForm.
22 lines
424 B
Plaintext
Executable File
22 lines
424 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
|
|
# TODO
|
|
exit 1
|
|
fi
|
|
|
|
js_files=$(git diff-index --name-only $against | grep -e ".jsx\?$" | grep -v "^app/dist")
|
|
|
|
# Nothing more to do if no JS files was committed
|
|
if [ -z "$js_files" ]
|
|
then
|
|
exit 0
|
|
fi
|
|
|
|
echo "Rebuilding dist JavaScript files…"
|
|
NODE_ENV=production npm run build
|
|
git add app/dist
|