Drop support for versions of Node prior to v4.

Reduce production (sub)depedency count from 93 to 50.
Modernise dev tooling, e.g. use nyc, replace jshint with semistandard.
Make 'npm test' command consistent across platforms.
This commit is contained in:
Lovell Fuller
2016-10-26 10:07:42 +01:00
parent 3f5e38bb62
commit 36e636dca1
14 changed files with 348 additions and 387 deletions

View File

@@ -1,5 +1,6 @@
{
"name": "sharp",
"description": "High performance Node.js image processing, the fastest module to resize JPEG, PNG, WebP and TIFF images",
"version": "0.17.0",
"author": "Lovell Fuller <npm@lovell.info>",
"contributors": [
@@ -29,14 +30,11 @@
"Matt Hirsch <mhirsch@media.mit.edu>",
"Matthias Thoemmes <thoemmes@gmail.com>"
],
"description": "High performance Node.js image processing, the fastest module to resize JPEG, PNG, WebP and TIFF images",
"scripts": {
"clean": "rm -rf node_modules/ build/ include/ lib/ coverage/ test/fixtures/output.*",
"test": "VIPS_WARNING=0 node ./node_modules/istanbul/lib/cli.js cover ./node_modules/mocha/bin/_mocha -- --slow=5000 --timeout=30000 ./test/unit/*.js",
"test-win": "node ./node_modules/mocha/bin/mocha --slow=5000 --timeout=60000 ./test/unit/*.js",
"test": "semistandard && cross-env VIPS_WARNING=0 nyc --reporter=lcov --branches=96 mocha --slow=5000 --timeout=60000 ./test/unit/*.js",
"test-leak": "./test/leak/leak.sh",
"test-packaging": "./packaging/test-linux-x64.sh",
"test-clean": "rm -rf coverage/ test/fixtures/output.* && npm install && npm test"
"test-packaging": "./packaging/test-linux-x64.sh"
},
"main": "index.js",
"repository": {
@@ -59,24 +57,24 @@
"vips"
],
"dependencies": {
"bluebird": "^3.4.6",
"caw": "^2.0.0",
"color": "^0.11.3",
"got": "^6.5.0",
"nan": "^2.4.0",
"semver": "^5.3.0",
"request": "^2.75.0",
"tar": "^2.2.1"
},
"devDependencies": {
"async": "^2.1.2",
"bufferutil": "^1.2.1",
"coveralls": "^2.11.14",
"cross-env": "^3.1.3",
"exif-reader": "^1.0.1",
"icc": "^0.0.2",
"istanbul": "^0.4.5",
"mocha": "^3.1.2",
"mocha-jshint": "^2.3.1",
"node-cpplint": "^0.4.0",
"nyc": "^8.3.2",
"rimraf": "^2.5.4",
"semistandard": "^9.1.0",
"unzip": "^0.1.11"
},
"license": "Apache-2.0",
@@ -84,6 +82,14 @@
"libvips": "8.4.2"
},
"engines": {
"node": ">=0.10"
"node": ">=4"
},
"semistandard": {
"env": [
"mocha"
],
"ignore": [
"test"
]
}
}