Support for Bridgetown v1.2.0
joemasilotti opened this issue · 1 comments
joemasilotti commented
When adding this gem to a Bridgetown v1.2.0 project I get a bunch of deprecation warnings in the console.
[Bridgetown] Deprecation: The Bridgetown::ViewComponent plugin should switch from using `new_source_manifest' to the `source_manifest` initializer method
[Bridgetown] Deprecation: The Bridgetown::ViewComponent plugin should switch from using `add_source_manifest' to the `source_manifest` initializer method
[Bridgetown] Initializing: The `bridgetown-view-component' initializer could not be found
[Bridgetown] Deprecation: The Bridgetown::ViewComponent plugin should switch from using `new_source_manifest' to the `source_manifest` initializer method
[Bridgetown] Deprecation: The Bridgetown::ViewComponent plugin should switch from using `add_source_manifest' to the `source_manifest` initializer method
[Bridgetown] Initializing: The `bridgetown-view-component' initializer could not be found
Relevant code:
# Gemfile
source "https://rubygems.org"
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
gem "bridgetown", "1.2.0.beta4"
gem "bridgetown-view-component"
gem "view_component", "< 2.75"
group :development do
gem "puma", "~> 5.6"
end
# config/initializers.rb
Bridgetown.configure do |config|
permalink "pretty"
template_engine "erb"
init :"bridgetown-view-component"
end
ZilvinasKucinskas commented