add scripts

This commit is contained in:
Sebastian McKenzie
2015-07-12 12:51:20 +01:00
parent 0a7a01391c
commit 1948946a4d
16 changed files with 168 additions and 1 deletions

25
scripts/bootstrap.sh Executable file
View File

@@ -0,0 +1,25 @@
#!/bin/sh
set -e
# install default set
npm install
# remove global babel
npm list --global --depth 1 babel >/dev/null 2>&1 && npm uninstall -g babel || true
for f in packages/*; do
if [ -d $f ]; then
cd $f
if [ -f "package.json" ]; then
npm install
npm link
fi
if [ -f "scripts/bootstrap.sh" ]; then
./scripts/bootstrap.sh
fi
cd ../..
fi
done
git submodule update --init
make build