Skip to content

Commit

Permalink
chore: pre-push githook
Browse files Browse the repository at this point in the history
  • Loading branch information
valeriocomo committed Nov 27, 2024
1 parent aa98c8e commit 02cf36a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .devcontainer/githooks/pre-push
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh

npm run build
10 changes: 9 additions & 1 deletion .devcontainer/postCreateCommand.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,16 @@
#!/bin/bash

echo PostCreateCommand

echo "NodeJs version"
node -v
go s
echo "GO version"
go version

echo "Set Git hooks"
echo "Set pre-push hook"
cp .devcontainer/githooks/pre-push .git/hooks
chmod +x .git/hooks/pre-push

echo "Install Global Deps"
npm i -g http-server
Expand Down

0 comments on commit 02cf36a

Please sign in to comment.