Add setup script (#33)

* Add setup script

* Update readme
This commit is contained in:
Martin Hjelmare 2018-06-17 15:42:38 +02:00 committed by Paulus Schoutsen
parent 6df71aee0c
commit 56baa569d5
2 changed files with 9 additions and 1 deletions

View File

@ -10,7 +10,7 @@ Documentation is build using [Docusaurus](https://docusaurus.io/docs/en/doc-mark
### Preparing environment ### 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 ### Running docs locally

8
script/setup Executable file
View File

@ -0,0 +1,8 @@
#!/bin/sh
# Setups the repository.
# Stop on errors
set -e
cd "$(dirname "$0")/.."
script/bootstrap