Sha256: 36566f8d600196605bb836d5a0c2c49db500e89f7e4a27b27ae2e93e7edd3def

Contents?: true

Size: 1.03 KB

Versions: 18

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

18 entries across 18 versions & 2 rubygems

Version Path
pulse-meter-client-backport-0.1.4 Rakefile
pulse-meter-0.1.11 Rakefile
pulse-meter-client-backport-0.1.3 Rakefile
pulse-meter-0.1.10 Rakefile
pulse-meter-client-backport-0.1.2 Rakefile
pulse-meter-0.1.9 Rakefile
pulse-meter-client-backport-0.1.1 Rakefile
pulse-meter-0.1.8 Rakefile
pulse-meter-0.1.7 Rakefile
pulse-meter-0.1.6 Rakefile
pulse-meter-0.1.5 Rakefile
pulse-meter-0.1.4 Rakefile
pulse-meter-0.1.3 Rakefile
pulse-meter-0.1.2 Rakefile
pulse-meter-0.1.1 Rakefile
pulse-meter-client-backport-0.1.0 Rakefile
pulse-meter-0.1.0 Rakefile
pulse-meter-0.0.1 Rakefile