Skip to content
This repository was archived by the owner on Jan 29, 2024. It is now read-only.

Commit 6db494d

Browse files
author
Raphaël Benitte
committed
core(license): check involved licenses
1 parent 9e81f37 commit 6db494d

File tree

4 files changed

+53
-5
lines changed

4 files changed

+53
-5
lines changed

.travis.yml

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ node_js:
44
script:
55
- yarn setup
66
- yarn fmt:check
7+
- yarn license:check
78
- yarn lint:ts
89
- yarn build
910
- yarn test

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Node.js API toolkit
22

33
[![Travis CI](https://img.shields.io/travis/ekino/node-api-toolkit.svg?style=flat-square)](https://travis-ci.org/ekino/node-api-toolkit)
4+
![GitHub](https://img.shields.io/github/license/ekino/node-api-toolkit.svg?style=flat-square)
45

56
:warning: Work in progress :warning: This project is in its early stage, some feature might be missing and some APIs might change in the future.
67

package.json

+5-3
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,13 @@
33
"private": true,
44
"devDependencies": {
55
"@types/express": "^4.16.1",
6-
"@types/node": "^11.9.4",
76
"@types/jest": "24.0.5",
7+
"@types/node": "^11.9.4",
88
"gh-pages": "^2.0.1",
99
"gitbook-cli": "^2.3.2",
1010
"jest": "23.6.0",
1111
"lerna": "^3.13.0",
12+
"license-checker": "^25.0.1",
1213
"prettier": "^1.16.4",
1314
"ts-jest": "^23.10.5",
1415
"ts-node": "^8.0.2",
@@ -26,10 +27,11 @@
2627
"fmt:check": "prettier --color --list-different \"packages/*/**/*.{js,ts,yml,yaml}\" README.md \"packages/*/README.md\" tsconfig.json \"packages/*/tsconfig.json\"",
2728
"lint:ts": "tslint -p . -c tslint.json \"packages/*/src/**/*.ts\"",
2829
"test": "lerna run test",
29-
"test:all": "yarn fmt:check && yarn lint:ts && yarn test && yarn build",
30+
"test:all": "yarn fmt:check && yarn license:check && yarn lint:ts && yarn test && yarn build",
3031
"packages:pub": "lerna run tsc && lerna publish",
3132
"doc:serve": "gitbook serve",
3233
"doc:build": "gitbook build",
33-
"doc:deploy": "yarn doc:build && gh-pages -d _book -r [email protected]:ekino/node-api-toolkit.git -b gh-pages"
34+
"doc:deploy": "yarn doc:build && gh-pages -d _book -r [email protected]:ekino/node-api-toolkit.git -b gh-pages",
35+
"license:check": "license-checker --summary --direct --failOn \"GPL-3.0-or-later; GPL-3.0-only; GPL-2.0-or-later; GPL-2.0-only\""
3436
}
3537
}

yarn.lock

+46-2
Original file line numberDiff line numberDiff line change
@@ -1025,7 +1025,7 @@ array-equal@^1.0.0:
10251025
resolved "https://registry.yarnpkg.com/array-equal/-/array-equal-1.0.0.tgz#8c2a5ef2472fd9ea742b04c77a75093ba2757c93"
10261026
integrity sha1-jCpe8kcv2ep0KwTHenUJO6J1fJM=
10271027

1028-
array-find-index@^1.0.1:
1028+
array-find-index@^1.0.1, array-find-index@^1.0.2:
10291029
version "1.0.2"
10301030
resolved "https://registry.yarnpkg.com/array-find-index/-/array-find-index-1.0.2.tgz#df010aa1287e164bbda6f9723b0a96a1ec4187a1"
10311031
integrity sha1-3wEKoSh+Fku9pvlyOwqWoexBh6E=
@@ -1710,7 +1710,7 @@ chalk@^1.0.0, chalk@^1.1.1, chalk@^1.1.3:
17101710
strip-ansi "^3.0.0"
17111711
supports-color "^2.0.0"
17121712

1713-
chalk@^2.0.0, chalk@^2.0.1, chalk@^2.3.0, chalk@^2.3.1, chalk@^2.4.2:
1713+
chalk@^2.0.0, chalk@^2.0.1, chalk@^2.3.0, chalk@^2.3.1, chalk@^2.4.1, chalk@^2.4.2:
17141714
version "2.4.2"
17151715
resolved "https://registry.yarnpkg.com/chalk/-/chalk-2.4.2.tgz#cd42541677a54333cf541a49108c1432b44c9424"
17161716
integrity sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==
@@ -4723,6 +4723,22 @@ libnpmpublish@^1.1.1:
47234723
semver "^5.5.1"
47244724
ssri "^6.0.1"
47254725

4726+
license-checker@^25.0.1:
4727+
version "25.0.1"
4728+
resolved "https://registry.yarnpkg.com/license-checker/-/license-checker-25.0.1.tgz#4d14504478a5240a857bb3c21cd0491a00d761fa"
4729+
integrity sha512-mET5AIwl7MR2IAKYYoVBBpV0OnkKQ1xGj2IMMeEFIs42QAkEVjRtFZGWmQ28WeU7MP779iAgOaOy93Mn44mn6g==
4730+
dependencies:
4731+
chalk "^2.4.1"
4732+
debug "^3.1.0"
4733+
mkdirp "^0.5.1"
4734+
nopt "^4.0.1"
4735+
read-installed "~4.0.3"
4736+
semver "^5.5.0"
4737+
spdx-correct "^3.0.0"
4738+
spdx-expression-parse "^3.0.0"
4739+
spdx-satisfies "^4.0.0"
4740+
treeify "^1.1.0"
4741+
47264742
load-json-file@^1.0.0:
47274743
version "1.1.0"
47284744
resolved "https://registry.yarnpkg.com/load-json-file/-/load-json-file-1.1.0.tgz#956905708d58b4bab4c2261b04f59f31c99374c0"
@@ -7367,6 +7383,15 @@ source-map@^0.6.0, source-map@^0.6.1, source-map@~0.6.1:
73677383
resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.6.1.tgz#74722af32e9614e9c287a8d0bbde48b5e2f1a263"
73687384
integrity sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==
73697385

7386+
spdx-compare@^1.0.0:
7387+
version "1.0.0"
7388+
resolved "https://registry.yarnpkg.com/spdx-compare/-/spdx-compare-1.0.0.tgz#2c55f117362078d7409e6d7b08ce70a857cd3ed7"
7389+
integrity sha512-C1mDZOX0hnu0ep9dfmuoi03+eOdDoz2yvK79RxbcrVEG1NO1Ph35yW102DHWKN4pk80nwCgeMmSY5L25VE4D9A==
7390+
dependencies:
7391+
array-find-index "^1.0.2"
7392+
spdx-expression-parse "^3.0.0"
7393+
spdx-ranges "^2.0.0"
7394+
73707395
spdx-correct@^3.0.0:
73717396
version "3.1.0"
73727397
resolved "https://registry.yarnpkg.com/spdx-correct/-/spdx-correct-3.1.0.tgz#fb83e504445268f154b074e218c87c003cd31df4"
@@ -7398,6 +7423,20 @@ spdx-license-ids@~1.2.2:
73987423
resolved "https://registry.yarnpkg.com/spdx-license-ids/-/spdx-license-ids-1.2.2.tgz#c9df7a3424594ade6bd11900d596696dc06bac57"
73997424
integrity sha1-yd96NCRZSt5r0RkA1ZZpbcBrrFc=
74007425

7426+
spdx-ranges@^2.0.0:
7427+
version "2.1.0"
7428+
resolved "https://registry.yarnpkg.com/spdx-ranges/-/spdx-ranges-2.1.0.tgz#033423eb837ec926463aaf5b8097bd6f2931e1b8"
7429+
integrity sha512-OOWghvosfmECc9edy/A9j7GabERmn8bJWHc0J1knVytQtO5Rw7VfxK6CDqmivJhfMJqWhWWUfffNNMPYvyvyQA==
7430+
7431+
spdx-satisfies@^4.0.0:
7432+
version "4.0.1"
7433+
resolved "https://registry.yarnpkg.com/spdx-satisfies/-/spdx-satisfies-4.0.1.tgz#9a09a68d80f5f1a31cfaebb384b0c6009e4969fe"
7434+
integrity sha512-WVzZ/cXAzoNmjCWiEluEA3BjHp5tiUmmhn9MK+X0tBbR9sOqtC6UQwmgCNrAIZvNlMuBUYAaHYfb2oqlF9SwKA==
7435+
dependencies:
7436+
spdx-compare "^1.0.0"
7437+
spdx-expression-parse "^3.0.0"
7438+
spdx-ranges "^2.0.0"
7439+
74017440
split-string@^3.0.1, split-string@^3.0.2:
74027441
version "3.1.0"
74037442
resolved "https://registry.yarnpkg.com/split-string/-/split-string-3.1.0.tgz#7cb09dda3a86585705c64b39a6466038682e8fe2"
@@ -7860,6 +7899,11 @@ tr46@^1.0.1:
78607899
dependencies:
78617900
punycode "^2.1.0"
78627901

7902+
treeify@^1.1.0:
7903+
version "1.1.0"
7904+
resolved "https://registry.yarnpkg.com/treeify/-/treeify-1.1.0.tgz#4e31c6a463accd0943879f30667c4fdaff411bb8"
7905+
integrity sha512-1m4RA7xVAJrSGrrXGs0L3YTwyvBs2S8PbRHaLZAkFw7JR8oIFwYtysxlBZhYIa7xSyiYJKZ3iGrrk55cGA3i9A==
7906+
78637907
trim-newlines@^1.0.0:
78647908
version "1.0.0"
78657909
resolved "https://registry.yarnpkg.com/trim-newlines/-/trim-newlines-1.0.0.tgz#5887966bb582a4503a41eb524f7d35011815a613"

0 commit comments

Comments
 (0)