Skip to content

Commit

Permalink
build a bundle using vite
Browse files Browse the repository at this point in the history
- speeds up install because there's no longer 301 dependencies
- speeds up run because there's less code to parse
  • Loading branch information
wmertens committed Mar 15, 2024
1 parent ba271e8 commit 50d4b93
Show file tree
Hide file tree
Showing 25 changed files with 1,860 additions and 137 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 50d4b93

Please sign in to comment.