2015-09-17 21:40:02 +00:00
|
|
|
NPM = npm
|
2015-09-16 01:24:31 +00:00
|
|
|
BROWSERIFY = ./node_modules/.bin/browserify
|
2015-09-17 21:40:02 +00:00
|
|
|
UGLIFYJS = ./node_modules/.bin/uglifyjs
|
|
|
|
EXORCIST = ./node_modules/.bin/exorcist
|
2015-09-15 19:18:34 +00:00
|
|
|
DEPLOY_DIR = libs
|
2015-09-17 21:40:02 +00:00
|
|
|
BROWSERIFY_FLAGS = -d -x jquery
|
2014-12-17 16:21:25 +00:00
|
|
|
OUTPUT_DIR = .
|
2015-01-22 15:36:12 +00:00
|
|
|
|
2015-09-17 21:40:02 +00:00
|
|
|
all: compile uglify deploy clean
|
2014-12-17 16:21:25 +00:00
|
|
|
|
2015-09-17 21:40:02 +00:00
|
|
|
compile:
|
|
|
|
$(NPM) update && $(BROWSERIFY) $(BROWSERIFY_FLAGS) -e app.js -s APP | $(EXORCIST) $(OUTPUT_DIR)/app.bundle.js.map > $(OUTPUT_DIR)/app.bundle.js
|
2014-12-17 16:21:25 +00:00
|
|
|
|
|
|
|
clean:
|
2015-09-17 21:40:02 +00:00
|
|
|
rm -f $(OUTPUT_DIR)/app.bundle.*
|
2014-12-17 16:21:25 +00:00
|
|
|
|
|
|
|
deploy:
|
2015-08-03 18:16:00 +00:00
|
|
|
mkdir -p $(DEPLOY_DIR) && \
|
2015-09-17 21:40:02 +00:00
|
|
|
cp $(OUTPUT_DIR)/app.bundle.min.js $(OUTPUT_DIR)/app.bundle.min.map $(DEPLOY_DIR) && \
|
2015-08-03 18:16:00 +00:00
|
|
|
./bump-js-versions.sh && \
|
|
|
|
([ ! -x deploy-local.sh ] || ./deploy-local.sh)
|
2015-09-11 04:06:29 +00:00
|
|
|
|
|
|
|
uglify:
|
2015-09-17 21:40:02 +00:00
|
|
|
$(UGLIFYJS) -p relative $(OUTPUT_DIR)/app.bundle.js -o $(OUTPUT_DIR)/app.bundle.min.js --source-map $(OUTPUT_DIR)/app.bundle.min.map --in-source-map $(OUTPUT_DIR)/app.bundle.js.map
|
2015-09-11 04:06:29 +00:00
|
|
|
|
|
|
|
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
|