Skip to content

Commit

Permalink
docs(LICENSE): apply Apache 2.0 License correctly (swagger-api#7574)
Browse files Browse the repository at this point in the history
  • Loading branch information
char0n authored Nov 2, 2021
1 parent 124b856 commit bd75178
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 1 deletion.
1 change: 1 addition & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
*
*/
!README.md
!NOTICE
!package.json
!dist/swagger-ui.js
!dist/swagger-ui.js.map
Expand Down
3 changes: 2 additions & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
Expand Down Expand Up @@ -186,7 +187,7 @@
same "printed page" as the copyright notice for easier
identification within third-party archives.

Copyright 2020 SmartBear Software Inc.
Copyright [yyyy] [name of copyright owner]

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
2 changes: 2 additions & 0 deletions NOTICE
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
swagger-ui
Copyright 2020-2021 SmartBear Software Inc.
4 changes: 4 additions & 0 deletions flavors/swagger-ui-react/release/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ node create-manifest.js > ../dist/package.json
# Copy our README into the dist folder for npm
cp ../README.md ../dist

# Copy LICENSE & NOTICE into the dist folder for npm
cp ../../../LICENSE ../dist
cp ../../../NOTICE ../dist

# Run the release from the dist folder
cd ../dist

Expand Down
4 changes: 4 additions & 0 deletions swagger-ui-dist-package/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ sed -i "s|\$\$VERSION|$UI_VERSION|g" package.json
# Copy UI's dist files to our directory
cp ../dist/* .

# Copy LICENSE & NOTICE to our directory
cp ../LICENSE .
cp ../NOTICE .

if [ "$PUBLISH_DIST" = "true" ] || [ "$TRAVIS" = "true" ] ; then
npm publish .
else
Expand Down

0 comments on commit bd75178

Please sign in to comment.