Skip to content

Commit 9cebfab

Browse files
setup precommit hook to rebuild lock-closed bundle and run prettier (#41)
1 parent 9d82b3d commit 9cebfab

File tree

3 files changed

+683
-0
lines changed

3 files changed

+683
-0
lines changed

package.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"devDependencies": {
3+
"husky": "^3.0.5",
4+
"prettier": "^1.18.2",
5+
"pretty-quick": "^1.11.1"
6+
},
7+
"husky": {
8+
"hooks": {
9+
"pre-commit": "./scripts/pre-commit.sh"
10+
}
11+
}
12+
}

scripts/pre-commit.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Run prettier over the repo
2+
yarn pretty-quick;
3+
4+
# Build lock-closed github action bundle.
5+
yarn --cwd github-actions/lock-closed build;

0 commit comments

Comments
 (0)