Try using npm proxy instead
This commit is contained in:
parent
aa0413571f
commit
d484d556b1
@ -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/
|
||||||
|
10
build.sh
10
build.sh
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user