From b5915cc98582a2608195fbaae1a9bab53d88e3c5 Mon Sep 17 00:00:00 2001 From: Evelyn Gurschler Date: Tue, 28 Nov 2023 16:38:20 +0100 Subject: [PATCH] chore(trg-7.05): add legal info at build (#212) https://github.com/eclipse-tractusx/portal-assets/issues/207 --- .gitignore | 9 ++++++++- package.json | 3 ++- 2 files changed, 10 insertions(+), 2 deletions(-) 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",