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

Version Path
ariadne_view_components-0.0.36-x86_64-darwin lib/tasks/static.rake
ariadne_view_components-0.0.36 lib/tasks/static.rake
ariadne_view_components-0.0.36-arm64-darwin lib/tasks/static.rake
ariadne_view_components-0.0.36-aarch64-linux lib/tasks/static.rake
ariadne_view_components-0.0.35-x64-mingw32 lib/tasks/static.rake
ariadne_view_components-0.0.35-x64-mingw-ucrt lib/tasks/static.rake
ariadne_view_components-0.0.35-arm64-darwin lib/tasks/static.rake
ariadne_view_components-0.0.35-aarch64-linux lib/tasks/static.rake
ariadne_view_components-0.0.34 lib/tasks/static.rake
ariadne_view_components-0.0.34-x86_64-linux lib/tasks/static.rake
ariadne_view_components-0.0.34-x86_64-darwin lib/tasks/static.rake
ariadne_view_components-0.0.34-x64-mingw32 lib/tasks/static.rake
ariadne_view_components-0.0.34-x64-mingw-ucrt lib/tasks/static.rake
ariadne_view_components-0.0.34-arm64-darwin lib/tasks/static.rake
ariadne_view_components-0.0.34-aarch64-linux lib/tasks/static.rake
ariadne_view_components-0.0.33 lib/tasks/static.rake
ariadne_view_components-0.0.33-x86_64-linux lib/tasks/static.rake
ariadne_view_components-0.0.33-x86_64-darwin lib/tasks/static.rake
ariadne_view_components-0.0.33-x64-mingw32 lib/tasks/static.rake
ariadne_view_components-0.0.33-x64-mingw-ucrt lib/tasks/static.rake