From 642f1f8e1537bf5d546a42e7b12a2fa8fd97ef72 Mon Sep 17 00:00:00 2001
From: Patrick Marsceill <patrick.marsceill@gmail.com>
Date: Sat, 8 Apr 2017 18:53:58 -0400
Subject: [PATCH] add build script

---
 script/build | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)
 create mode 100755 script/build

diff --git a/script/build b/script/build
new file mode 100755
index 0000000..ed3bede
--- /dev/null
+++ b/script/build
@@ -0,0 +1,27 @@
+#!/bin/sh
+echo "Running tests... \n"
+./script/test
+
+echo "Moving SCSS dependancies into ./assets/css... \n"
+cp -rf ./node_modules/primer-support/ ./_sass/primer-support/
+cp -rf ./node_modules/primer-base/ ./_sass/primer-base/
+cp -rf ./node_modules/primer-layout/ ./_sass/primer-layout/
+cp -rf ./node_modules/primer-utilities/ ./_sass/primer-utilities/
+cp -rf ./node_modules/primer-alerts/ ./_sass/primer-alerts/
+
+git add ./_sass/
+git commit -m 'Just the Docs build packaging'
+
+echo "Packaging gem... \n"
+gem build just-the-docs.gemspec
+
+echo "Cleaning up... \n"
+rm -rf ./_sass/primer-support/
+rm -rf ./_sass/primer-base/
+rm -rf ./_sass/primer-layout/
+rm -rf ./_sass/primer-utilities/
+rm -rf ./_sass/primer-alerts/
+git add ./_sass/
+git commit -m 'Just the Docs build packaging cleanup'
+git add *.gem
+git commit -m 'Bump just-the-docs gem package'