|
33 | 33 | "scripts": { |
34 | 34 | "preinstall": "npx only-allow pnpm", |
35 | 35 | "postinstall": "pnpm build:internals", |
| 36 | + "prepare": "husky install", |
36 | 37 | "bootstrap": "pnpm --filter=\"!./packages/dist/**\" install", |
37 | 38 | "dev": "pnpm build:entry && gulp themeConcat -w & pnpm -C examples/vue3 dev", |
38 | 39 | "dev:saas": "pnpm create:icon-saas && pnpm build:entry && pnpm -C examples/vue3 dev:saas", |
|
119 | 120 | "build:ui-react": "pnpm create:mapping-react && pnpm build:entry-react && pnpm build:react", |
120 | 121 | "pub:react": "pnpm --filter=\"./packages/dist-react/**\" publish --no-git-checks --access=public", |
121 | 122 | "dev:react-site": "pnpm --filter @opentiny/react-site start", |
122 | | - "build:react-site": "pnpm --filter @opentiny/react-site build" |
| 123 | + "build:react-site": "pnpm --filter @opentiny/react-site build", |
| 124 | + "commit": "git-cz" |
123 | 125 | }, |
124 | 126 | "dependencies": { |
125 | 127 | "@vue/composition-api": "1.2.2", |
|
135 | 137 | }, |
136 | 138 | "devDependencies": { |
137 | 139 | "@antfu/eslint-config": "^0.38.6", |
138 | | - "@commitlint/cli": "^17.3.0", |
139 | | - "@commitlint/config-conventional": "^17.3.0", |
140 | 140 | "@types/color": "^3.0.3", |
141 | 141 | "@types/eslint": "^8.4.10", |
142 | 142 | "@types/node": "^18.11.18", |
|
159 | 159 | "gulp-svg-inline": "^1.0.1", |
160 | 160 | "gulp-transform": "^3.0.5", |
161 | 161 | "lerna": "^6.4.0", |
162 | | - "lint-staged": "^13.0.3", |
| 162 | + "lint-staged": "^15.2.0", |
| 163 | + "husky": "^8.0.0", |
| 164 | + "commitlint": "^18.4.3", |
| 165 | + "@commitlint/config-conventional": "^18.4.3", |
| 166 | + "commitizen": "^4.3.0", |
| 167 | + "cz-conventional-changelog": "^3.3.0", |
163 | 168 | "minimist": "^1.2.8", |
164 | 169 | "node-xlsx": "^0.21.0", |
165 | 170 | "prettier": "^3.0.0", |
|
171 | 176 | "vue": "^3.3.9", |
172 | 177 | "vue-tsc": "^1.6.5" |
173 | 178 | }, |
174 | | - "husky": { |
175 | | - "hooks": { |
176 | | - "pre-commit": "lint-staged", |
177 | | - "commit-msg": "commitlint -E HUSKY_GIT_PARAMS" |
178 | | - } |
179 | | - }, |
180 | | - "lint-staged": { |
181 | | - "*.{js,ts,jsx,tsx,vue}": [ |
182 | | - "prettier --write", |
183 | | - "eslint --fix" |
184 | | - ] |
185 | | - }, |
186 | 179 | "config": { |
187 | 180 | "commitizen": { |
188 | 181 | "path": "cz-conventional-changelog" |
|
0 commit comments