From 2ed2bc9f2ef986b150159c2245c908adfd81f606 Mon Sep 17 00:00:00 2001 From: n-peugnet Date: Tue, 22 Oct 2019 13:17:10 +0200 Subject: first add of Makefile --- .gitignore | 1 + 1 file changed, 1 insertion(+) (limited to '.gitignore') diff --git a/.gitignore b/.gitignore index 0eb7349..aab868c 100644 --- a/.gitignore +++ b/.gitignore @@ -6,6 +6,7 @@ database/* fonts/* media/* render/ +dist/ vendor/* node_modules/* config.json -- cgit v1.2.3 From aeb582d8b66d256a4c9c989589daab79b535e484 Mon Sep 17 00:00:00 2001 From: n-peugnet Date: Wed, 23 Oct 2019 01:04:30 +0200 Subject: better dist zip target using git archive the removing useless files and adding generated files --- .gitignore | 2 +- Makefile | 15 +++++++++------ 2 files changed, 10 insertions(+), 7 deletions(-) (limited to '.gitignore') diff --git a/.gitignore b/.gitignore index aab868c..7bd5838 100644 --- a/.gitignore +++ b/.gitignore @@ -8,7 +8,7 @@ media/* render/ dist/ vendor/* -node_modules/* +node_modules/ config.json error_log !README.md diff --git a/Makefile b/Makefile index fd30261..bef37ef 100644 --- a/Makefile +++ b/Makefile @@ -12,14 +12,17 @@ dist: distclean $(zip_release) dist/w_cms_%.zip: all @echo "Building Zip release..." mkdir -p $(dir $@) + git archive --format=zip HEAD -o $@ + zip -d $@ \ + "src*" \ + .gitignore \ + composer.lock \ + Makefile \ + "package*" \ + webpack.config.js zip -r $@ \ - app \ - assets \ + assets/js \ vendor \ - .htaccess \ - index.php \ - LICENSE.md \ - README.md \ -x "*test*" \ -x "*docs*" -- cgit v1.2.3