-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-hooks.yaml
62 lines (62 loc) · 1.8 KB
/
.pre-commit-hooks.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
- id: docker_hot_eslint
name: ESLint
language: system
entry: docker-compose run --rm -T hot npm run
args: [lint:fix]
files: '^(resources/(js|ts)|package(-lock)?\.json)'
pass_filenames: false
- id: docker_hot_format
name: Stylelint
entry: docker-compose run --rm -T hot npm run
args: [format]
language: system
files: '^(resources/.*\.(vue|css)|package(-lock)?\.json)'
pass_filenames: false
- id: docker_hot_stylelint
name: Stylelint
entry: docker-compose run --rm -T hot npm run
args: [stylelint-lint]
language: system
files: '^(resources/.*\.(vue|css)|package(-lock)?\.json)'
pass_filenames: false
- id: docker_hot_pint
name: Pint
language: system
entry: docker-compose run --rm -T app ./vendor/bin/pint
files: '^(.*\.php|composer\.(json|lock))'
pass_filenames: false
- id: docker_hot_larastan
name: Larastan
language: system
entry: docker-compose run --rm -T app ./vendor/bin/phpstan analyse
args: [--memory-limit=2G]
files: '^(.*\.php|composer\.(json|lock))'
pass_filenames: false
- id: docker_hot_backend_test
name: Backend Test
language: system
entry: docker-compose run --rm -T app php artisan test
args: [--parallel]
files: '^(.*\.php|composer\.(json|lock))'
pass_filenames: false
- id: docker_hot_vtsc
name: Vtsc
language: system
entry: docker-compose run --rm -T hot npm run
args: [vtsc]
files: '^(resources/(js|ts)|tsconfig\.json)'
pass_filenames: false
- id: docker_hot_vitest
name: Vitest
language: system
entry: docker-compose run --rm -T hot npm run
args: [test, run]
files: '^(resources/(js|ts)|package(-lock)?\.json)'
pass_filenames: false
- id: docker_hot_frontend_build
name: Frontend Build
language: system
entry: docker-compose run --rm -T hot npm run
args: [build]
files: '^resources/(js|ts)'
pass_filenames: false