mirror of
https://github.com/goharbor/harbor.git
synced 2024-12-02 07:03:35 +01:00
fix issue of ui builder image entry command
This commit is contained in:
parent
8a15a5002c
commit
85db2ad892
@ -18,8 +18,10 @@ if [ ! -z "$npm_proxy" -a "$npm_proxy" != " " ]; then
|
|||||||
npm config set proxy $npm_proxy
|
npm config set proxy $npm_proxy
|
||||||
fi
|
fi
|
||||||
|
|
||||||
rm -rf ./node_modules
|
#Check if node_modules directory existing
|
||||||
mv /harbor_resources/node_modules ./
|
if [ ! -d "./node_modules" ]; then
|
||||||
|
mv /harbor_resources/node_modules ./
|
||||||
|
fi
|
||||||
|
|
||||||
cat ./package.json
|
cat ./package.json
|
||||||
npm install
|
npm install
|
||||||
@ -28,6 +30,9 @@ npm install
|
|||||||
sed -i 's/* as//g' src/app/shared/gauge/gauge.component.js
|
sed -i 's/* as//g' src/app/shared/gauge/gauge.component.js
|
||||||
./node_modules/.bin/rollup -c rollup-config.js
|
./node_modules/.bin/rollup -c rollup-config.js
|
||||||
|
|
||||||
|
#Copy built js to the static folder
|
||||||
|
cp ./dist/build.min.js ../ui/static/
|
||||||
|
|
||||||
cp -r ./src/i18n/ ../ui/static/
|
cp -r ./src/i18n/ ../ui/static/
|
||||||
cp ./src/styles.css ../ui/static/
|
cp ./src/styles.css ../ui/static/
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user