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-10-06 19:50:06 +00:00
|
|
|
CLEANCSS = ./node_modules/.bin/cleancss
|
2016-05-07 01:50:37 +00:00
|
|
|
CSS_FILES = font.css toastr.css main.css videolayout_default.css font-awesome.css jquery-impromptu.css modaldialog.css notice.css popup_menu.css login_menu.css popover.css jitsi_popover.css contact_list.css chat.css welcome_page.css settingsmenu.css feedback.css jquery.contextMenu.css
|
2015-09-15 19:18:34 +00:00
|
|
|
DEPLOY_DIR = libs
|
2015-09-10 17:15:56 +00:00
|
|
|
BROWSERIFY_FLAGS = -d
|
2014-12-17 16:21:25 +00:00
|
|
|
OUTPUT_DIR = .
|
2016-01-28 21:06:09 +00:00
|
|
|
LIBJITSIMEET_DIR = node_modules/lib-jitsi-meet/
|
2015-01-22 15:36:12 +00:00
|
|
|
|
2015-11-30 11:54:54 +00:00
|
|
|
all: update-deps compile uglify deploy clean
|
|
|
|
|
|
|
|
update-deps:
|
2016-06-10 19:43:29 +00:00
|
|
|
$(NPM) install
|
2014-12-17 16:21:25 +00:00
|
|
|
|
2015-09-17 21:40:02 +00:00
|
|
|
compile:
|
2015-11-30 11:54:54 +00:00
|
|
|
$(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
|
|
|
|
2016-01-28 23:43:48 +00:00
|
|
|
deploy: deploy-init deploy-appbundle deploy-lib-jitsi-meet deploy-css deploy-local
|
|
|
|
|
|
|
|
deploy-init:
|
|
|
|
mkdir -p $(DEPLOY_DIR)
|
|
|
|
|
|
|
|
deploy-appbundle:
|
2016-01-28 21:06:09 +00:00
|
|
|
cp $(OUTPUT_DIR)/app.bundle.min.js $(OUTPUT_DIR)/app.bundle.min.map \
|
2016-05-09 08:49:04 +00:00
|
|
|
$(OUTPUT_DIR)/app.bundle.js \
|
2016-01-28 23:43:48 +00:00
|
|
|
$(DEPLOY_DIR)
|
|
|
|
|
|
|
|
deploy-lib-jitsi-meet:
|
|
|
|
cp $(LIBJITSIMEET_DIR)/lib-jitsi-meet.min.js \
|
2016-03-28 21:19:32 +00:00
|
|
|
$(LIBJITSIMEET_DIR)/lib-jitsi-meet.min.map \
|
2016-05-09 08:49:04 +00:00
|
|
|
$(LIBJITSIMEET_DIR)/lib-jitsi-meet.js \
|
2016-03-28 21:19:32 +00:00
|
|
|
$(LIBJITSIMEET_DIR)/connection_optimization/external_connect.js \
|
|
|
|
$(DEPLOY_DIR)
|
2016-01-28 23:43:48 +00:00
|
|
|
deploy-css:
|
|
|
|
(cd css; cat $(CSS_FILES)) | $(CLEANCSS) > css/all.css
|
|
|
|
|
|
|
|
deploy-local:
|
2015-08-03 18:16:00 +00:00
|
|
|
([ ! -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
|
|
|
|
2015-10-06 19:16:47 +00:00
|
|
|
|
2015-09-11 04:06:29 +00:00
|
|
|
source-package:
|
2015-10-06 19:50:06 +00:00
|
|
|
mkdir -p source_package/jitsi-meet/css && \
|
2016-06-01 13:35:18 +00:00
|
|
|
cp -r *.js *.html connection_optimization favicon.ico fonts images libs sounds LICENSE lang source_package/jitsi-meet && \
|
2015-10-06 20:29:26 +00:00
|
|
|
cp css/all.css source_package/jitsi-meet/css && \
|
2016-03-18 14:22:16 +00:00
|
|
|
cp css/unsupported_browser.css source_package/jitsi-meet/css && \
|
2015-09-11 04:06:29 +00:00
|
|
|
(cd source_package ; tar cjf ../jitsi-meet.tar.bz2 jitsi-meet) && \
|
|
|
|
rm -rf source_package
|