default.rb 548 B

123456789101112131415161718192021222324
  1. #
  2. # Cookbook Name:: nodejs
  3. # Recipe:: default
  4. #
  5. # Copyright 2014, ShareLaTeX
  6. #
  7. # See https://launchpad.net/~chris-lea/+archive/nodejs
  8. apt_repository 'node.js' do
  9. uri 'http://ppa.launchpad.net/chris-lea/node.js/ubuntu'
  10. distribution node['lsb']['codename']
  11. components ['main']
  12. keyserver 'keyserver.ubuntu.com'
  13. key 'C7917B12'
  14. end
  15. package 'nodejs' do
  16. action :install
  17. end
  18. execute 'install grunt' do
  19. command "npm install -g grunt-cli"
  20. not_if "npm --no-color -g ls 'grunt-cli' 2> /dev/null | grep 'grunt-cli'"
  21. end