Sha256: c763a80687039b221c470db155f60c1754346b10cda45d1ee446771ac7acd5be

Contents?: true

Size: 377 Bytes

Versions: 11

Compression:

Stored size: 377 Bytes

Contents

# frozen_string_literal: true

namespace :constants do
  task :dump do
    require File.expand_path("./../../demo/config/environment.rb", __dir__)
    require "primer/view_components"
    # Loads all components for `.descendants` to work properly
    Dir["./app/components/primer/**/*.rb"].sort.each { |file| require file }

    Primer::ViewComponents.dump_constants
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
primer_view_components-0.0.59 lib/tasks/constants.rake
primer_view_components-0.0.58 lib/tasks/constants.rake
primer_view_components-0.0.57 lib/tasks/constants.rake
primer_view_components-0.0.56 lib/tasks/constants.rake
primer_view_components-0.0.55 lib/tasks/constants.rake
primer_view_components-0.0.54 lib/tasks/constants.rake
primer_view_components-0.0.53 lib/tasks/constants.rake
primer_view_components-0.0.52 lib/tasks/constants.rake
primer_view_components-0.0.51 lib/tasks/constants.rake
primer_view_components-0.0.50 lib/tasks/constants.rake
primer_view_components-0.0.49 lib/tasks/constants.rake