-
- Downloads
ci: merge husky and captainhook git hooks into .husky configuration
- hooks are installed automatically with npm install command - add commit-msg, pre-commit and pre-push hooks - integrate captainhook commands into the created git hooks
Showing
- .husky/.gitignore 1 addition, 0 deletions.husky/.gitignore
- .husky/commit-msg 4 additions, 0 deletions.husky/commit-msg
- .husky/pre-commit 11 additions, 0 deletions.husky/pre-commit
- .husky/pre-push 8 additions, 0 deletions.husky/pre-push
- Dockerfile 4 additions, 1 deletionDockerfile
- composer.json 0 additions, 6 deletionscomposer.json
- composer.lock 7 additions, 62 deletionscomposer.lock
- package-lock.json 21 additions, 18 deletionspackage-lock.json
- package.json 4 additions, 8 deletionspackage.json
- scripts/bundle-prepare.sh 0 additions, 4 deletionsscripts/bundle-prepare.sh
.husky/.gitignore
0 → 100644
.husky/commit-msg
0 → 100755
.husky/pre-commit
0 → 100755
.husky/pre-push
0 → 100755
... | ... | @@ -27,7 +27,6 @@ |
"phpunit/phpunit": "^9.5.4", | ||
"rector/rector": "^0.11.5", | ||
"captainhook/captainhook": "^5.10.0", | ||
"captainhook/plugin-composer": "^5.2", | ||
"phpstan/phpstan": "^0.12.85", | ||
"phpstan/extension-installer": "^1.1.0", | ||
"rector/rector-phpstan-rules": "^0.2.9", | ||
... | ... | @@ -74,11 +73,6 @@ |
"@php vendor/podlibre/podcast-namespace/src/ReversedTaxonomyGenerate.php https://raw.githubusercontent.com/Podcastindex-org/podcast-namespace/main/taxonomy-en.json > vendor/podlibre/podcast-namespace/src/ReversedTaxonomy.php" | ||
] | ||
}, | ||
"extra": { | ||
"captainhook": { | ||
"force-install": true | ||
} | ||
}, | ||
"support": { | ||
"source": "https://code.podlibre.org/podlibre/castopod-host.git", | ||
"discord": "https://castopod.org/discord" | ||
... | ... |
... | ... | @@ -25,7 +25,8 @@ |
"prettier:fix": "prettier --write --ignore-path .gitignore .", | ||
"typecheck": "tsc", | ||
"commit": "git-cz", | ||
"release": "semantic-release" | ||
"release": "semantic-release", | ||
"prepare": "is-ci || husky install" | ||
}, | ||
"dependencies": { | ||
"@amcharts/amcharts4": "^4.10.17", | ||
... | ... | @@ -68,7 +69,8 @@ |
"eslint": "^7.22.0", | ||
"eslint-config-prettier": "^8.1.0", | ||
"eslint-plugin-prettier": "^3.3.1", | ||
"husky": "^5.2.0", | ||
"husky": "^6.0.0", | ||
"is-ci": "^3.0.0", | ||
"lint-staged": "^10.5.4", | ||
"postcss": "^8.2.15", | ||
"postcss-cli": "^8.3.1", | ||
... | ... | @@ -88,12 +90,6 @@ |
"tailwindcss": "^2.0.4", | ||
"typescript": "^4.2.3" | ||
}, | ||
"husky": { | ||
"hooks": { | ||
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS", | ||
"pre-commit": "lint-staged" | ||
} | ||
}, | ||
"lint-staged": { | ||
"*.{js,ts,css,md,json}": "prettier --write", | ||
"*.{ts,js}": "eslint --ext js,ts,tsx app/Views/_assets --fix", | ||
... | ... |
Please register or sign in to comment