-
Notifications
You must be signed in to change notification settings - Fork 5
/
package.json
48 lines (48 loc) · 3.07 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
{
"version": "0.3.5",
"license": "Apache-2.0",
"private": true,
"workspaces": [
"cx-portal",
"cx-portal-shared-components"
],
"config": {
"image": "ghcr.io/catenax-ng/product-portal-frontend"
},
"scripts": {
"prepare": "husky install",
"clean": "yarn workspace cx-portal-shared-components clean && yarn workspace cx-portal clean",
"version": "yarn config set version-git-tag false && yarn workspace cx-portal-shared-components version --new-version $npm_package_version && yarn workspace cx-portal version --new-version $npm_package_version && yarn workspace cx-portal add cx-portal-shared-components@$npm_package_version && git tag $npm_package_version",
"lint": "eslint cx-portal cx-portal-shared-components",
"pretty": "prettier --write \"./cx-portal*/src/**/*.{ts,tsx,js,jsx,json,css,sass,scss,xml,md}\"",
"test:ci": "yarn workspace cx-portal-shared-components test:ci && yarn workspace cx-portal test:ci",
"build:lib": "yarn workspace cx-portal-shared-components build:lib",
"build:storybook": "yarn workspace cx-portal-shared-components build:storybook",
"start:storybook": "yarn workspace cx-portal-shared-components start:storybook",
"build:portal": "yarn workspace cx-portal build:portal",
"start:portal": "yarn workspace cx-portal start:portal",
"build:licenses:deprecated": "find node_modules -name package.json -exec jq -r '.|\"\\(.name),\\(.version),\\(.license)\"' {} \\; | sort | uniq > cx-portal/public/third-party-licenses.txt",
"build:licenses": "yarn licenses list --json --no-progress > cx-portal/public/third-party-licenses.json",
"build:sources": "zip -r portal-frontend.zip cx-portal*/src package.json **/package.json yarn.lock -x '*.stories.*' -x '*.test.*' -x '*mock*' -x '*.ttf' -x '*.svg' -x '*.png'",
"build:docker": "if [ -d \"./cx-portal/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 3000: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": "yarn clean && yarn build:licenses && yarn build:lib && yarn build:storybook && yarn build:portal",
"start": "yarn start:portal",
"deploy:helm": "helm install portal .chart/portal --namespace portal",
"undeploy:helm": "helm uninstall portal --namespace portal"
},
"lint:staged": {
"**/src/**/*.{js,jsx,ts,tsx}": [
"yarn test:ci"
]
},
"devDependencies": {
"husky": "^7.0.4",
"mkdirp": "^1.0.4",
"rimraf": "^3.0.2",
"yarn": "^1.22.18"
}
}