You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
455 B
16 lines
455 B
#!/usr/bin/env bash
|
|
|
|
# usage: npm run docsite
|
|
|
|
set -o errexit
|
|
|
|
if [ ! -d openzeppelin-docs ]; then
|
|
git clone https://github.com/frangio/openzeppelin-docs.git
|
|
fi
|
|
|
|
git -C openzeppelin-docs pull
|
|
|
|
npx concurrently \
|
|
'nodemon --delay 1 -e "*" -w contracts -w "docs/*.hbs" -x npm run prepare-docs' \
|
|
'cd docs; env DISABLE_PREPARE_DOCS= nodemon --delay 1 -e adoc,yml ../openzeppelin-docs/build-local.js' \
|
|
'http-server -c-1 openzeppelin-docs/build/site'
|
|
|