Use apm to install modules

This commit is contained in:
Kevin Sawicki 2013-05-07 13:39:25 -07:00
parent a12abd7377
commit 851febd495
3 changed files with 9 additions and 10 deletions

3
.gitmodules vendored
View File

@ -88,3 +88,6 @@
[submodule "vendor/packages/hyperlink-helper.tmbundle"]
path = vendor/packages/hyperlink-helper.tmbundle
url = https://github.com/textmate/hyperlink-helper.tmbundle
[submodule "vendor/apm"]
path = vendor/apm
url = https://github.com/atom/apm.git

View File

@ -21,15 +21,10 @@ exit_unless_npm_exists() {
exit_unless_xcode_exists
exit_unless_npm_exists
npm install npm --silent
NODE_DIR="$HOME/.cefode-gyp"
NODE_VERSION="0.10.3"
NODE_URL="https://gh-contractor-zcbenz.s3.amazonaws.com/cefode2/dist"
if [ ! -d "node_modules/node-gyp" ]; then
./node_modules/.bin/npm install node-gyp --silent
HOME="$NODE_DIR" ./node_modules/.bin/node-gyp install --target="$NODE_VERSION" --dist-url="$NODE_URL" --arch=ia32
fi
HOME="$NODE_DIR" ./node_modules/.bin/npm install --target="$NODE_VERSION" --arch=ia32 --silent
git submodule --quiet sync
git submodule --quiet update --recursive --init
(cd vendor/apm && npm install .)
npm install vendor/apm
./node_modules/.bin/apm install

1
vendor/apm vendored Submodule

@ -0,0 +1 @@
Subproject commit 2c7ffb2e37ff92514b1471e9d9d325f4d3a52b11