summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--README.markdown4
-rw-r--r--Rakefile14
-rw-r--r--lib/handlebars/debug.js29
3 files changed, 3 insertions, 44 deletions
diff --git a/README.markdown b/README.markdown
index 3cee789..89405bf 100644
--- a/README.markdown
+++ b/README.markdown
@@ -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
diff --git a/Rakefile b/Rakefile
index 31a5e95..19d56db 100644
--- a/Rakefile
+++ b/Rakefile
@@ -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"
diff --git a/lib/handlebars/debug.js b/lib/handlebars/debug.js
deleted file mode 100644
index c9c73ca..0000000
--- a/lib/handlebars/debug.js
+++ /dev/null
@@ -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)