diff --git a/.gitignore b/.gitignore index 8800349bb..86392e509 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,10 @@ **/.DS_Store node_modules -public/documentation/js/lib \ No newline at end of file +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 \ No newline at end of file diff --git a/package.json b/package.json index e468b43d1..ff247324b 100644 --- a/package.json +++ b/package.json @@ -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",