-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.justfile
49 lines (38 loc) · 1.04 KB
/
.justfile
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
# SPDX-FileCopyrightText: 2022-2024 Temple University <[email protected]>
# SPDX-License-Identifier: GPL-3.0-or-later
###: <https://just.systems/man/en/>
import '.config/vars.just'
[group: "php"]
mod php '.config/php'
[group: "release"]
mod release '.config/release'
[group: "licensing"]
mod reuse '.config/reuse'
php-lint-project-cmd := "nix run 'github:kleinweb/beams#php-lint-project'"
# Display a list of available tasks as the default command
default:
@just --choose
[group: "qa"]
[doc: "Check for any lint or formatting issues on project files"]
check:
dotenv-linter check
biome check {{prj-root}}
{{php-lint-project-cmd}}
composer php-cs-fixer -- check
composer phpcs
composer phpstan
[group: "qa"]
[doc: "Check for (non-stylistic) linting issues on project files"]
lint:
biome lint {{prj-root}}
{{php-lint-project-cmd}}
composer lint
[group: "qa"]
[doc: "Write *all* formatter+fixer changes to project files"]
fix:
treefmt
composer fix
[group: "qa"]
[doc: "Write _safe_ formatter changes to project files"]
fmt:
treefmt