2021-03-22 03:25:13 +08:00
|
|
|
{
|
|
|
|
"name": "zero-ui",
|
2022-06-18 19:57:08 +08:00
|
|
|
"version": "1.4.0",
|
2021-08-24 19:13:09 +08:00
|
|
|
"workspaces": [
|
|
|
|
"backend",
|
|
|
|
"frontend"
|
|
|
|
],
|
2021-03-22 03:25:13 +08:00
|
|
|
"scripts": {
|
|
|
|
"postinstall": "husky install",
|
2021-11-04 20:40:38 +08:00
|
|
|
"upgradeDeps": "yarn upgrade-interactive",
|
2021-03-22 03:25:13 +08:00
|
|
|
"cleanDeps": "cd frontend && rimraf node_modules && cd ../backend && rimraf node_modules && cd .. && rimraf node_modules",
|
2021-12-20 00:10:44 +08:00
|
|
|
"lint": "yarn prettier --write .",
|
2021-03-22 03:25:13 +08:00
|
|
|
"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",
|
2022-06-18 19:44:59 +08:00
|
|
|
"release": "standard-version && git push --follow-tags origin main && git add CHANGELOG.md",
|
2021-03-29 06:13:34 +08:00
|
|
|
"commit": "yarn git-cz"
|
2021-03-22 03:25:13 +08:00
|
|
|
},
|
|
|
|
"devDependencies": {
|
2022-06-12 22:06:18 +08:00
|
|
|
"@commitlint/cli": "^17.0.2",
|
|
|
|
"@commitlint/config-conventional": "^17.0.2",
|
2021-05-15 19:38:55 +08:00
|
|
|
"commitizen": "^4.2.4",
|
2022-06-18 19:43:20 +08:00
|
|
|
"concurrently": "^7.2.2",
|
2021-03-22 03:25:13 +08:00
|
|
|
"cross-env": "^7.0.3",
|
2021-03-29 06:13:34 +08:00
|
|
|
"cz-conventional-changelog": "^3.3.0",
|
2022-06-12 22:06:18 +08:00
|
|
|
"husky": "^8.0.1",
|
2022-06-18 19:43:20 +08:00
|
|
|
"lint-staged": "^13.0.2",
|
2022-06-12 22:06:18 +08:00
|
|
|
"nodemon": "^2.0.16",
|
2022-06-18 19:43:20 +08:00
|
|
|
"prettier": "^2.7.1",
|
2021-03-22 03:25:13 +08:00
|
|
|
"rimraf": "^3.0.2",
|
2022-06-12 22:06:18 +08:00
|
|
|
"standard-version": "^9.5.0"
|
2021-03-29 05:28:46 +08:00
|
|
|
},
|
2021-03-29 05:31:26 +08:00
|
|
|
"prettier": {
|
|
|
|
"trailingComma": "es5",
|
|
|
|
"tabWidth": 2,
|
|
|
|
"semi": true,
|
|
|
|
"singleQuote": false
|
|
|
|
},
|
2021-03-29 05:28:46 +08:00
|
|
|
"commitlint": {
|
|
|
|
"extends": [
|
|
|
|
"@commitlint/config-conventional"
|
|
|
|
]
|
2021-03-29 06:13:34 +08:00
|
|
|
},
|
|
|
|
"config": {
|
|
|
|
"commitizen": {
|
|
|
|
"path": "cz-conventional-changelog"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"lint-staged": {
|
|
|
|
"*.{tsx,ts,js,jsx,scss,css,js,json,md}": [
|
|
|
|
"yarn prettier --write"
|
|
|
|
]
|
2021-12-16 21:00:31 +08:00
|
|
|
},
|
2022-06-12 21:32:58 +08:00
|
|
|
"packageManager": "yarn@3.2.1"
|
2021-03-22 03:25:13 +08:00
|
|
|
}
|