diff --git a/webapp/.gitignore b/webapp/.gitignore index 4a7b5ee0b0..f3228869ee 100644 --- a/webapp/.gitignore +++ b/webapp/.gitignore @@ -3,6 +3,7 @@ junit.xml node_modules *.tsbuildinfo .rollup.cache +*.tar.gz channels/dist playbooks/dist diff --git a/webapp/Makefile b/webapp/Makefile index 2be54e8ae9..d47f3b5e55 100644 --- a/webapp/Makefile +++ b/webapp/Makefile @@ -76,6 +76,14 @@ clean: ## Clears cached; deletes node_modules and dist directories npm run clean --workspaces --if-present rm -rf node_modules +.PHONY: package +package: node_modules dist ## Generates ./mattermost-webapp.tar.gz for use by someone customizing the web app + mkdir tmp + mv channels/dist tmp/client + tar -C tmp -czf mattermost-webapp.tar.gz client + mv tmp/client channels/dist + rmdir tmp + ## Help documentation à la https://marmelab.com/blog/2016/02/29/auto-documented-makefile.html .PHONY: help help: