This repository has been archived by the owner on Feb 17, 2021. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Orie Steele
committed
Jul 8, 2019
1 parent
5aac63b
commit 4e9177c
Showing
4 changed files
with
110 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,4 +4,6 @@ node_modules | |
.firebase | ||
elem-cache | ||
attic | ||
*.log | ||
*.log | ||
|
||
licenses |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
|
||
# Generate CSVs of all Open Source Licenses | ||
|
||
rm -rf ./licenses | ||
mkdir -p licenses | ||
|
||
npx license-checker --csv >> ./licenses/element-mono.csv | ||
|
||
LERNA_PACKAGE_DIR="./packages/*" | ||
|
||
for d in $LERNA_PACKAGE_DIR; do | ||
cd $d | ||
PACKAGE_NAME=$(cat package.json | jq ".name" | tr -d '"' | sed 's/@transmute//g') | ||
npx license-checker --csv > ../../licenses/$PACKAGE_NAME.csv | ||
cd ../.. | ||
done | ||
|
||
echo "# Element Licenses Report \nDate: $(date)" > ./licenses/README.md |