Skip to content
Permalink
Browse files

Add theme release to makefile

  • Loading branch information
ChrisWiegman committed Aug 20, 2020
1 parent 6ca778a commit cf8b1bbafcedcb08bd4374c68580b7065cad8e84
Showing with 13 additions and 1 deletion.
  1. +1 −0 .gitignore
  2. +12 −1 Makefile
@@ -202,6 +202,7 @@ vendor
/theme/assets/*.map
coverage.clover
/theme/scripts/*-min.js
chriswiegman-theme.zip

# Docker files
Docker/database
@@ -34,8 +34,11 @@ build-docker-php:
docker build -f Docker/Dockerfile-php -t wpunit .; \
fi

chriswiegman-theme.zip: clean-release build-assets
zip -r chriswiegman-theme.zip ./theme

.PHONY: clean
clean: stop clean-assets clean-build
clean: stop clean-assets clean-build clean-release

.PHONY: clean-assets
clean-assets:
@@ -48,6 +51,11 @@ clean-build:
@echo "Cleaning up build-artifacts"
rm -rf node_modules wordpress build vendor clover.xml

.PHONY: clean-release
clean-release:
@echo "Cleaning up release file"
rm -f chriswiegman-theme.zip

.PHONY: install
install: | clean-assets clean-build
$(MAKE) install-composer
@@ -89,6 +97,9 @@ ifdef HAS_LANDO
fi
endif

.PHONY: relase
release: chriswiegman-theme.zip

.PHONY: setup-wordpress
setup-wordpress:
@echo "Setting up WordPress"

0 comments on commit cf8b1bb

Please sign in to comment.
You can’t perform that action at this time.