Skip to content

Commit

Permalink
Merge pull request #3039 from tvdeyen/remove-7.0-upgrader
Browse files Browse the repository at this point in the history
Remove 7.x upgraders
  • Loading branch information
tvdeyen authored Sep 18, 2024
2 parents 0dfea1e + 5ac0fb4 commit 5508e6d
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 138 deletions.
Empty file added lib/alchemy/upgrader/.keep
Empty file.
52 changes: 0 additions & 52 deletions lib/alchemy/upgrader/seven_point_three.rb

This file was deleted.

36 changes: 0 additions & 36 deletions lib/alchemy/upgrader/seven_point_zero.rb

This file was deleted.

51 changes: 1 addition & 50 deletions lib/tasks/alchemy/upgrade.rake
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@ require "alchemy/version"
namespace :alchemy do
desc "Upgrades your app to AlchemyCMS v#{Alchemy::VERSION}."
task upgrade: [
"alchemy:upgrade:prepare",
"alchemy:upgrade:7.0:run",
"alchemy:upgrade:7.3:run"
"alchemy:upgrade:prepare"
] do
Alchemy::Upgrader.display_todos
end
Expand All @@ -30,52 +28,5 @@ namespace :alchemy do
task config: [:environment] do
Alchemy::Upgrader.copy_new_config_file
end

desc "Upgrade Alchemy to v7.0"
task "7.0" => [
"alchemy:upgrade:prepare",
"alchemy:upgrade:7.0:run"
] do
Alchemy::Upgrader.display_todos
end

desc "Upgrade Alchemy to v7.3"
task "7.3" => [
"alchemy:upgrade:prepare",
"alchemy:upgrade:7.3:run"
] do
Alchemy::Upgrader.display_todos
end

namespace "7.0" do
task "run" => [
"alchemy:upgrade:7.0:remove_admin_entrypoint"
]

desc "Remove alchemy admin entrypoint"
task remove_admin_entrypoint: [:environment] do
puts "removing npm_package..."
Alchemy::Upgrader::SevenPointZero.remove_admin_entrypoint
end
end

namespace "7.3" do
task "run" => [
"alchemy:upgrade:7.3:remove_admin_stylesheets",
"alchemy:upgrade:7.3:generate_custom_css_entrypoint"
] do
Alchemy::Upgrader::SevenPointThree.show_resource_table_notice
end

desc "Remove alchemy admin stylesheets"
task remove_admin_stylesheets: [:environment] do
Alchemy::Upgrader::SevenPointThree.remove_admin_stylesheets
end

desc "Generate custom css entrypoint"
task generate_custom_css_entrypoint: [:environment] do
Alchemy::Upgrader::SevenPointThree.generate_custom_css_entrypoint
end
end
end
end

0 comments on commit 5508e6d

Please sign in to comment.