Sha256: de4803d0e85221bfa46672a43d863504dbd756e501b9b68df95f700996b98594
Contents?: true
Size: 545 Bytes
Versions: 246
Compression:
Stored size: 545 Bytes
Contents
# frozen_string_literal: true namespace :static do desc "Generate static JSON mappings of components for easier loading" task :dump do require File.expand_path("./../../lookbook/config/environment.rb", __dir__) require "ariadne/view_components" # Loads all components for `.descendants` to work properly Dir["./app/components/ariadne/**/*.rb"].sort.each { |file| require file } Ariadne::ViewComponents.dump(:statuses) Ariadne::ViewComponents.dump(:constants) Ariadne::ViewComponents.dump(:audited_at) end end
Version data entries
246 entries across 246 versions & 1 rubygems