mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-11-10 18:24:09 +03:00
23 lines
387 B
Bash
Executable File
23 lines
387 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# exit on subprocess errors
|
|
set -o errexit
|
|
|
|
exit_unless_npm_exists() {
|
|
if ! hash npm 2> /dev/null; then
|
|
echo "ERROR: Atom requires npm"
|
|
exit 1
|
|
fi
|
|
}
|
|
|
|
exit_unless_npm_exists
|
|
|
|
git submodule --quiet sync
|
|
git submodule --quiet update --recursive --init
|
|
|
|
(cd vendor/apm && npm install .)
|
|
|
|
npm install --silent vendor/apm
|
|
echo ""
|
|
./node_modules/.bin/apm install --silent
|