Sha256: fabb9cb96f0be140708a306f2d95a0c1bd0964e7ebac2a34b1333aabd372e79f

Contents?: true

Size: 433 Bytes

Versions: 6

Compression:

Stored size: 433 Bytes

Contents

# require "brwy_rails/runner"
namespace :brwy_rails do
  task :npm_setup do
    unless File.exists? Rails.root.join("package.json")
      sh 'npm init -y'
    end
    sh 'npm install -D watchify browserify'
  end

  task :build => :environment do
    sh 'npm install'
    runner = BrwyRails::Runner.new Rails.application.config.brwy_rails.merge watch: false
    runner.run
  end
end

task 'assets:precompile' => ['brwy_rails:build']

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
brwy_rails-0.0.6 lib/tasks/bywy_rails_tasks.rake
brwy_rails-0.0.5 lib/tasks/bywy_rails_tasks.rake
brwy_rails-0.0.4 lib/tasks/bywy_rails_tasks.rake
brwy_rails-0.0.3 lib/tasks/bywy_rails_tasks.rake
brwy_rails-0.0.2 lib/tasks/bywy_rails_tasks.rake
brwy_rails-0.0.1 lib/tasks/bywy_rails_tasks.rake