-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathMakefile
73 lines (50 loc) · 2.03 KB
/
Makefile
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
68
69
70
71
72
73
# Set up and build the entire project
all: install client
# Install all project dependencies
install: install-node install-php
# Install Node dependencies
install-node:
pnpm install
# Install PHP dependencies
install-php:
composer install
# Build the frontend client
client:
pnpm build
# Package for release
release: clean-release client pot
./scripts/package-for-release.sh
# Clean the build directory
clean:
rm -rf build
clean-release: clean
rm -rf release
docker_build:
docker-compose -f docker/docker-compose.yml build
docker_up:
docker-compose -f docker/docker-compose.yml up
docker_up_d:
docker-compose -f docker/docker-compose.yml up -d
docker_stop:
docker-compose -f docker/docker-compose.yml stop
docker_down:
docker-compose -f docker/docker-compose.yml down
docker_sh:
docker-compose -f docker/docker-compose.yml exec wordpress bash
docker_sh_db:
docker-compose -f docker/docker-compose.yml exec db bash
docker_install:
docker-compose -f docker/docker-compose.yml exec wordpress bash -c "/var/scripts/install.sh"
docker_uninstall:
docker-compose -f docker/docker-compose.yml exec wordpress bash -c "/var/scripts/uninstall.sh"
phpunit:
docker-compose -f docker/docker-compose.yml exec wordpress bash -c "cd /var/www/html/wp-content/plugins/crowdsignal-forms && WP_TESTS_DIR=/tmp/wordpress-develop/tests/phpunit ./vendor/bin/phpunit"
phpcs:
docker-compose -f docker/docker-compose.yml exec wordpress bash -c "cd /var/www/html/wp-content/plugins/crowdsignal-forms && ./vendor/bin/phpcs"
phpcbf:
docker-compose -f docker/docker-compose.yml exec wordpress bash -c "cd /var/www/html/wp-content/plugins/crowdsignal-forms && ./vendor/bin/phpcbf"
composer:
docker-compose -f docker/docker-compose.yml exec wordpress bash -c "cd /var/www/html/wp-content/plugins/crowdsignal-forms && composer install"
pot:
./scripts/makepot.sh
.PHONY: install install-node install-php client clean clean-release docker_up_d docker_build docker_up docker_down docker_stop docker_sh docker_install docker_uninstall phpunit phpcs phpcbf composer release pot