Sha256: 305909f74f6cd952c0b6becd5e58a2bed22adf49009f35cde2dd0f0451f1d525

Contents?: true

Size: 738 Bytes

Versions: 31

Compression:

Stored size: 738 Bytes

Contents

# frozen_string_literal: true

# source: https://stephenagrice.medium.com/making-a-command-line-ruby-gem-write-build-and-push-aec24c6c49eb

GEM_NAME = 'tailwind_dsl'

require 'bundler/gem_tasks'
require 'rspec/core/rake_task'
require 'tailwind_dsl/version'

RSpec::Core::RakeTask.new(:spec)

require 'rake/extensiontask'

desc 'Compile all the extensions'
task build: :compile

Rake::ExtensionTask.new('tailwind_dsl') do |ext|
  ext.lib_dir = 'lib/tailwind_dsl'
end

desc 'Publish the gem to RubyGems.org'
task :publish do
  version = TailwindDsl::VERSION
  system 'gem build'
  system "gem push #{GEM_NAME}-#{version}.gem"
end

desc 'Remove old *.gem files'
task :clean do
  system 'rm *.gem'
end

task default: %i[clobber compile spec]

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
tailwind_dsl-0.0.32 Rakefile
tailwind_dsl-0.0.31 Rakefile
tailwind_dsl-0.0.30 Rakefile
tailwind_dsl-0.0.29 Rakefile
tailwind_dsl-0.0.28 Rakefile
tailwind_dsl-0.0.27 Rakefile
tailwind_dsl-0.0.26 Rakefile
tailwind_dsl-0.0.25 Rakefile
tailwind_dsl-0.0.24 Rakefile
tailwind_dsl-0.0.23 Rakefile
tailwind_dsl-0.0.22 Rakefile
tailwind_dsl-0.0.21 Rakefile
tailwind_dsl-0.0.20 Rakefile
tailwind_dsl-0.0.19 Rakefile
tailwind_dsl-0.0.18 Rakefile
tailwind_dsl-0.0.17 Rakefile
tailwind_dsl-0.0.16 Rakefile
tailwind_dsl-0.0.15 Rakefile
tailwind_dsl-0.0.14 Rakefile
tailwind_dsl-0.0.13 Rakefile