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.39-x64-mingw-ucrt lib/tasks/static.rake
ariadne_view_components-0.0.39-arm64-darwin lib/tasks/static.rake
ariadne_view_components-0.0.39 lib/tasks/static.rake
ariadne_view_components-0.0.38-x64-mingw32 lib/tasks/static.rake
ariadne_view_components-0.0.38-aarch64-linux lib/tasks/static.rake
ariadne_view_components-0.0.38-x86_64-darwin lib/tasks/static.rake
ariadne_view_components-0.0.38-arm64-darwin lib/tasks/static.rake
ariadne_view_components-0.0.38-x86_64-linux lib/tasks/static.rake
ariadne_view_components-0.0.38-x64-mingw-ucrt lib/tasks/static.rake
ariadne_view_components-0.0.38 lib/tasks/static.rake
ariadne_view_components-0.0.37-x64-mingw-ucrt lib/tasks/static.rake
ariadne_view_components-0.0.37-aarch64-linux lib/tasks/static.rake
ariadne_view_components-0.0.37-x86_64-darwin lib/tasks/static.rake
ariadne_view_components-0.0.37-x86_64-linux lib/tasks/static.rake
ariadne_view_components-0.0.37-arm64-darwin lib/tasks/static.rake
ariadne_view_components-0.0.37-x64-mingw32 lib/tasks/static.rake
ariadne_view_components-0.0.37 lib/tasks/static.rake
ariadne_view_components-0.0.36-x64-mingw-ucrt lib/tasks/static.rake
ariadne_view_components-0.0.36-x64-mingw32 lib/tasks/static.rake
ariadne_view_components-0.0.36-x86_64-linux lib/tasks/static.rake