This repository has been archived by the owner on Mar 2, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 45
/
Makefile
57 lines (43 loc) · 1.59 KB
/
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
default: test
build: public/jumly.min.js \
public/jumly.min.css
public/jumly.min.js public/jumly.min.css: \
dist/bundle.lib.js \
dist/jumly.css \
package.json
./node_modules/.bin/grunt minify
dist/jumly.css: lib/css/*.styl
./node_modules/.bin/grunt stylus
dist/bundle.lib.js dist/bundle.spec.js: \
node_modules/.bin/webpack \
lib/js/*.coffee \
lib/css/*.styl \
spec/*.coffee
./node_modules/.bin/webpack
vendor/coffee-script.js:
mkdir -p vendor && cd vendor; \
curl -OL http://coffeescript.org/extras/coffee-script.js
node_modules/jquery/dist/jquery.js:
npm install
vendor/jasmine/lib/jasmine-2.3.4/jasmine.js:
mkdir -p vendor/jasmine && cd vendor/jasmine; \
curl -OL 'https://github.com/jasmine/jasmine/releases/download/v2.3.4/jasmine-standalone-2.3.4.zip'; \
unzip -o jasmine-standalone-2.3.4.zip; \
touch lib/jasmine-2.3.4/jasmine.js
.PHONY: dev test example karma api clean
dev:
webpack -w
test: dist/bundle.lib.js dist/bundle.spec.js \
vendor/coffee-script.js \
vendor/jasmine/lib/jasmine-2.3.4/jasmine.js
open spec/index.html
example: dist/bundle.lib.js
open examples/bundle.html
karma: vendor/coffee-script.js \
node_modules/jquery/dist/jquery.js \
dist/jumly.css
karma start karma.conf.js
api:
open "http://localhost:3000/api/diagrams?data=%40found%20%22You%22%2C%20-%3E%0A%20%20%40message%20%22Think%22%2C%20-%3E%0A%20%20%20%20%40message%20%22Write%20your%20idea%22%2C%20%22JUMLY%22%2C%20-%3E%0A%20%20%20%20%20%20%40create%20%22Diagram%22%0Ajumly.css%20%22background-color%22%3A%22%238CC84B%22"
clean:
rm -rf build dist vendor