Sha256: a20ed91cd6e972165abe36927f6d4d048d96499c9577aeda2a5e4167670d83d2
Contents?: true
Size: 494 Bytes
Versions: 2
Compression:
Stored size: 494 Bytes
Contents
# frozen_string_literal: true namespace :static do task :dump do ENV["RAILS_ENV"] = "test" require File.expand_path("./../../demo/config/environment.rb", __dir__) require "yattho/view_components" # Loads all components for `.descendants` to work properly Dir["./app/components/yattho/**/*.rb"].sort.each { |file| require file } Yattho::ViewComponents.dump(:statuses) Yattho::ViewComponents.dump(:constants) Yattho::ViewComponents.dump(:audited_at) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
yattho_view_components-0.1.1 | lib/tasks/static.rake |
yattho_view_components-0.0.1 | lib/tasks/static.rake |