Skip to content

Commit

Permalink
chore: 자동 빌드...
Browse files Browse the repository at this point in the history
[#119]
  • Loading branch information
stop0ho committed Nov 18, 2024
1 parent 825b520 commit 069e872
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 23 deletions.
12 changes: 0 additions & 12 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,13 +1 @@
pnpm lint-staged

CHANGED_FILES=$(git diff --cached --name-only)
echo "Changed files: $CHANGED_FILES" # 디버그 메시지

if echo "$CHANGED_FILES" | grep -q "^frontend/"; then
echo "Running build in frontend directory..."
cd frontend
pnpm build
cd ..
else
echo "No changes in frontend directory."
fi
14 changes: 3 additions & 11 deletions .husky/pre-push
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
CHANGED_FILES=$(git diff --cached --name-only)
echo "Changed files: $CHANGED_FILES" # 디버그 메시지

if echo "$CHANGED_FILES" | grep -q "^frontend/"; then
echo "Running build in frontend directory..."
cd frontend
pnpm build
cd ..
else
echo "No changes in frontend directory."
fi
cd frontend
pnpm build
cd ..

0 comments on commit 069e872

Please sign in to comment.