mirror of
https://github.com/locomotivemtl/locomotive-boilerplate.git
synced 2026-01-15 00:55:08 +08:00
Compare commits
3 Commits
3a9038c832
...
feature/pr
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
41f44e30fc | ||
|
|
9e8330cdb4 | ||
|
|
1ffcf3f099 |
@@ -1,3 +1,3 @@
|
||||
{
|
||||
"version": 1686214653663
|
||||
"version": 1686222202916
|
||||
}
|
||||
@@ -11,7 +11,8 @@
|
||||
},
|
||||
"scripts": {
|
||||
"start": "node --experimental-json-modules --no-warnings build/watch.js",
|
||||
"build": "node --experimental-json-modules --no-warnings build/build.js"
|
||||
"build": "node --experimental-json-modules --no-warnings build/build.js",
|
||||
"prestart": "cp scripts/git/pre-commit .git/hooks/ && chmod +x .git/hooks/pre-commit"
|
||||
},
|
||||
"dependencies": {
|
||||
"locomotive-scroll": "^4.1.4",
|
||||
|
||||
16
scripts/git/pre-commit
Normal file
16
scripts/git/pre-commit
Normal file
@@ -0,0 +1,16 @@
|
||||
#!/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
|
||||
Reference in New Issue
Block a user