chore: update husky

v3-form
tangjinzhou 2021-09-19 21:26:18 +08:00
parent e48bc13c6a
commit c4a60d6070
6 changed files with 12 additions and 7 deletions

1
.gitignore vendored
View File

@ -63,7 +63,6 @@ _site
yarn.lock
package-lock.json
/coverage
.husky
# 备份文件
/components/test/*

1
.husky/.gitignore vendored Normal file
View File

@ -0,0 +1 @@
_

4
.husky/pre-commit Executable file
View File

@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
npx --no-install pretty-quick --staged

View File

@ -15,6 +15,7 @@
</demo-sort>
</template>
<script lang="ts">
import { defineComponent } from 'vue';
import Basic from './basic.vue';
import CustomValidation from './custom-validation.vue';
import DynamicFormItem from './dynamic-form-item.vue';
@ -27,11 +28,10 @@ import UseFormNested from './useForm-nested.vue';
import UseFormTrigger from './useForm-trigger.vue';
import UseFormMerge from './useForm-merge.vue';
import LableWidth from './lable-width.vue';
import CN from '../index.zh-CN.md';
import US from '../index.en-US.md';
export default {
export default defineComponent({
US,
CN,
components: {
@ -48,7 +48,7 @@ export default {
UseFormMerge,
LableWidth,
},
};
});
</script>
<style>
.code-box-demo .ant-form:not(.ant-form-inline):not(.ant-form-vertical) {

View File

@ -51,7 +51,8 @@
"routes": "node site/scripts/genrateRoutes.js",
"tsc": "tsc --noEmit",
"site": "yarn routes && ./node_modules/vite/bin/vite.js build site --base=https://next.antdv.com/",
"pub:site": "npm run site && node site/scripts/pushToOSS.js"
"pub:site": "npm run site && node site/scripts/pushToOSS.js",
"prepare": "husky install"
},
"repository": {
"type": "git",
@ -156,7 +157,7 @@
"gulp-strip-code": "^0.1.4",
"gulp-typescript": "^6.0.0-alpha.1",
"html-webpack-plugin": "^5.3.1",
"husky": "^4.0.0",
"husky": "^6.0.0",
"ignore-emit-webpack-plugin": "^2.0.6",
"jest": "^26.0.0",
"jest-environment-jsdom-fifteen": "^1.0.2",

View File

@ -1,5 +1,5 @@
// debugger tsx
import Demo from '../../components/modal/demo/index.vue';
import Demo from '../../components/form/demo/index.vue';
export default {
render() {