Sha256: 9be8816f5d475dfc2cb4a6413d68cd0ab2a1893684d364dc9238a1de3669b3c5

Contents?: true

Size: 1.34 KB

Versions: 23

Compression:

Stored size: 1.34 KB

Contents

begin
  require 'bundler/setup'
rescue LoadError
  puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
end

APP_RAKEFILE = File.expand_path("../spec/dummy/Rakefile", __FILE__)
load 'rails/tasks/engine.rake'

Bundler::GemHelper.install_tasks

git_tagger = Gem::Specification.find_by_name "git_tagger"
load "#{git_tagger.gem_dir}/lib/tasks/deploy.rake"

require "rspec/core"
require "rspec/core/rake_task"
 
desc "Run all specs in spec directory (excluding plugin specs)"
RSpec::Core::RakeTask.new(:spec)

desc "Run all JS specs"
task :js_spec do
  Rake::Task["app:spec:javascript"].invoke
end

require "jshintrb/jshinttask"
Jshintrb::JshintTask.new :jshint do |t|
  t.pattern = %w(
    spec/dummy/spec/javascripts/**/*.js
    app/assets/javascripts/think_feel_do_engine/**/draw_graphs.js
  )
  t.options = :defaults
  t.globals = ["$".to_sym, :spyOn, :afterEach, :beforeEach, :describe, :expect, :it, :jasmine, :sc, :Graph, :appendDateRange, :columnChart, :d3, :moment]
end

require "rubocop/rake_task"

RuboCop::RakeTask.new

desc "Run Brakeman"
task :brakeman do
  dir = File.dirname(__FILE__)
  puts `#{ File.join(dir, "bin", "brakeman") } #{ File.join(dir, ".") }`
end

task :default do
  Rake::Task["brakeman"].invoke
  Rake::Task["jshint"].invoke
  Rake::Task["rubocop"].invoke
  Rake::Task["js_spec"].invoke
  Rake::Task["spec"].invoke
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
think_feel_do_engine-3.19.9 Rakefile
think_feel_do_engine-3.19.8 Rakefile
think_feel_do_engine-3.19.7 Rakefile
think_feel_do_engine-3.19.6 Rakefile
think_feel_do_engine-3.19.5 Rakefile
think_feel_do_engine-3.19.4 Rakefile
think_feel_do_engine-3.19.3 Rakefile
think_feel_do_engine-3.19.2 Rakefile
think_feel_do_engine-3.19.1 Rakefile
think_feel_do_engine-3.19.0 Rakefile
think_feel_do_engine-3.18.0 Rakefile
think_feel_do_engine-3.17.2 Rakefile
think_feel_do_engine-3.17.1 Rakefile
think_feel_do_engine-3.17.0 Rakefile
think_feel_do_engine-3.16.3 Rakefile
think_feel_do_engine-3.16.2 Rakefile
think_feel_do_engine-3.16.1 Rakefile
think_feel_do_engine-3.15.7 Rakefile
think_feel_do_engine-3.16.0 Rakefile
think_feel_do_engine-3.15.6 Rakefile