Include node in Homebrew; install (js|json)hint for emacs
This commit is contained in:
parent
99f41d9586
commit
38316cf79e
|
@ -4,23 +4,28 @@ task :emacs => "emacs:update"
|
|||
namespace :emacs do
|
||||
|
||||
task :install do
|
||||
Homebrew.install("emacs", "--with-gnutls --cocoa --keep-ctags --srgb")
|
||||
Homebrew.install "aspell"
|
||||
github('hlissner/emacs.d', '~/.emacs.d')
|
||||
unless Dir.exists?(File.expand_path("~/.emacs.d"))
|
||||
github('hlissner/emacs.d', '~/.emacs.d')
|
||||
Homebrew.install("emacs", "--with-gnutls --cocoa --keep-ctags --srgb")
|
||||
Homebrew.install "aspell"
|
||||
|
||||
sh_safe "/usr/local/bin/npm install jshint -g"
|
||||
sh_safe "/usr/local/bin/npm install jsonlint -g"
|
||||
end
|
||||
end
|
||||
|
||||
task :update do
|
||||
echo "Updating emacs.d"
|
||||
sh_safe "cd ~/.emacs.d && git pull"
|
||||
|
||||
echo "You'll have to update emacs manually!"
|
||||
echo "You'll have to update emacs packages manually!"
|
||||
end
|
||||
|
||||
task :remove do
|
||||
echo "Uninstalling emacs"
|
||||
Homebrew.remove "emacs"
|
||||
Homebrew.remove "aspell"
|
||||
rm_rf "~/.emacs.d" if Dir.exists? "~/.emacs.d"
|
||||
rm_rf "~/.emacs.d" if Dir.exists?(File.expand_path("~/.emacs.d"))
|
||||
end
|
||||
|
||||
end
|
||||
|
|
|
@ -30,6 +30,7 @@ namespace :homebrew do
|
|||
luajit
|
||||
readline
|
||||
openssl
|
||||
node
|
||||
}.each { |pkg| Homebrew.install pkg }
|
||||
|
||||
%w{
|
||||
|
|
Loading…
Reference in a new issue