diff --git a/Makefile b/Makefile deleted file mode 100644 index 0ae97b3..0000000 --- a/Makefile +++ /dev/null @@ -1,8 +0,0 @@ - -test: - @./node_modules/.bin/mocha test/test.js - -test-browser: - ./node_modules/.bin/serve test/ - -.PHONY: test diff --git a/package.json b/package.json index 7ccce69..f194295 100644 --- a/package.json +++ b/package.json @@ -7,6 +7,11 @@ "files": [ "index" ], + "scripts": { + "test": "npm run test-node && npm run test-browser", + "test-node": "mocha test/test.js", + "test-browser": "serve ./test" + }, "license": "MIT", "devDependencies": { "mocha": "^3.0.2",