Skip to content

Commit

Permalink
Use apm to install modules
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinsawicki committed May 14, 2013
1 parent a12abd7 commit 851febd
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 10 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -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
15 changes: 5 additions & 10 deletions script/bootstrap
Original file line number Diff line number Diff line change
Expand Up @@ -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 change: 1 addition & 0 deletions vendor/apm
Submodule apm added at 2c7ffb

0 comments on commit 851febd

Please sign in to comment.