tailwindcss-rails 0.4.2 → 0.4.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/install/tailwindcss.rb +6 -4
- data/lib/tailwindcss/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 73b1cabaaa59745231cc4bc9b2d2f15b163dd3cb4b0ebe3346c808c4002522ec
|
|
4
|
+
data.tar.gz: 8227a52b5d070dcd8db963d6dce82268c173ab90668214781c50e268c180efcf
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 17e750664bd5a56bf40e3e2dc219f9b720b4e40d1b6bbd0865c07f4d2fe7b07f12dc00ded038316fd9d61fafe3ea64125bf6391fe5c19dd1b86f1cd62f7223e4
|
|
7
|
+
data.tar.gz: 6c0228acf4ecfec5ad37f838403f6d18ef2b9e326d464183599199cb1f999f1776215292441a808ee927185234b931f329d7dbcd25d0ab67bd2287627410535c
|
data/lib/install/tailwindcss.rb
CHANGED
|
@@ -2,14 +2,16 @@ APPLICATION_LAYOUT_PATH = Rails.root.join("app/views/layouts/application.html.er
|
|
|
2
2
|
|
|
3
3
|
if APPLICATION_LAYOUT_PATH.exist?
|
|
4
4
|
say "Add Tailwindcss include tags in application layout"
|
|
5
|
-
insert_into_file Rails.root.join("app/views/layouts/application.html.erb").to_s, %(\n <%= stylesheet_link_tag "inter-font" %>\n <%= stylesheet_link_tag "tailwind" %>), before: /^\s*<%= stylesheet_link_tag/
|
|
5
|
+
insert_into_file Rails.root.join("app/views/layouts/application.html.erb").to_s, %(\n <%= stylesheet_link_tag "inter-font", "data-turbo-track": "reload" %>\n <%= stylesheet_link_tag "tailwind", "data-turbo-track": "reload" %>), before: /^\s*<%= stylesheet_link_tag/
|
|
6
6
|
else
|
|
7
7
|
say "Default application.html.erb is missing!", :red
|
|
8
|
-
say %( Add <%= stylesheet_link_tag "inter-font" %> and <%= stylesheet_link_tag "tailwind" %> within the <head> tag in your custom layout.)
|
|
8
|
+
say %( Add <%= stylesheet_link_tag "inter-font", "data-turbo-track": "reload" %> and <%= stylesheet_link_tag "tailwind", "data-turbo-track": "reload" %> within the <head> tag in your custom layout.)
|
|
9
9
|
end
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
# No longer included by default in Rails 7, but for earlier versions of Rails
|
|
12
|
+
if (scaffolds_css_path = Rails.root.join("app/assets/stylesheets/scaffolds.scss")).exist?
|
|
13
|
+
remove_file scaffolds_css_path
|
|
14
|
+
end
|
|
13
15
|
|
|
14
16
|
say "Turn on purging of unused css classes in production"
|
|
15
17
|
gsub_file Rails.root.join("config/environments/production.rb"), /^\s+#?\s+config.assets.css_compressor =.*$/, %( config.assets.css_compressor = :purger)
|
data/lib/tailwindcss/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: tailwindcss-rails
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.4.
|
|
4
|
+
version: 0.4.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- David Heinemeier Hansson
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2021-08-
|
|
11
|
+
date: 2021-08-26 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|