Sha256: b917dbf19b94c8f1aa0aa816e52398876d2bba815612fc5a97cf1ff4d490db7f
Contents?: true
Size: 438 Bytes
Versions: 12
Compression:
Stored size: 438 Bytes
Contents
# frozen_string_literal: true install_template_path = File.expand_path('../../install/template.rb', __dir__).freeze bin_path = ENV['BUNDLE_BIN'] || Rails.root.join('bin') namespace :vite do desc 'Install ViteRails in this application' task :install do |task| prefix = task.name.split(/#|vite:install/).first exec "#{ RbConfig.ruby } #{ bin_path }/rails #{ prefix }app:template LOCATION=#{ install_template_path }" end end
Version data entries
12 entries across 12 versions & 1 rubygems