Sha256: 1baefd8388176e6c2fc89bddfe96d89b062a0ec8931752da8a4a2af00d756d42
Contents?: true
Size: 431 Bytes
Versions: 3
Compression:
Stored size: 431 Bytes
Contents
WEBPACKER_APP_TEMPLATE_PATH = File.expand_path("../../install/template.rb", __dir__) namespace :webpacker_lite do desc "Install webpacker lite in this application" task install: [:check_node, :check_yarn] do if Rails::VERSION::MAJOR >= 5 exec "./bin/rails app:template LOCATION=#{WEBPACKER_APP_TEMPLATE_PATH}" else exec "./bin/rake rails:template LOCATION=#{WEBPACKER_APP_TEMPLATE_PATH}" end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
webpacker_lite-0.0.5 | lib/tasks/webpacker_lite/install.rake |
webpacker_lite-0.0.4 | lib/tasks/webpacker_lite/install.rake |
webpacker_lite-0.0.3 | lib/tasks/webpacker_lite/install.rake |