Skip to content

Commit

Permalink
[minor] Use prebuild
Browse files Browse the repository at this point in the history
  • Loading branch information
lpinca committed Feb 6, 2017
1 parent 393fee7 commit 0f95de1
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
7 changes: 4 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
node_modules/
prebuilds/
coverage/
build/
npm-debug.log
node_modules
build
coverage
1 change: 1 addition & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
prebuilds/
coverage/
build/
test/
Expand Down
10 changes: 7 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@
"description": "Check if a buffer contains valid UTF-8",
"main": "index.js",
"scripts": {
"install": "prebuild-install || node-gyp rebuild",
"coverage": "istanbul cover _mocha --report html -- test/*.test.js",
"test": "mocha test/*.test.js"
"test": "mocha test/*.test.js && prebuild-ci"
},
"repository": {
"type": "git",
Expand All @@ -22,10 +23,13 @@
"homepage": "https://github.com/websockets/utf-8-validate",
"dependencies": {
"bindings": "~1.2.1",
"nan": "~2.5.0"
"nan": "~2.5.0",
"prebuild-install": "~2.1.0"
},
"devDependencies": {
"istanbul": "~0.4.5",
"mocha": "~3.2.0"
"mocha": "~3.2.0",
"prebuild": "~6.0.2",
"prebuild-ci": "~2.0.0"
}
}

0 comments on commit 0f95de1

Please sign in to comment.