pulsar/script/bootstrap

23 lines
396 B
Plaintext
Raw Normal View History

#!/bin/sh
# exit on subprocess errors
set -o errexit
exit_unless_npm_exists() {
2012-09-22 00:29:35 +04:00
if ! hash npm 2> /dev/null; then
echo "ERROR: Atom requires npm"
exit 1
fi
}
exit_unless_npm_exists
2013-01-03 23:02:03 +04:00
git submodule --quiet sync
git submodule --quiet update --recursive --init
2013-05-08 00:39:25 +04:00
2013-09-03 08:25:06 +04:00
(cd vendor/apm && npm install --silent .)
2013-05-08 00:39:25 +04:00
2013-05-18 02:24:09 +04:00
npm install --silent vendor/apm
echo ""
2013-05-18 02:24:09 +04:00
./node_modules/.bin/apm install --silent