Sha256: 620835b433d398e46301c50ad053d5942b254057e0307904dcc2e71615e32911

Contents?: true

Size: 894 Bytes

Versions: 16

Compression:

Stored size: 894 Bytes

Contents

# frozen_string_literal: true

require 'rubygems'
require 'rails'
begin
  require 'bundler/setup'
rescue LoadError
  puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
end

Bundler::GemHelper.install_tasks

# Hook up our NPM tasks to the standard uild and release tasks
Rake::Task['build'].enhance(['build:npm'])
Rake::Task['release'].enhance(['release:npm'])

# rubocop:disable Rails/RakeEnvironment
desc 'build javascript assets'
task 'build:npm' do
  sh 'npm install'
  sh 'npm run prepare'
end

desc "Publish javascript assets to npm\n" \
     "To prevent publishing in NPM use e.g. `npm_push=no rake release`"
task 'release:npm' do
  sh 'npm publish' unless %w[n no nil false off 0].include?(ENV["npm_push"].to_s.downcase)
end
# rubocop:enable Rails/RakeEnvironment

load "tasks/blacklight.rake"
load "lib/railties/blacklight.rake"

task default: [:rubocop, :ci]

Version data entries

16 entries across 16 versions & 2 rubygems

Version Path
blacklight-8.6.1 Rakefile
blacklight-8.6.0 Rakefile
blacklight-8.5.1 Rakefile
blacklight-8.5.0 Rakefile
blacklight-8.4.0 Rakefile
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/blacklight-8.3.0/Rakefile
blacklight-8.3.0 Rakefile
blacklight-8.2.2 Rakefile
blacklight-8.2.1 Rakefile
blacklight-8.2.0 Rakefile
blacklight-8.1.0 Rakefile
blacklight-8.0.1 Rakefile
blacklight-8.0.0 Rakefile
blacklight-8.0.0.beta8 Rakefile
blacklight-8.0.0.beta7 Rakefile
blacklight-8.0.0.beta6 Rakefile