Try using npm proxy instead

This commit is contained in:
Condorra 2023-12-29 17:07:59 +11:00
parent aa0413571f
commit d484d556b1
2 changed files with 5 additions and 6 deletions

View File

@ -7,6 +7,7 @@ fi
export PATH="$(pwd)/hugo:$PATH" export PATH="$(pwd)/hugo:$PATH"
cd siterepo cd siterepo
npm config set registry http://nexus:8081/repository/npm_proxy/
./build.sh ./build.sh
rm ./hugo-static/public/manifest.json # Conflicts with main manifest. rm ./hugo-static/public/manifest.json # Conflicts with main manifest.
cp -r ./assets/* ./assets/.??* ./hugo-static/public/* ../sitegen/ cp -r ./assets/* ./assets/.??* ./hugo-static/public/* ../sitegen/

View File

@ -1,11 +1,9 @@
#!/bin/bash -e #!/bin/bash -e
# Concourse Worker doesn't support IPv6 well yet. npm install -g npm
function npm-ipv4() {
node --dns-result-order=ipv4first $(which npm) $* npm install -Dy
} npm -y exec webpack
npm-ipv4 install -Dy
npm-ipv4 -y exec webpack
cp ./node_modules/xterm/css/xterm.css ./assets/ cp ./node_modules/xterm/css/xterm.css ./assets/
cp dist/main.js ./assets/main.js cp dist/main.js ./assets/main.js
cd hugo-static cd hugo-static