Small restructuring. Have I mentioned how much I hate having to write modules that work in both CommonJS and the browser?

This commit is contained in:
wycats
2010-12-12 13:33:17 -08:00
parent 57e72c9fd2
commit ec948c7382
5 changed files with 98 additions and 90 deletions
+3 -3
View File
@@ -20,11 +20,11 @@ def remove_exports(string)
match ? match[1] : string
end
minimal_deps = %w(ast jison_ext handlebars_lexer parser runtime utils).map do |file|
minimal_deps = %w(parser compiler ast jison_ext handlebars_lexer runtime utils).map do |file|
"lib/handlebars/#{file}.js"
end
debug_deps = %w(ast jison_ext handlebars_lexer printer parser runtime utils).map do |file|
debug_deps = %w(parser compiler ast jison_ext handlebars_lexer printer runtime utils).map do |file|
"lib/handlebars/#{file}.js"
end
@@ -38,7 +38,7 @@ def build_for_task(task)
FileUtils.rm_rf("dist/*") if File.directory?("dist")
FileUtils.mkdir_p("dist")
contents = ["var Handlebars = {};"]
contents = []
task.prerequisites.each do |filename|
next if filename == "dist"