提交 81c857f3 编写于 作者: J Joshua Peek

Add basic run script

上级 ded306d0
build: node_modules/ bower_components/
test: node_modules/ build lint
node ./node_modules/.bin/node-qunit-phantomjs ./test/test.html
./test/run.sh
lint: node_modules/
./node_modules/.bin/jshint *.js test/*.js
......
#!/bin/bash
function stop() {
kill -9 $(<test/server.pid)
rm test/server.pid
}
trap stop EXIT
node ./test/server.js & echo "$!" > test/server.pid
node ./node_modules/.bin/node-qunit-phantomjs http://localhost:3000/test/test.html
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册