28 строки
728 B
Makefile
28 строки
728 B
Makefile
.PHONY: reinstall test
|
|
|
|
WP_CLI = tools/wp-cli.phar
|
|
PHPUNIT = tools/phpunit.phar
|
|
|
|
reinstall: $(WP_CLI)
|
|
$(WP_CLI) plugin uninstall --deactivate wp-app-manifest --path=$(WORDPRESS_PATH)
|
|
rm -f wp-app-manifest.zip
|
|
zip wp-app-manifest.zip -r wp-app-manifest/
|
|
$(WP_CLI) plugin install --activate wp-app-manifest.zip --path=$(WORDPRESS_PATH)
|
|
|
|
test: $(PHPUNIT)
|
|
$(PHPUNIT)
|
|
|
|
tools/wp-cli.phar:
|
|
mkdir -p tools
|
|
wget -P tools -N https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar
|
|
chmod +x $(WP_CLI)
|
|
|
|
tools/phpunit.phar:
|
|
mkdir -p tools
|
|
wget -P tools -N https://phar.phpunit.de/phpunit-old.phar
|
|
mv tools/phpunit-old.phar tools/phpunit.phar
|
|
chmod +x $(PHPUNIT)
|
|
|
|
build:
|
|
cd wp-add-to-homescreen && bower update
|