aboutsummaryrefslogtreecommitdiff
path: root/script/build.sh
diff options
context:
space:
mode:
authorMiquel Sabaté Solà <msabate@suse.com>2018-09-25 19:13:16 +0200
committerMiquel Sabaté Solà <msabate@suse.com>2018-09-25 19:13:16 +0200
commit259e8ab7a3a7e607263ca07e53787d85881bab8a (patch)
treea726ede11d679fe93515cca062692bfc29e7d87f /script/build.sh
parentf5329b13315fcc501cd6c8630e0158eae4a88f16 (diff)
downloadjo.mssola.com-259e8ab7a3a7e607263ca07e53787d85881bab8a.tar.gz
jo.mssola.com-259e8ab7a3a7e607263ca07e53787d85881bab8a.zip
Re-bumped much of the application
Signed-off-by: Miquel Sabaté Solà <msabate@suse.com>
Diffstat (limited to 'script/build.sh')
-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'"