Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Latest commit

 

History

History
History
67 lines (51 loc) · 1.94 KB

File metadata and controls

67 lines (51 loc) · 1.94 KB
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
63
64
65
66
67
.PHONY: it
it: fix stan test docs ## Run the commonly used targets
.PHONY: help
help: ## Displays this list of targets with descriptions
@grep --extended-regexp '^\.?[a-zA-Z0-9_-]+:.*?## .*$$' $(firstword $(MAKEFILE_LIST)) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[32m%-30s\033[0m %s\n", $$1, $$2}'
.PHONY: setup
setup: vendor phpstan.neon ai-sync ## Set up the project
.PHONY: fix
fix: rector php-cs-fixer prettier ## Automatic code fixes
.PHONY: rector
rector: vendor ## Automatic code fixes with Rector
composer rector
define run-php-cs-fixer
docker build --quiet --tag="graphql-php-cs-fixer-$(1)" --build-arg="IMAGE=$(1)" --file=.php-cs-fixer.dockerfile .
docker run --rm --volume="$(PWD):/app" "graphql-php-cs-fixer-$(1)" $(2)
endef
.PHONY: php-cs-fixer
php-cs-fixer: ## Fix code style
$(call run-php-cs-fixer,php:7.4-cli-bullseye)
$(call run-php-cs-fixer,php:8.0-cli-bullseye,--path-mode=intersection src/Type/Definition/Deprecated.php src/Type/Definition/Description.php)
$(call run-php-cs-fixer,php:8.1-cli-trixie,--path-mode=intersection src/Type/Definition/PhpEnumType.php tests/Type/PhpEnumType)
.PHONY: prettier
prettier: ## Format code with prettier
npx --yes prettier --write --tab-width=2 '*.md' '**/*.md'
phpstan.neon:
printf "includes:\n - phpstan.neon.dist" > phpstan.neon
.PHONY: stan
stan: ## Runs static analysis with PHPStan
composer stan
.PHONY: baseline
baseline: ## Regenerate the PHPStan baseline
composer baseline
.PHONY: test
test: ## Runs tests with PHPUnit
composer test
.PHONY: bench
bench: ## Runs benchmarks with PHPBench
composer bench
.PHONY: docs
docs: ## Generate the class-reference docs
php generate-class-reference.php
npx --yes prettier --write docs/class-reference.md
.PHONY: ai-sync
ai-sync: ## Generate local agent configuration from .ai
npx --yes lnai@0.6.7 sync
vendor: composer.json composer.lock
composer install
composer validate
composer normalize
composer.lock: composer.json
composer update
Morty Proxy This is a proxified and sanitized view of the page, visit original site.