zero-ui/package.json
2024-07-09 19:58:54 +01:00

61 lines
2.1 KiB
JSON

{
"name": "zero-ui",
"version": "1.5.8",
"workspaces": [
"backend",
"frontend"
],
"scripts": {
"postinstall": "husky install",
"upgrade:deps": "yarn upgrade-interactive",
"upgrade:yarn": "yarn set version latest",
"clean:deps": "cd frontend && rimraf node_modules && cd ../backend && rimraf node_modules && cd .. && rimraf node_modules",
"format": "yarn prettier --check .",
"format:fix": "yarn prettier --write .",
"lint": "yarn workspaces foreach --all --parallel run lint",
"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 GENERATE_SOURCEMAP=false yarn build",
"prod": "cd backend && cross-env NODE_ENV=production ZU_SECURE_HEADERS=false yarn start",
"docker:build": "docker build . -t dec0dos/zero-ui -f docker/zero-ui/Dockerfile --progress=plain",
"docker:run": "docker run --rm --env-file .env -e ZU_CONTROLLER_ENDPOINT=http://host.docker.internal:9993 -p 4000:4000 --name zero-ui dec0dos/zero-ui",
"release": "standard-version && git push --follow-tags origin main && git add CHANGELOG.md",
"commit": "yarn git-cz"
},
"devDependencies": {
"@commitlint/cli": "^17.7.2",
"@commitlint/config-conventional": "^17.7.0",
"commitizen": "^4.3.0",
"concurrently": "^8.2.1",
"cross-env": "^7.0.3",
"cz-conventional-changelog": "^3.3.0",
"husky": "^8.0.3",
"lint-staged": "^14.0.1",
"nodemon": "^3.0.1",
"prettier": "^3.0.3",
"rimraf": "^5.0.5",
"standard-version": "^9.5.0"
},
"prettier": {
"trailingComma": "es5",
"tabWidth": 2,
"semi": true,
"singleQuote": false
},
"commitlint": {
"extends": [
"@commitlint/config-conventional"
]
},
"config": {
"commitizen": {
"path": "cz-conventional-changelog"
}
},
"lint-staged": {
"*.{tsx,ts,js,jsx,scss,css,js,json,md}": [
"yarn prettier --write"
]
},
"packageManager": "yarn@4.3.1"
}