mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-26 04:05:40 +01:00
Update dockerfile of portal based on angular6 upgrade
1. Update entrypoint to reflect angular 6 upgrade Signed-off-by: Qian Deng <dengq@vmware.com>
This commit is contained in:
parent
db8d7b9c1c
commit
ba4762095f
@ -10,15 +10,9 @@ npm install
|
|||||||
|
|
||||||
## Build harbor-ui and link it
|
## Build harbor-ui and link it
|
||||||
rm -rf /build_dir/lib/dist
|
rm -rf /build_dir/lib/dist
|
||||||
npm run build:lib
|
npm run build_lib
|
||||||
chmod -R +xr /build_dir/lib/dist
|
chmod -R +xr /build_dir/lib/dist
|
||||||
cd /build_dir/lib/dist
|
npm run link_lib
|
||||||
npm link
|
|
||||||
cd /build_dir
|
|
||||||
npm link harbor-ui
|
|
||||||
|
|
||||||
## Build production
|
## Build production
|
||||||
npm run build:prod
|
npm run release
|
||||||
|
|
||||||
## Unlink
|
|
||||||
npm unlink harbor-ui
|
|
@ -11,11 +11,11 @@
|
|||||||
"pree2e": "webdriver-manager update",
|
"pree2e": "webdriver-manager update",
|
||||||
"e2e": "protractor",
|
"e2e": "protractor",
|
||||||
"build": "ng build --aot",
|
"build": "ng build --aot",
|
||||||
"release": "ng build --aot --prod",
|
"release": "ng build --prod",
|
||||||
"build_lib": "ng build --prod lib",
|
"build_lib": "ng build --prod lib",
|
||||||
"npm_pack": "cd lib/dist && npm pack",
|
"npm_pack": "cd lib/dist && npm pack",
|
||||||
"package": "npm run build_lib && npm run npm_pack",
|
"package": "npm run build_lib && npm run npm_pack",
|
||||||
"link-lib":"cd lib/dist && npm link && cd ../../ && npm link @harbor/ui"
|
"link_lib":"cd lib/dist && npm link && cd ../../ && npm link @harbor/ui"
|
||||||
},
|
},
|
||||||
"private": true,
|
"private": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
Loading…
Reference in New Issue
Block a user