mirror of
https://github.com/chenasraf/nextcloud-app-template.git
synced 2026-05-17 17:28:09 +00:00
23 lines
655 B
YAML
23 lines
655 B
YAML
pre-commit:
|
|
parallel: true
|
|
commands:
|
|
eslint:
|
|
glob: "*.{ts,vue}"
|
|
run: pnpm eslint --fix {staged_files} && git add {staged_files}
|
|
prettier:
|
|
glob: "*.{scss,vue,ts,md}"
|
|
run: pnpm prettier --write {staged_files} && git add {staged_files}
|
|
prettier-json:
|
|
glob: "*.json"
|
|
exclude: "openapi.json"
|
|
run: pnpm prettier --write {staged_files} && git add {staged_files}
|
|
php-cs-fixer:
|
|
glob: "*.php"
|
|
exclude: "/gen/"
|
|
env:
|
|
PHP_CS_FIXER_IGNORE_ENV: "1"
|
|
run: make php-cs-fixer && make test
|
|
openapi:
|
|
glob: "*Controller.php"
|
|
run: make openapi && git add openapi.json
|