Sha256: 7286d4770095d00bd9468e595d449abbd70801a4c8a55165b606661ea613cb12

Contents?: true

Size: 1.03 KB

Versions: 11

Compression:

Stored size: 1.03 KB

Contents

#!/usr/bin/env rake
require 'bundler/gem_tasks'
require 'rspec/core/rake_task'
require "yard"
require 'yard/rake/yardoc_task'

RSpec::Core::RakeTask.new(:spec)

YARD::Rake::YardocTask.new(:yard)

ROOT = File.dirname(__FILE__)

task :default => :spec

namespace :coffee do
	desc "Complile coffee to js"
	task :compile do
		system 'coffee', '-c', "#{ROOT}/lib/pulse-meter/visualize/public/"
		puts "Done"
	end

	desc "Watch coffee files and recomplile them immediately"
	task :watch do
		system 'coffee', '--watch', '-c', "#{ROOT}/lib/pulse-meter/visualize/public/"
	end

end

namespace :yard do
  desc "Open doc index in a browser"
  task :open do
    system 'open', "#{ROOT}/doc/index.html"
  end
end

namespace :example do
  desc "Run minimal example"
  task :minimal do
    chdir(ROOT) do
      system "bundle"
      system "cd examples/minimal && bundle exec foreman start"
    end
  end

  desc "Run full example"
  task :full do
    chdir(ROOT) do
      system "bundle"
      system "cd examples/full && bundle exec foreman start"
    end
  end

end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
pulse-meter-0.2.11 Rakefile
pulse-meter-0.2.10 Rakefile
pulse-meter-0.2.9 Rakefile
pulse-meter-0.2.8 Rakefile
pulse-meter-0.2.7 Rakefile
pulse-meter-0.2.6 Rakefile
pulse-meter-0.2.5 Rakefile
pulse-meter-0.2.3 Rakefile
pulse-meter-0.2.2 Rakefile
pulse-meter-0.2.1 Rakefile
pulse-meter-0.2.0 Rakefile