Sha256: 511d098274859b5f714af2e2a22a2347344d8326fbdf9b6103fcd856c20ab373
Contents?: true
Size: 599 Bytes
Versions: 3
Compression:
Stored size: 599 Bytes
Contents
namespace :javascript do desc "Build your JavaScript bundle" task :build do unless system "yarn install && yarn build" raise "jsbundling-rails: Command build failed, ensure yarn is installed and `yarn build` runs without errors" end end end if Rake::Task.task_defined?("assets:precompile") Rake::Task["assets:precompile"].enhance(["javascript:build"]) end if Rake::Task.task_defined?("test:prepare") Rake::Task["test:prepare"].enhance(["javascript:build"]) elsif Rake::Task.task_defined?("db:test:prepare") Rake::Task["db:test:prepare"].enhance(["javascript:build"]) end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
jsbundling-rails-1.0.3 | lib/tasks/jsbundling/build.rake |
jsbundling-rails-1.0.2 | lib/tasks/jsbundling/build.rake |
jsbundling-rails-1.0.1 | lib/tasks/jsbundling/build.rake |