From 56baa569d5629a09d1fa135c28ab10a9b2fe0eab Mon Sep 17 00:00:00 2001 From: Martin Hjelmare Date: Sun, 17 Jun 2018 15:42:38 +0200 Subject: [PATCH] Add setup script (#33) * Add setup script * Update readme --- README.md | 2 +- script/setup | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100755 script/setup diff --git a/README.md b/README.md index 0e58f71a..27b05005 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ Documentation is build using [Docusaurus](https://docusaurus.io/docs/en/doc-mark ### Preparing environment -Running the documentation locally requires [NodeJS](https://nodejs.org/en/) and [Yarn](https://yarnpkg.com/) to be installed. Inside a cloned fork of this repository, run `script/bootstrap`. +Running the documentation locally requires [NodeJS](https://nodejs.org/en/) and [Yarn](https://yarnpkg.com/) to be installed. Inside a cloned fork of this repository, run `script/setup`. ### Running docs locally diff --git a/script/setup b/script/setup new file mode 100755 index 00000000..8357b646 --- /dev/null +++ b/script/setup @@ -0,0 +1,8 @@ +#!/bin/sh +# Setups the repository. + +# Stop on errors +set -e + +cd "$(dirname "$0")/.." +script/bootstrap