Sha256: 14c4cb347fcfa12d2d3ea8ff1ca1aee2841b156e4c8514e344351c40cf76db15
Contents?: true
Size: 714 Bytes
Versions: 3
Compression:
Stored size: 714 Bytes
Contents
bin_path = ENV["BUNDLE_BIN"] || "./bin" TASKS = { turbolinks: "Check Vue-turbolinks ready", setup: "Check Vue on Rails ready", test: "Check Jest tests ready", vuex: "Check Vuex ready", ui: "Check Vue-ui ready", spv: "Check Specific-page Vue ready?" }.freeze namespace :vue do TASKS.each do |task_name, description| desc description task task_name do template = File.expand_path("../install/#{task_name}.rb", __dir__) base_path = if Rails::VERSION::MAJOR >= 5 "#{RbConfig.ruby} #{bin_path}/rails app:template" else "#{RbConfig.ruby} #{bin_path}/rake rails:template" end exec "#{base_path} LOCATION=#{template}" end end end
Version data entries
3 entries across 3 versions & 2 rubygems
Version | Path |
---|---|
vueonrails-0.2.0 | lib/tasks/vue.rake |
vueonrails-0.1.0 | lib/tasks/vue.rake |
vuejs-1.1.0.beta9 | lib/tasks/vue.rake |