Rakefile in bridgetown-plugin-tailwindcss-0.1.0 vs Rakefile in bridgetown-plugin-tailwindcss-0.1.1
- old
+ new
@@ -1,16 +1,43 @@
# frozen_string_literal: true
require "bundler/gem_tasks"
require "rspec/core/rake_task"
+require "./lib/bridgetown-plugin-tailwindcss/utils"
RSpec::Core::RakeTask.new(:spec)
task :default => :spec
task :test => :spec
task :release do
Rake.sh "./script/release"
+end
+
+
+namespace :bump do
+ task :current do
+ puts TailwindCss::Utils::Bump.new.current_version
+ end
+
+ task :set do
+ question = "What would you like to set your version to? IE: [2.1.0] :"
+ value = TailwindCss::Utils::Actions.new.ask(question)
+
+ TailwindCss::Utils::Bump.new.bump_version_to_string(value)
+ end
+
+ task :major do
+ TailwindCss::Utils::Bump.new.bump_version(:major)
+ end
+
+ task :minor do
+ TailwindCss::Utils::Bump.new.bump_version(:minor)
+ end
+
+ task :patch do
+ TailwindCss::Utils::Bump.new.bump_version(:patch)
+ end
end
def filelist(*strings)
Rake::FileList.new(strings) do |fl|
fl.exclude(/node_modules/)