Skip to content

Commit

Permalink
chore(trg-7.05): add legal info at build (#212)
Browse files Browse the repository at this point in the history
  • Loading branch information
evegufy authored Nov 28, 2023
1 parent 6fe2dd4 commit b5915cc
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
9 changes: 8 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
**/.DS_Store
node_modules
public/documentation/js/lib
public/documentation/js/lib

# Add legal info files during build

public/assets/notice/LICENSE
public/assets/notice/DEPENDENCIES
public/assets/notice/NOTICE.md
public/assets/notice/SECURITY.md
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,9 @@
},
"scripts": {
"build:release": "node src/documentation/Release.js ${1}",
"build": "./scripts/build.sh",
"build": "yarn build:copy-legal-info && ./scripts/build.sh",
"build:legal-notice": "bash scripts/legal-notice.sh",
"build:copy-legal-info": "cp LICENSE NOTICE.md DEPENDENCIES SECURITY.md public/assets/notice/",
"build:sources": "zip -r portal-assets.zip src package.json yarn.lock -x '*.stories.*' -x '*.test.*' -x '*.ttf' -x '*.svg' -x '*.png' -x '*.jpg'",
"start": "concurrently \"yarn start:assets\" \"yarn start:proxy\" \"open http://localhost:3000/\"",
"start:proxy": "node src/proxy/index.cjs",
Expand Down

0 comments on commit b5915cc

Please sign in to comment.