Sha256: b73eb24a0b7bb8dee46d15e627ca3802f97c2b492f55eb00616e60d8f90f0d4c
Contents?: true
Size: 1 KB
Versions: 4
Compression:
Stored size: 1 KB
Contents
require "bundler/gem_tasks" require 'sprockets' def pack_js(src_file) secretary = ::Sprockets::Secretary.new( :asset_root => "lib", :source_files => ["lib/rrd-grapher/assets/javascripts/#{src_file}"], :interpolate_constants => false ) concatenation = secretary.concatenation concatenation.save_to("lib/rrd-grapher/public/javascripts/#{src_file}") secretary.install_assets end # compile and pack coffee files task :build do # core sh "coffee -c -o lib/rrd-grapher/public/javascripts lib/rrd-grapher/assets/javascripts/" # example_app sh "coffee -c -o example_app/public/javascripts example_app/assets/javascripts/" # sprockets pack_js("app-dev.js") pack_js("app.js") end task :test do system("COVERAGE=1 bundle exec bacon spec/**/*_spec.rb") end begin require 'jasmine' load 'jasmine/tasks/jasmine.rake' rescue LoadError task :jasmine do abort "Jasmine is not available. In order to run jasmine, you must: (sudo) gem install jasmine" end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
rrd-grapher-1.0.3 | Rakefile |
rrd-grapher-1.0.2 | Rakefile |
rrd-grapher-1.0.1 | Rakefile |
rrd-grapher-1.0.0 | Rakefile |