Skip to content

Commit

Permalink
chore: commit vercel.json, update husky (#1896)
Browse files Browse the repository at this point in the history
  • Loading branch information
nolanlawson authored Nov 23, 2020
1 parent ac08a53 commit de2c58b
Show file tree
Hide file tree
Showing 6 changed files with 527 additions and 45 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
/static/emoji-all-en.json
/src/inline-script/checksum.js
yarn-error.log
/vercel.json

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

set -e
set -x

PATH="$PATH:./node_modules/.bin"

lint-staged
run-s build-vercel-json
git add vercel.json
7 changes: 1 addition & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@
"assert": "^2.0.0",
"eslint-plugin-html": "^6.1.0",
"fake-indexeddb": "^3.1.2",
"husky": "^4.2.5",
"husky": "^5.0.4",
"lint-staged": "^10.3.0",
"mocha": "^8.1.3",
"standard": "^14.3.4",
Expand Down Expand Up @@ -174,11 +174,6 @@
"url": "https://github.com/nolanlawson/pinafore/issues"
},
"homepage": "https://github.com/nolanlawson/pinafore#readme",
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"*.js": "standard --fix",
"*.html": "standard --fix --plugin html 'src/routes/**/*.html'"
Expand Down
Loading

0 comments on commit de2c58b

Please sign in to comment.