From 2dbd80c0485dc0198ac0703140ae69dae4a106fd Mon Sep 17 00:00:00 2001 From: Boris Grozev Date: Thu, 10 Sep 2015 23:06:29 -0500 Subject: [PATCH] Adds a source-package and uglify targets to the makefile. --- Makefile | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Makefile b/Makefile index 1dca402b07..9ab630d36a 100644 --- a/Makefile +++ b/Makefile @@ -25,3 +25,13 @@ deploy: cp $(OUTPUT_DIR)/*.bundle.js $(DEPLOY_DIR) && \ ./bump-js-versions.sh && \ ([ ! -x deploy-local.sh ] || ./deploy-local.sh) + +uglify: + uglifyjs libs/app.bundle.js -o libs/app.bundle.min.js --source-map libs/app.bundle.js.map + rm -f libs/app.bundle.js + +source-package: + mkdir -p source_package/jitsi-meet && \ + cp -r analytics.js app.js css external_api.js favicon.ico fonts images index.html interface_config.js libs plugin.*html sounds title.html unsupported_browser.html LICENSE config.js lang source_package/jitsi-meet && \ + (cd source_package ; tar cjf ../jitsi-meet.tar.bz2 jitsi-meet) && \ + rm -rf source_package