chore(package.json): better dev tools

This commit is contained in:
dec0dOS 2021-03-29 01:13:34 +03:00
parent 049fb47b95
commit fce118e23b
4 changed files with 1256 additions and 20 deletions

View file

@ -1,4 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
yarn commitlint --edit
yarn commitlint --edit $1

4
.husky/pre-commit Executable file
View file

@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
yarn lint-staged

View file

@ -10,15 +10,20 @@
"dev": "concurrently \"cd frontend && cross-env FAST_REFRESH=true yarn start\" \"cd backend && cross-env NODE_ENV=development ZU_DEFAULT_USERNAME=admin ZU_DEFAULT_PASSWORD=zero-ui nodemon ./bin/www --ignore data/db.json\"",
"build": "cd frontend && cross-env INLINE_RUNTIME_CHUNK=false GENERATE_SOURCEMAP=false yarn build",
"prod": "cd backend && cross-env NODE_ENV=production ZU_SECURE_HEADERS=false yarn start",
"release": "standard-version && git push --follow-tags origin main"
"release": "standard-version && git push --follow-tags origin main",
"commit": "yarn git-cz"
},
"devDependencies": {
"@commitlint/cli": "^12.0.1",
"@commitlint/config-conventional": "^12.0.1",
"commitizen": "^4.2.3",
"concurrently": "^6.0.0",
"cross-env": "^7.0.3",
"cz-conventional-changelog": "^3.3.0",
"husky": "^5.1.3",
"lint-staged": "^10.5.4",
"nodemon": "^2.0.7",
"prettier": "^2.2.1",
"rimraf": "^3.0.2",
"standard-version": "^9.1.1"
},
@ -32,5 +37,15 @@
"extends": [
"@commitlint/config-conventional"
]
},
"config": {
"commitizen": {
"path": "cz-conventional-changelog"
}
},
"lint-staged": {
"*.{tsx,ts,js,jsx,scss,css,js,json,md}": [
"yarn prettier --write"
]
}
}

1253
yarn.lock

File diff suppressed because it is too large Load diff