Skip to content

Commit

Permalink
Add pre-commit hook and update gitattributes
Browse files Browse the repository at this point in the history
  • Loading branch information
LouisBoudreau committed Feb 22, 2022
1 parent 4661d3d commit cfbbe6a
Show file tree
Hide file tree
Showing 9 changed files with 219 additions and 197 deletions.
16 changes: 15 additions & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
@@ -1 +1,15 @@
dist/** -diff linguist-generated=true
# Prevent build from appearing in github diff's
# https://docs.github.com/en/repositories/working-with-files/managing-files/customizing-how-changed-files-appear-on-github
dist/** -diff linguist-generated=true

# Control the archive attached to releases
# https://git-scm.com/docs/gitattributes#_creating_an_archive
* export-ignore

package.json -export-ignore
README.md -export-ignore
LICENSE -export-ignore

dist/** -export-ignore
dist -export-ignore

6 changes: 6 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

rm -rf ./dist
yarn package
git add ./dist
File renamed without changes.
Loading

0 comments on commit cfbbe6a

Please sign in to comment.