Skip to content

Commit 8bf1c10

Browse files
kemitchellzkat
authored andcommitted
test: Automatically audit dependency licenses (#70)
PR-URL: #70 Credit: @kemitchell Reviewed-By: @zkat
1 parent 274a3c2 commit 8bf1c10

File tree

4 files changed

+113
-0
lines changed

4 files changed

+113
-0
lines changed

.licensee.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"license": "(MIT OR BSD-2-Clause OR BSD-3-Clause OR Apache-2.0 OR ISC OR Unlicense OR CC-BY-3.0 OR CC0-1.0 OR Artistic-2.0)",
3+
"whitelist": {
4+
"config-chain": "1.1.11",
5+
"cyclist": "0.2.2",
6+
"json-schema": "0.2.3",
7+
"qrcode-terminal": "0.12.0"
8+
}
9+
}

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,4 @@ install:
3333
- "node . install"
3434
script:
3535
- "node . run tap -- \"test/tap/*.js\" \"test/broken-under-nyc/*.js\""
36+
- "node . run licenses"

package-lock.json

Lines changed: 101 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,7 @@
265265
],
266266
"devDependencies": {
267267
"deep-equal": "~1.0.1",
268+
"licensee": "^5.0.0",
268269
"marked": "^0.5.0",
269270
"marked-man": "~0.2.1",
270271
"npm-registry-couchapp": "^2.7.1",
@@ -279,6 +280,7 @@
279280
"dumpconf": "env | grep npm | sort | uniq",
280281
"prepare": "node bin/npm-cli.js --no-audit --no-timing prune --prefix=. --no-global && rimraf test/*/*/node_modules && make -j4 doc",
281282
"preversion": "bash scripts/update-authors.sh && git add AUTHORS && git commit -m \"update AUTHORS\" || true",
283+
"licenses": "licensee --production --errors-only",
282284
"tap": "tap --reporter=classic --timeout 300",
283285
"tap-cover": "tap --reporter=classic --nyc-arg='--cache' --coverage --timeout 600",
284286
"test": "standard && npm run test-tap",

0 commit comments

Comments
 (0)