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