Permalink
Browse files

add package.json

  • Loading branch information...
1 parent e17d34f commit c2c0d5dfb2b71d8f8117314eea1e693938c25951 @drnic drnic committed Jul 20, 2011
Showing 2,252 changed files with 243,303 additions and 0 deletions.
@@ -0,0 +1 @@
+raw
@@ -0,0 +1,22 @@
+Copyright (c) 2010 Jeremy Ashkenas, DocumentCloud
+
+Permission is hereby granted, free of charge, to any person
+obtaining a copy of this software and associated documentation
+files (the "Software"), to deal in the Software without
+restriction, including without limitation the rights to use,
+copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the
+Software is furnished to do so, subject to the following
+conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
+OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
+WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
+OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,25 @@
+ ____ _ _ _
+ | _ \ | | | | (_)
+ | |_) | __ _ ___| | __| |__ ___ _ __ ___ _ ___
+ | _ < / _` |/ __| |/ /| '_ \ / _ \| '_ \ / _ \ | / __|
+ | |_) | (_| | (__| < | |_) | (_) | | | | __/_| \__ \
+ |____/ \__,_|\___|_|\_\|_.__/ \___/|_| |_|\___(_) |___/
+ _/ |
+ |__/
+(_'___________________________________________________'_)
+(_.———————————————————————————————————————————————————._)
+
+
+Backbone supplies structure to JavaScript-heavy applications by providing models key-value binding and custom events, collections with a rich API of enumerable functions, views with declarative event handling, and connects it all to your existing application over a RESTful JSON interface.
+
+For Docs, License, Tests, and pre-packed downloads, see:
+http://documentcloud.github.com/backbone/
+
+To suggest a feature, report a bug, or general discussion:
+http://github.com/documentcloud/backbone/issues/
+
+All contributors are listed here:
+http://github.com/documentcloud/backbone/contributors
+
+Special thanks to Robert Kieffer for the original philosophy behind Backbone.
+http://github.com/broofa
@@ -0,0 +1,42 @@
+require 'rubygems'
+
+HEADER = /((^\s*\/\/.*\n)+)/
+
+desc "rebuild the backbone-min.js files for distribution"
+task :build do
+ begin
+ require 'closure-compiler'
+ rescue LoadError
+ puts "closure-compiler not found.\nInstall it by running 'gem install closure-compiler"
+ exit
+ end
+ source = File.read 'backbone.js'
+ header = source.match(HEADER)
+ File.open('backbone-min.js', 'w+') do |file|
+ file.write header[1].squeeze(' ') + Closure::Compiler.new.compress(source)
+ end
+end
+
+desc "build the docco documentation"
+task :doc do
+ check 'docco', 'docco', 'https://github.com/jashkenas/docco'
+ system 'docco backbone.js && docco examples/todos/todos.js examples/backbone-localstorage.js'
+end
+
+desc "run JavaScriptLint on the source"
+task :lint do
+ system "jsl -nofilelisting -nologo -conf docs/jsl.conf -process backbone.js"
+end
+
+desc "test the CoffeeScript integration"
+task :test do
+ check 'coffee', 'CoffeeScript', 'https://github.com/jashkenas/coffee-script.git'
+ system "coffee test/*.coffee"
+end
+
+# Check for the existence of an executable.
+def check(exec, name, url)
+ return unless `which #{exec}`.empty?
+ puts "#{name} not found.\nInstall it from #{url}"
+ exit
+end
Oops, something went wrong.

0 comments on commit c2c0d5d

Please sign in to comment.