forked from socketstream/socketstream
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
13 lines (10 loc) · 820 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
# SocketStream Makefile
# Compile all CoffeeScript files within /src into /lib and transfer over any pure JS files
# This is ugly! All going to disappear in SocketStream 0.4
build:
rm -fr lib; node_modules/coffee-script/bin/coffee --bare -o lib -c src; cp src/*.js lib; cp src/utils/*.js lib/utils; mkdir lib/websocket/transports; mkdir lib/websocket/transports/engineio; cp src/websocket/transports/engineio/*.js lib/websocket/transports/engineio; mkdir lib/client/system/libs; cp -R src/client/system/libs/*.js lib/client/system/libs/; cp -R src/client/system/modules/*.js lib/client/system/modules/;
# Ignore files and directories prepended with 'testdata_'
TEST_FILES=`find test/* | grep -v '^test/testdata_*'`
test:
./node_modules/.bin/mocha --require should --require coffee-script $(TEST_FILES)
.PHONY: test