Commit 24546da8 authored by lipengcheng 's avatar lipengcheng

x

parent 2aabdbe2
const tasks = (arr) => arr.join(' && ') // const tasks = (arr) => arr.join(' && ')
module.exports = { // module.exports = {
// hooks: { // // hooks: {
// 'commit-msg': 'commitlint -E HUSKY_GIT_PARAMS', // // 'commit-msg': 'commitlint -E HUSKY_GIT_PARAMS',
// 'pre-commit': 'yarn test -u && git add *.md *.snap', // // 'pre-commit': 'yarn test -u && git add *.md *.snap',
// 'pre-push': 'yarn lint && yarn test' // // 'pre-push': 'yarn lint && yarn test'
// } // // }
hooks: { // hooks: {
'pre-commit': 'lint-staged', // 'pre-commit': 'lint-staged',
// 'pre-commit': tasks(['lint-staged', 'yarn commit']), // // 'pre-commit': tasks(['lint-staged', 'yarn commit']),
'commit-msg': 'commitlint -E HUSKY_GIT_PARAMS', // 'commit-msg': 'commitlint -E HUSKY_GIT_PARAMS',
'pre-push': "echo 'pushing....'", // 'pre-push': "echo 'pushing....'",
}, // },
} // }
module.exports = { // module.exports = {
'*': 'ls-lint', // '*': 'ls-lint',
// '**/*.{js,vue}': ['yarn format', 'git add .'], // // '**/*.{js,vue}': ['yarn format', 'git add .'],
'**/*.{js,vue}': ['prettier --write', 'eslint --fix'], // '**/*.{js,vue}': ['prettier --write', 'eslint --fix'],
'**/*.{vue,css,scss}': ['stylelint --fix'], // '**/*.{vue,css,scss}': ['stylelint --fix'],
} // }
[toc] [toc] s
# <%= pkgName %> # <%= pkgName %>
## 项目介绍 ## 项目介绍
......
{ {
"name": "<%= pkgName %>",
"version": "1.0.0", "version": "1.0.0",
"author": "<%= author %>",
"description": "<%= description %>", "description": "<%= description %>",
"private": true, "private": true,
"files": [ "files": [
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment