forked from bramp/js-sequence-diagrams
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
42 lines (34 loc) · 963 Bytes
/
Makefile
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
.PHONY : all test clean lint
all: node_modules lint build/sequence-diagram-min.js
node_modules: package.json
#
# NPM Update needed.
#
npm update
clean:
rm build/*
lint:
jshint src/*.js
jshint test/grammar-tests.js
build/grammar.js: src/grammar.jison
jison $< -o $@
build/diagram-grammar.js: src/diagram.js build/grammar.js
#
# Compiling grammar
#
jspp $< > $@
build/sequence-diagram-min.js build/sequence-diagram-min.js.map: src/copyright.js build/diagram-grammar.js src/jquery-plugin.js fonts/daniel/daniel_700.font.js src/sequence-diagram.js
#
# Please ignore the warnings below (these are in combined js code)
#
uglifyjs \
src/copyright.js \
build/diagram-grammar.js src/jquery-plugin.js fonts/daniel/daniel_700.font.js \
src/sequence-diagram.js \
-o build/sequence-diagram-min.js \
-c --comments \
--source-map build/sequence-diagram-min.js.map
#
# Copy minified file to site
#
cp build/sequence-diagram-min.js* _site/