Sha256: b61d61bff7367e40ebf9b1035e8553c2b8e58163236cde95a25c629451635561
Contents?: true
Size: 840 Bytes
Versions: 3
Compression:
Stored size: 840 Bytes
Contents
# frozen_string_literal: true # "Hacks, but they work" ™ if !defined?(Rails) || ENV.fetch("DOCS_BUILD", false).blank? # Spoof the Rails environment module Rails def self.root Pathname.new(File.join(File.dirname(__FILE__), "..", "..")) end end rule "" do |t| task_name = t.name if task_name == "assets:precompile" puts "Stubbing non-existent #{task_name}" else raise "No task named #{task_name}" end end end spec = Gem::Specification.find_by_name("tailwindcss-rails") load "#{spec.gem_dir}/lib/tasks/build.rake" Rake::Task["tailwindcss:build"].enhance do if File.exist?("app/assets/builds/tailwind.css") puts "Renaming tailwind.css to ariadne_view_components.css..." File.rename("app/assets/builds/tailwind.css", "app/assets/builds/ariadne_view_components.css") end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ariadne_view_components-0.0.3 | lib/tasks/tailwind.rake |
ariadne_view_components-0.0.2 | lib/tasks/tailwind.rake |
ariadne_view_components-0.0.1 | lib/tasks/tailwind.rake |