Add licensing checker for production dependencies

This commit is contained in:
Lovell Fuller 2018-11-29 09:53:00 +00:00
parent 383b933e26
commit d43c7b581d

View File

@ -61,8 +61,10 @@
"scripts": { "scripts": {
"install": "(node install/libvips && node install/dll-copy && prebuild-install) || (node-gyp rebuild && node install/dll-copy)", "install": "(node install/libvips && node install/dll-copy && prebuild-install) || (node-gyp rebuild && node install/dll-copy)",
"clean": "rm -rf node_modules/ build/ vendor/ .nyc_output/ coverage/ test/fixtures/output.*", "clean": "rm -rf node_modules/ build/ vendor/ .nyc_output/ coverage/ test/fixtures/output.*",
"test": "semistandard && cc && nyc --reporter=lcov --branches=99 mocha --slow=5000 --timeout=60000 ./test/unit/*.js && prebuild-ci", "test": "semistandard && cc && npm run test-unit && npm run test-licensing && prebuild-ci",
"coverage": "./test/coverage/report.sh", "test-unit": "nyc --reporter=lcov --branches=99 mocha --slow=5000 --timeout=60000 ./test/unit/*.js",
"test-licensing": "license-checker --production --summary --onlyAllow 'Apache-2.0;BSD;ISC;MIT'",
"test-coverage": "./test/coverage/report.sh",
"test-leak": "./test/leak/leak.sh", "test-leak": "./test/leak/leak.sh",
"docs": "for m in constructor input resize composite operation colour channel output utility; do documentation build --shallow --format=md --markdown-toc=false lib/$m.js >docs/api-$m.md; done" "docs": "for m in constructor input resize composite operation colour channel output utility; do documentation build --shallow --format=md --markdown-toc=false lib/$m.js >docs/api-$m.md; done"
}, },
@ -88,13 +90,13 @@
"vips" "vips"
], ],
"dependencies": { "dependencies": {
"bindings": "^1.3.0", "bindings": "^1.3.1",
"color": "^3.1.0", "color": "^3.1.0",
"detect-libc": "^1.0.3", "detect-libc": "^1.0.3",
"fs-copy-file-sync": "^1.1.1", "fs-copy-file-sync": "^1.1.1",
"nan": "^2.11.1", "nan": "^2.11.1",
"npmlog": "^4.1.2", "npmlog": "^4.1.2",
"prebuild-install": "^5.2.1", "prebuild-install": "^5.2.2",
"semver": "^5.6.0", "semver": "^5.6.0",
"simple-get": "^3.0.3", "simple-get": "^3.0.3",
"tar": "^4.4.8", "tar": "^4.4.8",
@ -107,11 +109,12 @@
"documentation": "^8.1.2", "documentation": "^8.1.2",
"exif-reader": "^1.0.2", "exif-reader": "^1.0.2",
"icc": "^1.0.0", "icc": "^1.0.0",
"license-checker": "^24.0.1",
"mocha": "^5.2.0", "mocha": "^5.2.0",
"mock-fs": "^4.7.0", "mock-fs": "^4.7.0",
"nyc": "^13.1.0", "nyc": "^13.1.0",
"prebuild": "^8.1.2", "prebuild": "^8.1.2",
"prebuild-ci": "^2.2.3", "prebuild-ci": "^2.3.0",
"rimraf": "^2.6.2", "rimraf": "^2.6.2",
"semistandard": "^13.0.1" "semistandard": "^13.0.1"
}, },