Skip to content

Commit

Permalink
feat: add husky v7 in template 🐶
Browse files Browse the repository at this point in the history
  • Loading branch information
vinayakkulkarni committed Jul 31, 2021
1 parent 0e77fce commit cc9b858
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions template/base/_package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
"lint:css": "stylelint \"{,!(node_modules|dist)/**/}*.{css,scss,vue}\" --ignore-path .gitignore",
"lint:css:fix": "stylelint --fix \"{,!(node_modules|dist)/**/}*.{css,scss,vue}\" --ignore-path .gitignore",
"lint-staged": "lint-staged",
"prepare": "husky install",
<%_ if (docs === 'vuepress') { _%>
"docs:dev": "vuepress dev docs",
"docs:build": "vuepress build docs",
Expand Down
5 changes: 5 additions & 0 deletions test/snapshots/index.test.js.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ Generated by [AVA](https://avajs.dev).
'lint:prettier': 'prettier --check "{,!(node_modules|dist)/**/}*.{js,ts,vue}" --ignore-path .gitignore',
'lint:prettier:fix': 'prettier --write "{,!(node_modules|dist)/**/}*.{js,ts,vue}" --ignore-path .gitignore',
lintfix: 'npm run lint:prettier:fix && npm run lint:eslint:fix && npm run lint:css:fix',
prepare: 'husky install',
release: 'shipjs prepare',
test: 'ava',
'test:snapshot': 'ava --update-snapshots',
Expand Down Expand Up @@ -272,6 +273,7 @@ Generated by [AVA](https://avajs.dev).
'lint:prettier': 'prettier --check "{,!(node_modules|dist)/**/}*.{js,ts,vue}" --ignore-path .gitignore',
'lint:prettier:fix': 'prettier --write "{,!(node_modules|dist)/**/}*.{js,ts,vue}" --ignore-path .gitignore',
lintfix: 'npm run lint:prettier:fix && npm run lint:eslint:fix && npm run lint:css:fix',
prepare: 'husky install',
release: 'shipjs prepare',
test: 'ava',
'test:snapshot': 'ava --update-snapshots',
Expand Down Expand Up @@ -408,6 +410,7 @@ Generated by [AVA](https://avajs.dev).
'lint:prettier': 'prettier --check "{,!(node_modules|dist)/**/}*.{js,ts,vue}" --ignore-path .gitignore',
'lint:prettier:fix': 'prettier --write "{,!(node_modules|dist)/**/}*.{js,ts,vue}" --ignore-path .gitignore',
lintfix: 'npm run lint:prettier:fix && npm run lint:eslint:fix && npm run lint:css:fix',
prepare: 'husky install',
release: 'shipjs prepare',
test: 'ava',
'test:snapshot': 'ava --update-snapshots',
Expand Down Expand Up @@ -544,6 +547,7 @@ Generated by [AVA](https://avajs.dev).
'lint:prettier': 'prettier --check "{,!(node_modules|dist)/**/}*.{js,ts,vue}" --ignore-path .gitignore',
'lint:prettier:fix': 'prettier --write "{,!(node_modules|dist)/**/}*.{js,ts,vue}" --ignore-path .gitignore',
lintfix: 'npm run lint:prettier:fix && npm run lint:eslint:fix && npm run lint:css:fix',
prepare: 'husky install',
release: 'shipjs prepare',
test: 'ava',
'test:snapshot': 'ava --update-snapshots',
Expand Down Expand Up @@ -680,6 +684,7 @@ Generated by [AVA](https://avajs.dev).
'lint:prettier': 'prettier --check "{,!(node_modules|dist)/**/}*.{js,ts,vue}" --ignore-path .gitignore',
'lint:prettier:fix': 'prettier --write "{,!(node_modules|dist)/**/}*.{js,ts,vue}" --ignore-path .gitignore',
lintfix: 'npm run lint:prettier:fix && npm run lint:eslint:fix && npm run lint:css:fix',
prepare: 'husky install',
release: 'shipjs prepare',
test: 'ava',
'test:snapshot': 'ava --update-snapshots',
Expand Down
Binary file modified test/snapshots/index.test.js.snap
Binary file not shown.

0 comments on commit cc9b858

Please sign in to comment.