Skip to content

Commit f17d435

Browse files
authoredAug 30, 2020
Ensure all examples are MIT licensed (#16691)
1 parent d6188a8 commit f17d435

File tree

203 files changed

+296
-214
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

203 files changed

+296
-214
lines changed
 

‎check-examples.sh

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#!/bin/bash
2+
3+
cd `dirname $0`
4+
5+
for folder in examples/* ; do
6+
cp -n packages/create-next-app/templates/default/gitignore $folder/.gitignore;
7+
if [ -f "$folder/package.json" ]; then
8+
cat $folder/package.json | jq '.license = "MIT"' | sponge $folder/package.json
9+
fi
10+
done;
11+
12+
if [[ ! -z $(git status -s) ]];then
13+
echo "Detected changes"
14+
git status
15+
exit 1
16+
fi

‎check-git-ignore.sh

-13
This file was deleted.

0 commit comments

Comments
 (0)
Please sign in to comment.