Skip to content

Commit

Permalink
Components: Install Lookbook for Component Preview
Browse files Browse the repository at this point in the history
- #1187

Now we get even *shinier* components! Such shiny! Very browse! Much wow!

I went with the 2.0 beta because I figured it's close to prod.
  • Loading branch information
zspencer committed Mar 7, 2023
1 parent cd28efc commit 383e6e4
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@ gem "redcarpet", "~> 3.6"
# Breadcrumbs!
gem "gretel", "~> 4.4"
# Better UI components
gem "lookbook", ">= 2.0.0.beta.4"
gem "view_component", "~> 2.82"

# Pagination!
gem "pagy", "~> 6.0"

Expand Down
17 changes: 17 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,8 @@ GEM
crack (0.4.5)
rexml
crass (1.0.6)
css_parser (1.14.0)
addressable
cssbundling-rails (1.1.2)
railties (>= 6.0.0)
date (3.3.3)
Expand Down Expand Up @@ -148,6 +150,8 @@ GEM
actionview (>= 5.1, < 7.1)
railties (>= 5.1, < 7.1)
hashdiff (1.0.1)
htmlbeautifier (1.4.2)
htmlentities (4.3.4)
i18n (1.12.0)
concurrent-ruby (~> 1.0)
jaro_winkler (1.5.4)
Expand All @@ -172,6 +176,17 @@ GEM
loofah (2.19.1)
crass (~> 1.0.2)
nokogiri (>= 1.5.9)
lookbook (2.0.0.beta.4)
activemodel
css_parser
htmlbeautifier (~> 1.3)
htmlentities (~> 4.3.4)
railties (>= 5.0)
redcarpet (~> 3.5)
rouge (>= 3.26, < 5.0)
view_component (>= 2.0)
yard (~> 0.9.25)
zeitwerk (~> 2.5)
mail (2.8.1)
mini_mime (>= 0.1.1)
net-imap
Expand Down Expand Up @@ -275,6 +290,7 @@ GEM
nokogiri
rexml (3.2.5)
rotp (6.2.2)
rouge (4.1.0)
rspec-core (3.11.0)
rspec-support (~> 3.11.0)
rspec-expectations (3.11.1)
Expand Down Expand Up @@ -429,6 +445,7 @@ DEPENDENCIES
jsbundling-rails
listen (~> 3.8)
lockbox (= 1.1.2)
lookbook (>= 2.0.0.beta.4)
money-rails
pagy (~> 6.0)
pg (~> 1.4)
Expand Down
1 change: 1 addition & 0 deletions config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
Rails.application.routes.draw do
mount Rswag::Ui::Engine => "/api-docs"
mount Rswag::Api::Engine => "/api-docs"
mount Lookbook::Engine, at: "/components"

resources :authentication_methods, only: %i[create]
resource :authenticated_session, only: %i[new create update destroy show]
Expand Down

0 comments on commit 383e6e4

Please sign in to comment.