-
Notifications
You must be signed in to change notification settings - Fork 116
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add lookbook to demo * Updating assets and routes for docker * Removing javascript_importmap_tags * copy entire app folder * try docker_image * use tag argument * don't use lookbook unless rails is more than 7 * push all tags * if rails is greater than 7 * Setup IMAGE_TAG variable * Missed a quote * push all tags * try tag param * image.tags? * check rails_version * better if * check version * try manual push * or main * Does connecting in manifest fix path? * only js right now * connect to pvc css * Try pulling cache to speed up? * Fixing gem updates * pull from image_url ignore if it doesn't exist * switch to unless * only if Lookbook is defined * use application import * if defined * Remove lookbook params * load form paths * install postcss * Copy postcss mixins * nocov on routes config * Copy forms to docker file also * don't ignore forms Co-authored-by: Joel Hawksley <[email protected]>
- Loading branch information
1 parent
137b845
commit f5a08dd
Showing
16 changed files
with
115 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,4 +4,6 @@ | |
node_modules/ | ||
pkg/ | ||
test/ | ||
!test/previews/ | ||
!test/forms/ | ||
docs/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
//= link_tree ../images | ||
//= link_directory ../stylesheets .css | ||
//= link_directory ../../../../app/assets/styles .css | ||
//= link_directory ../../../../app/assets/javascripts .js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title>Component Preview</title> | ||
<meta name="viewport" content="width=device-width,initial-scale=1"> | ||
<%= csrf_meta_tags %> | ||
<%= csp_meta_tag %> | ||
<%= stylesheet_link_tag "application", "data-turbo-track": "reload" %> | ||
<%= stylesheet_link_tag "primer_view_components", "data-turbo-track": "reload" %> | ||
<%= javascript_include_tag "primer_view_components", type: "module", "data-turbo-track": "reload" %> | ||
</head> | ||
|
||
<body style="padding: 16px"> | ||
<div style=" | ||
margin-left: auto; | ||
margin-right: auto; | ||
position: relative; | ||
"> | ||
<%= yield %> <!-- rendered preview will be injected here --> | ||
</div> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,18 @@ | ||
# frozen_string_literal: true | ||
|
||
# :nocov: | ||
Rails.application.routes.draw do | ||
get '/view-components', to: redirect('/view-components/stories/') | ||
get '/', to: redirect('/view-components/stories/') | ||
if Rails.env.production? | ||
get '/view-components', to: redirect('/view-components/stories/') | ||
get '/', to: redirect('/view-components/stories/') | ||
else | ||
get '/', to: redirect('/lookbook/') | ||
end | ||
|
||
get '/auto_complete', to: 'auto_complete_test#index' | ||
resources :toggle_switch, only: [:create] | ||
scope path: Rails.env.production? ? "/view-components" : "/" do | ||
get '/auto_complete', to: 'auto_complete_test#index' | ||
resources :toggle_switch, only: [:create] | ||
|
||
mount Lookbook::Engine, at: "/lookbook" if defined?(Lookbook) | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters