-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
63 lines (48 loc) · 1.42 KB
/
Makefile
File metadata and controls
63 lines (48 loc) · 1.42 KB
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
.PHONY: install install-php install-js test test-php test-e2e phpstan phpstan-baseline phpcs lint-php dc-up dc-down wporg-sync release-prepare
install: install-php install-js
install-php:
composer install
install-js:
npm install
test: test-php test-e2e
test-php:
php vendor/bin/phpunit
test-e2e:
WP_BASE_URL=http://localhost:8071 WP_ADMIN_USER=test WP_ADMIN_PASS=asdf123jkl; npm run test:e2e
phpstan:
php vendor/bin/phpstan analyse -c phpstan.neon
phpstan-baseline:
php vendor/bin/phpstan analyse -c phpstan.neon --generate-baseline=phpstan-baseline.neon --allow-empty-baseline
phpcs:
php vendor/bin/phpcs --standard=phpcs.xml
phpcbf:
php vendor/bin/phpcbf --standard=phpcs.xml
lint-php: phpstan phpcs
dc-up:
docker compose up -d
dc-down:
docker compose down
wporg-sync:
mkdir -p wporg/trunk wporg/assets wporg/tags
rsync -av --delete \
--exclude "wporg/" \
--exclude ".git/" \
--exclude ".github/" \
--exclude "node_modules/" \
--exclude "tests/" \
--exclude "e2e/" \
--exclude "test-results/" \
--exclude "docker-compose.yml" \
--exclude "Dockerfile" \
--exclude "README.md" \
--exclude "SPECIFICATION.md" \
--exclude "package.json" \
--exclude "package-lock.json" \
--exclude "playwright.config.js" \
--exclude "phpunit.xml" \
--exclude ".phpunit.result.cache" \
--exclude ".env" \
--exclude ".gitignore" \
--exclude ".cursorignore" \
./ wporg/trunk/
release-prepare: test wporg-sync