Skip to content

Commit

Permalink
chore(trg-7.05): add legal info at build (#391)
Browse files Browse the repository at this point in the history
  • Loading branch information
evegufy committed Nov 30, 2023
1 parent c03d016 commit 55b4110
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
1 change: 0 additions & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,4 @@
.github
.gitignore
.husky
LICENSE
**/node_modules
9 changes: 8 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,11 @@ storybook
*.tgz
*.tar.gz
*.ignore
.DS_Store
.DS_Store

# Add legal info files during build

public/LICENSE
public/DEPENDENCIES
public/NOTICE.md
public/SECURITY.md
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -100,14 +100,15 @@
"pretty": "prettier --write \"**/*.{ts,tsx,js,jsx,json,css,sass,scss,xml,md}\"",
"lint": "yarn run eslint \"./src/**/*.{ts,tsx}\"",
"start": "PORT=3001 BROWSER=none GENERATE_SOURCEMAP=false react-scripts start",
"build": "GENERATE_SOURCEMAP=false react-scripts build",
"build": "yarn build:copy-legal-info && GENERATE_SOURCEMAP=false react-scripts build",
"test": "react-scripts test",
"test:ci": "CI=true react-scripts test",
"build:docker": "if [ -d \"./build\" ]; then yarn build:docker:prebuilt; else yarn build:docker:full; fi",
"build:docker:full": "IMAGE=$npm_package_config_image && docker build -t $IMAGE -f .conf/Dockerfile.full --build-arg \"http_proxy=${http_proxy}\" --build-arg \"https_proxy=${https_proxy}\" --build-arg \"no_proxy=${no_proxy}\" .",
"build:docker:prebuilt": "IMAGE=$npm_package_config_image && docker build -t $IMAGE -f .conf/Dockerfile.prebuilt . && docker tag $IMAGE:latest $IMAGE:$npm_package_version",
"start:docker": "IMAGE=$npm_package_config_image && docker run --rm -d -p 3001:8080 --name cx-portal $IMAGE",
"publish:docker": "IMAGE=$npm_package_config_image && docker tag $IMAGE:latest $IMAGE:$npm_package_version && docker push $IMAGE:$npm_package_version && docker push $IMAGE:latest",
"build:legal-notice": "bash scripts/legal-notice.sh"
"build:legal-notice": "bash scripts/legal-notice.sh",
"build:copy-legal-info": "cp LICENSE NOTICE.md DEPENDENCIES SECURITY.md public/"
}
}

0 comments on commit 55b4110

Please sign in to comment.