-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tailwind configurations for running into engine
- Loading branch information
1 parent
0042e85
commit 91b155a
Showing
8 changed files
with
50 additions
and
6 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
Large diffs are not rendered by default.
Oops, something went wrong.
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,3 @@ | ||
//= link_tree ../builds/ .css | ||
//= link oodle/application.css | ||
//= link oodle/application.tailwind.css |
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,23 @@ | ||
const defaultTheme = require('tailwindcss/defaultTheme') | ||
|
||
module.exports = { | ||
content: [ | ||
'./public/*.html', | ||
'./app/helpers/**/*.rb', | ||
'./app/javascript/**/*.js', | ||
'./app/views/**/*.{erb,haml,html,slim}', | ||
'./app/components/**/*.{html,erb,rb}' | ||
], | ||
theme: { | ||
extend: { | ||
fontFamily: { | ||
sans: ['Inter var', ...defaultTheme.fontFamily.sans], | ||
}, | ||
}, | ||
}, | ||
plugins: [ | ||
require('@tailwindcss/forms'), | ||
require('@tailwindcss/aspect-ratio'), | ||
require('@tailwindcss/typography'), | ||
] | ||
} |
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,8 +1,19 @@ | ||
require "oodle/version" | ||
require "oodle/engine" | ||
|
||
require "tailwindcss-rails" | ||
require "view_component" | ||
module Oodle | ||
class Engine < ::Rails::Engine | ||
isolate_namespace(Oodle) | ||
|
||
initializer :append_migrations do |app| | ||
unless app.root.to_s.match?(root.to_s + File::SEPARATOR) | ||
app.config.paths["db/migrate"].concat(config.paths["db/migrate"].expanded) | ||
end | ||
end | ||
initializer "oodle.assets" do |app| | ||
app.config.assets.precompile += %w[oodle_manifest] | ||
end | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,5 @@ | ||
module Oodle | ||
class Engine < ::Rails::Engine | ||
isolate_namespace Oodle | ||
|
||
initializer :append_migrations do |app| | ||
unless app.root.to_s.match?(root.to_s + File::SEPARATOR) | ||
app.config.paths["db/migrate"].concat(config.paths["db/migrate"].expanded) | ||
end | ||
end | ||
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