aboutsummaryrefslogtreecommitdiff
path: root/script
diff options
context:
space:
mode:
Diffstat (limited to 'script')
-rwxr-xr-xscript/build.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/script/build.sh b/script/build.sh
index d34e65d..006a4b4 100755
--- a/script/build.sh
+++ b/script/build.sh
@@ -27,10 +27,21 @@ pushd $DIR
# Clean up previous build.
rm -rf $BUILD_DEST
+# JS dependencies.
+yarn
+yarn run webpack-single-shot
+
# Build && test.
bundle
bundle exec jekyll build -s $BUILD_SOURCE -d $BUILD_DEST
+mkdir $BUILD_DEST/about $BUILD_DEST/en/about
+
+# Hack to fix some issues with the about page...
+cp $BUILD_DEST/about.html $BUILD_DEST/about/index.html
+cp $BUILD_DEST/en/about.html $BUILD_DEST/en/about/index.html
+
bundle exec rubocop
bundle exec rake
+set +x
echo "Jekyll has built your application in '$BUILD_DEST'"