Remove vendor/coffee

This commit is contained in:
Corey Johnson 2012-09-17 15:32:35 -07:00
parent 6e2ac94a8b
commit 8088bda8b1
2 changed files with 4 additions and 4 deletions

View File

@ -1,8 +1,9 @@
require 'fileutils'
$ATOM_ARGS = []
ENV['PATH'] = "#{ENV['PATH']}:/opt/github/bin/"
ENV['PATH'] = "#{ENV['PATH']}:/usr/local/bin/"
COFFEE_PATH = "node_modules/.bin/coffee"
BUILD_DIR = 'atom-build'
mkdir_p BUILD_DIR
@ -77,7 +78,7 @@ task :"copy-files-to-bundle" do
if resource_path = ENV['RESOURCE_PATH']
# CoffeeScript can't deal with unescaped whitespace in 'Atom Helper.app' path
escaped_dest = dest.gsub("Atom Helper.app", "Atom\\ Helper.app")
sh "vendor/coffee -c -o \"#{escaped_dest}/src/stdlib\" \"#{resource_path}/src/stdlib/require.coffee\""
sh "#{COFFEE_PATH} -c -o \"#{escaped_dest}/src/stdlib\" \"#{resource_path}/src/stdlib/require.coffee\""
cp_r "#{resource_path}/static", dest
else
# TODO: Restore this list when we add in all of atoms source
@ -85,7 +86,7 @@ task :"copy-files-to-bundle" do
dest_path = File.join(dest, dir)
rm_rf dest_path
cp_r dir, dest_path
sh "vendor/coffee -c '#{dest_path}'"
sh "#{COFFEE_PATH} -c '#{dest_path}'"
end
end
end

1
vendor/coffee vendored
View File

@ -1 +0,0 @@
../node_modules/coffee-script/bin/coffee