Skip to content

Commit

Permalink
Add theme release to makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisWiegman committed Aug 20, 2020
1 parent 6ca778a commit cf8b1bb
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -202,6 +202,7 @@ vendor
/theme/assets/*.map
coverage.clover
/theme/scripts/*-min.js
chriswiegman-theme.zip

# Docker files
Docker/database
Expand Down
13 changes: 12 additions & 1 deletion Makefile
Expand Up @@ -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:
Expand All @@ -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
Expand Down Expand Up @@ -89,6 +97,9 @@ ifdef HAS_LANDO
fi
endif

.PHONY: relase
release: chriswiegman-theme.zip

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

0 comments on commit cf8b1bb

Please sign in to comment.