Sha256: 5dca883716e805cc81b83dd1211224eb428e951bd5fb7367e137c511008ceb7e
Contents?: true
Size: 948 Bytes
Versions: 11
Compression:
Stored size: 948 Bytes
Contents
# frozen_string_literal: true module Blacklight module Assets class PropshaftGenerator < Rails::Generators::Base def add_package if ENV['CI'] run "yarn add file:#{Blacklight::Engine.root}" else run "yarn add blacklight-frontend@#{Blacklight::VERSION}" 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 & 1 rubygems