Sha256: f4787bb24942561590c0031d492e5d2143599fce875399ebc779323b4c7c3c27
Contents?: true
Size: 940 Bytes
Versions: 11
Compression:
Stored size: 940 Bytes
Contents
# frozen_string_literal: true module Blacklight module Assets class PropshaftGenerator < Rails::Generators::Base def add_package if ENV['CI'] run "yarn add blacklight-frontend:#{Blacklight::Engine.root}" else run 'yarn add blacklight-frontend' end end def add_third_party_packages run 'yarn add @github/auto-complete-element' end def add_package_assets append_to_file 'app/assets/stylesheets/application.bootstrap.scss' do <<~CONTENT @import "blacklight-frontend/app/assets/stylesheets/blacklight/blacklight"; CONTENT end append_to_file 'app/javascript/application.js' do <<~CONTENT import Blacklight from "blacklight-frontend"; import githubAutoCompleteElement from "@github/auto-complete-element"; CONTENT end end end end end
Version data entries
11 entries across 11 versions & 2 rubygems