Rakefile in timeline_setter-0.2.0 vs Rakefile in timeline_setter-0.3.0

- old
+ new

@@ -3,10 +3,20 @@ require 'rake/clean' require 'rake/rdoctask' require 'rspec/core/rake_task' require './lib/timeline_setter' +desc "generate templates and minified JS. Stash them in public/javascripts" +task :jammit do + %x{ + cd #{TimelineSetter::ROOT} && + jammit && + mv public/assets/templates.js public/javascripts/templates.js && + mv public/assets/main.js public/javascripts/timeline-setter.min.js + rm -rf public/assets + } +end desc "build docs" task :docs do require 'rdiscount' require 'erb' @@ -22,11 +32,10 @@ desc "generate gh-pages" task :gh_pages do `rake docs` `rake yard` `rake docco` - `rake sample` `git branch` =~ /^\* (.+)?\n/ current_branch = $1 `git commit -am "docs"` @@ -56,10 +65,10 @@ gem.executables = "timeline-setter" gem.require_paths = ['lib'] gem.add_dependency "json" gem.add_dependency "table_fu" gem.add_dependency "kompress", ">= 0.0.2" - gem.add_dependency "closure-compiler" + gem.add_dependency "jammit" gem.add_development_dependency "rspec", ">= 2.0.0" gem.version = TimelineSetter::VERSION end Jeweler::GemcutterTasks.new rescue LoadError