Remove the debug file (Suspect broken Due to missing class references)

This commit is contained in:
kpdecker
2011-07-30 10:33:40 -05:00
parent 8c49721c70
commit 2e77f1c777
3 changed files with 3 additions and 44 deletions
+1 -3
View File
@@ -181,9 +181,7 @@ Building
--------
To build handlebars, just run `rake release`, and you will get two files
in the `dist` directory. The debug version comes with stack trace
annotations for webkit browsers, but will slightly increase startup
time.
in the `dist` directory.
Upgrading
+2 -12
View File
@@ -32,14 +32,9 @@ minimal_deps = %w(compiler/parser base compiler/ast utils compiler/compiler vm).
"lib/handlebars/#{file}.js"
end
debug_deps = %w(compiler/parser base compiler/ast compiler/visitor compiler/printer utils compiler/compiler vm debug).map do |file|
"lib/handlebars/#{file}.js"
end
directory "dist"
minimal_deps.unshift "dist"
debug_deps.unshift "dist"
def build_for_task(task)
FileUtils.rm_rf("dist/*") if File.directory?("dist")
@@ -61,15 +56,10 @@ file "dist/handlebars.js" => minimal_deps do |task|
build_for_task(task)
end
file "dist/handlebars.debug.js" => debug_deps do |task|
build_for_task(task)
end
task :build => [:compile, "dist/handlebars.js"]
task :debug => [:compile, "dist/handlebars.debug.js"]
desc "build the build and debug versions of handlebars"
task :release => [:build, :debug]
desc "build the build version of handlebars"
task :release => [:build]
directory "vendor"
-29
View File
@@ -1,29 +0,0 @@
var Handlebars = require("handlebars");
// BEGIN(BROWSER)
(function() {
var classes = ["Lexer", "PrintVisitor", "Context", "Runtime", "Exception"];
var prop;
for(var i=0, l=classes.length; i<l; i++) {
var className = classes[i], klass = Handlebars[className];
klass.displayName = "new Handlebars." + className;
for(prop in klass) {
if(klass.hasOwnProperty(prop)) {
klass[prop].displayName = "Handlebars." + className + "#" + prop;
}
}
}
for(prop in Handlebars.Utils) {
if(Handlebars.Utils.hasOwnProperty(prop)) {
Handlebars.Utils[prop].displayName = "Handlebars.Utils." + prop;
}
}
Handlebars.parse.displayName = "Handlebars.parse";
Handlebars.print.displayName = "Handlebars.print";
Handlebars.compile.displayName = "Handlebars.compile";
})();
// END(BROWSER)