Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add npm and brew-installed nodejs

  • Loading branch information...
commit 4d8d56d1add86686bffde7535253648a3b686612 1 parent 9638495
@dgoodlad authored
Showing with 15 additions and 5 deletions.
  1. +4 −0 aries.rb
  2. +11 −5 node.rb
View
4 aries.rb
@@ -17,6 +17,10 @@
# Ruby versions
requires 'rbenv',
'1.9.2-p290.rbenv'
+
+ # Nodejs
+ requires 'node',
+ 'personal:npm' # Hack to avoid core deps conflict
end
dep 'aries osx apps installed' do
View
16 node.rb
@@ -1,10 +1,16 @@
-dep 'nodejs.src' do
- source 'http://nodejs.org/dist/node-v0.2.5.tar.gz'
- provides 'node', 'node-repl', 'node-waf'
-end
-
dep 'nvm' do
requires 'wget'
met? { "#{ENV['HOME']}/.nvm".p.exist? }
meet { shell 'git clone git://github.com/creationix/nvm.git ~/.nvm' }
end
+
+dep 'node', :template => 'managed'
+
+dep 'npm' do
+ requires 'node'
+
+ met? { in_path? 'npm' }
+ meet {
+ log_shell 'Run npm install.sh', 'curl http://npmjs.org/install.sh | clean=no sh'
+ }
+end
Please sign in to comment.
Something went wrong with that request. Please try again.