Skip to content

Commit

Permalink
build a bundle using vite (#1380)
Browse files Browse the repository at this point in the history
  • Loading branch information
wmertens authored Mar 25, 2024
1 parent f18cd46 commit 6b1663f
Show file tree
Hide file tree
Showing 25 changed files with 2,039 additions and 540 deletions.
4 changes: 2 additions & 2 deletions .hooks/post-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
SHORT_SHA=$(git rev-parse HEAD)
LINT_LOG="$TMPDIR"/lint."$SHORT_SHA".log

Expand All @@ -12,7 +12,7 @@ notify() {
# if osascript is not supported, do nothing
if [ -f /usr/bin/osascript ]; then
# read back in the lint errors
ERRORS=$(cat "$LINT_LOG" | sed 1,4d)
ERRORS=$(sed 1,4d "$LINT_LOG")

# Trigger apple- or OSA-script on supported platforms
/usr/bin/osascript -e "display notification \"$ERRORS\" with title \"$*\""
Expand Down
2 changes: 1 addition & 1 deletion .hooks/pre-push
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/sh
fail=0

npm run lint || fail=1
Expand Down
Loading

0 comments on commit 6b1663f

Please sign in to comment.