lib/tasks/vue.rake in vueonrails-0.2.0 vs lib/tasks/vue.rake in vueonrails-0.3.0

- old
+ new

@@ -1,20 +1,21 @@ bin_path = ENV["BUNDLE_BIN"] || "./bin" TASKS = { + locale: "install vue-i18n", 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?" + specific_page_vue: "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__) + template = File.expand_path("../installs/#{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"