forked from aadsm/JavaScript-ID3-Reader
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
26 lines (23 loc) · 660 Bytes
/
Makefile
File metadata and controls
26 lines (23 loc) · 660 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# Binaries
BROWSERIFY = ./node_modules/.bin/browserify
CLOSURE_COMPILER=./node_modules/google-closure-compiler/compiler.jar
.PHONY: dist debug
dist:
$(BROWSERIFY) ./src/id3.js --standalone ID3 \
--exclude xmlhttprequest \
--exclude btoa \
--exclude atob \
--no-builtins > output.js
sed -i.bak "s/\.ID3/['ID3']/g" output.js
java -jar $(CLOSURE_COMPILER) \
--compilation_level ADVANCED_OPTIMIZATIONS \
--js output.js \
> dist/id3-minimized.js
#--formatting PRETTY_PRINT
rm output.js*
debug:
$(BROWSERIFY) ./src/id3.js --standalone ID3 \
--exclude xmlhttprequest \
--exclude btoa \
--exclude atob \
--no-builtins --debug > dist/id3-debug.js