#!/bin/bash -e

npm install -Dy
npm -y exec webpack
cp ./node_modules/xterm/css/xterm.css ./assets/
cp dist/main.js ./assets/main.js
pushd hugo-static
hugo --theme hugo-book
popd
pushd worldwideportal-static
hugo --theme hugo-book
popd
