forked from koenbok/Framer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
34 lines (27 loc) · 849 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
all: build
build:
make lint
make clean
mkdir -p build
./node_modules/coffee-script/bin/coffee scripts/banner.coffee > build/framer.js
./node_modules/browserify/bin/cmd.js src/init.coffee >> build/framer.js
cp build/framer.js template/framer.js
buildw:
./node_modules/coffee-script/bin/coffee scripts/watch.coffee . make build
test:
make
mkdir -p test/lib
cp build/framer.js test/lib/framer.js
./node_modules/browserify/bin/cmd.js test/init.coffee -o test/init.js
./node_modules/mocha-phantomjs/bin/mocha-phantomjs test/index.html
testw:
./node_modules/coffee-script/bin/coffee scripts/watch.coffee . make test
clean:
rm -rf dist
lint:
./node_modules/coffeelint/bin/coffeelint -f lint.config.json -r src
dist:
make build
cp -R template build/template
cp build/framer.js build/template/framer.js
.PHONY: build clean lint test