1
0
mirror of https://github.com/locomotivemtl/locomotive-boilerplate.git synced 2026-01-15 00:55:08 +08:00
Files
locomotive-boilerplate/scripts/git/pre-commit
2023-06-13 10:49:03 +02:00

17 lines
181 B
Bash

#!/bin/sh
BOLD='\033[1m'
NONE='\033[00m'
echo "${BOLD}>> Pre-commit —${NONE} Build 🏗️"
git stash -q --keep-index
npm run build
status=$?
git stash pop -q
exit $status