babel/scripts/bootstrap.sh
Sebastian McKenzie 1948946a4d add scripts
2015-07-12 12:51:20 +01:00

26 lines
432 B
Bash
Executable File

#!/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