-
Notifications
You must be signed in to change notification settings - Fork 25
/
Makefile
35 lines (26 loc) · 832 Bytes
/
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
CURPATH := $(abspath $(lastword $(MAKEFILE_LIST)))
CURDIR := $(notdir $(patsubst %/,%,$(dir $(CURPATH))))
lint:
./vendor/bin/phpcs --standard=phpcs.ruleset.xml
run:
docker-compose up --build -d
yarn run start
reset:
docker-compose down --volumes
rebuild:
reset
docker-compose build --no-cache
install:
docker exec ${CURDIR}_wordpress_1 wp core install --url='localhost:8888' --title='Example' --admin_user='admin' --admin_password='root' --admin_email='admin@example.com'
activate:
docker exec ${CURDIR}_wordpress_1 wp plugin activate disqus
js:
yarn run build
docker-test:
docker-compose -f docker-compose.test.yml rm -f -v
docker-compose -f docker-compose.test.yml build
docker-compose -f docker-compose.test.yml up --abort-on-container-exit
dist:
yarn run build
rm -f disqus.zip
zip -r disqus.zip disqus