Skip to content
This repository has been archived by the owner on Oct 9, 2023. It is now read-only.

Commit

Permalink
Merge pull request #27 from ColinEberhardt/license-check
Browse files Browse the repository at this point in the history
Adds automated licence validation
  • Loading branch information
ColinEberhardt authored Oct 24, 2019
2 parents ef96fb3 + ebc6d18 commit 0520c26
Show file tree
Hide file tree
Showing 5 changed files with 410 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ jobs:
- v1-dependencies-{{ checksum "package.json" }}
# fallback to using the latest cache if no exact match is found
- v1-dependencies-
# check the licenses for production dependencies
- run: npm run license-validation
- run: cd demo && npm run license-validation
# compile and lint
- run: npm install
- save_cache:
paths:
Expand All @@ -33,6 +37,7 @@ jobs:
- v1-dependencies-{{ checksum "./demo/package.json" }}
# fallback to using the latest cache if no exact match is found
- v1-dependencies-
# build the demo
- run: cd demo && npm install
- save_cache:
paths:
Expand Down
20 changes: 20 additions & 0 deletions demo/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
"start": "cross-env BROWSER=none react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject"
"eject": "react-scripts eject",
"license-validation": "npm prune --production && npm install --production && npx node-license-validator . --allow-licenses MIT Apache-2.0 BSD-2-Clause BSD-3-Clause ISC"
},
"eslintConfig": {
"extends": "react-app"
Expand Down
Loading

0 comments on commit 0520c26

Please sign in to comment.