Skip to content

Commit 0041dbb

Browse files
committed
adds standard
1 parent 4a0b095 commit 0041dbb

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

.travis.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
language: node_js
22
node_js:
33
- "0.10"
4+
- "0.12"
5+
- "iojs"
6+
env:
7+
- TEST_SUITE=lint
8+
- TEST_SUITE=unit
9+
script: "npm run-script $TEST_SUITE"
410

package.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,16 @@
1313
"devDependencies": {
1414
"buffer": "~2.3.2",
1515
"hash-test-vectors": "^1.3.1",
16+
"standard": "^3.11.1",
1617
"tape": "~2.3.2",
1718
"typedarray": "0.0.6"
1819
},
1920
"bin": "./bin.js",
2021
"scripts": {
21-
"prepublish": "npm ls && npm test",
22-
"test": "set -e; for t in test/*.js; do node $t; done;"
22+
"prepublish": "npm ls && npm run unit",
23+
"lint": "standard",
24+
"test": "npm run lint && npm run unit",
25+
"unit": "set -e; for t in test/*.js; do node $t; done;"
2326
},
2427
"author": "Dominic Tarr <[email protected]> (dominictarr.com)",
2528
"license": "MIT"

0 commit comments

Comments
 (0)