DOC_DIR = ./doc/code
DOC_CONFIG_DIR = ./doc/config
DOC_CUSTOM_CSS = custom-1
+UGLIFY_BIN = ./node_modules/.bin/uglifyjs
SOURCE_DIR = ./src
ASSETS_DIR = ./assets
ASSETS_OUT = $(SOURCE_DIR)/assets.js
DEFAULT_COMPONENTS = core widget baseclient caching modules debug legacy googledrive dropbox
NOCACHE_COMPONENTS = core widget baseclient modules debug legacy googledrive dropbox
-NODEJS_COMPONENTS = core baseclient caching modules legacy
+NODEJS_COMPONENTS = core baseclient caching modules legacy nodejs
default: help
@echo "compile-assets - compile $(ASSETS_DIR)/* into $(ASSETS_OUT)"
@echo "clean - remove all builds and editor swapfiles"
+
all: compile-assets build build-amd minify build-nocache build-node doc
+
build-all: all
minify: remotestorage.min.js
build: remotestorage.js
%.min.js: %.js
# uglifyjs $< -o $@ --mangle --wrap --export-all
- uglifyjs -o $@ $<
+ $(UGLIFY_BIN) -o $@ $<
mv $@ $@.tmp
head -n1 $< > $@
cat $@.tmp >> $@