tailwindcss-rails 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 701b64bd008b24b1c6ab9326bab2ee6969c146a7333c94cf42ddd5dbf97b921d
4
- data.tar.gz: 10bda805262704aa1b5c636912b230a0b92fa3d36d3e7c3f576948394ca2a970
3
+ metadata.gz: 02103a11966729f1d12ce639508812723041e0b31eb16d1975eb7a8b0e51d127
4
+ data.tar.gz: 6efcf452cfa585413a954607fa4558485fa8014b80de52bd8a3e1ffbb30a50a9
5
5
  SHA512:
6
- metadata.gz: 2607f40c055081e498850564e7651bb5cf5a59045aab9f5b1755ba67f84e54f9c801a47bcf9f989951d9ca622de69e47d98f1c05e4f9b26b47b70e829727e294
7
- data.tar.gz: 8638603b509534a513367b755088cf19dbaf07493e39c52c9b45ea258b5d28142b82d16e012a649e5979371db7a064126fbe14fb775c3318459f09e230762fea
6
+ metadata.gz: 1cde59ad3bd2cdbf6965e06aff1cc87523ea0e777944623e5f1dd3d9842b74f4171659f1f5436220f7fe2f5ac3dee412fb70d5f3aeb19ab75d52386e334b3ea8
7
+ data.tar.gz: 98cae3c85094323de192bcb1f8efd345c59b9d1357c0281fb3b102bb86a1bb2bd10ca7cac17f5f3a3562507b0f80316a7264277d4f4ce49a8968ec335940910e
data/README.md CHANGED
@@ -18,7 +18,7 @@ When run on an app using the just the asset pipeline, the last step adds the pur
18
18
 
19
19
  You can do these things yourself, if you've changed the default setup.
20
20
 
21
- Note: You should ensure to delete `app/assets/stylesheets/scaffold.scss` that Rails adds after running a scaffold command. This stylesheet will interfere with Tailwind's reset of base styles.
21
+ Note: You should ensure to delete `app/assets/stylesheets/scaffold.scss` that Rails adds after running a scaffold command, if you had run this generator before installing Tailwind CSS for Rails. This stylesheet will interfere with Tailwind's reset of base styles. This gem will turn off stylesheet generation for all future scaffold runs.
22
22
 
23
23
  When run on an app using Webpacker, the last step adds the npm dependencies for Tailwind CSS, configures postCSS, and generates a app/javascript/stylesheets/application.scss file as the default for using Tailwind.
24
24
 
@@ -13,7 +13,7 @@ insert_into_file "#{Webpacker.config.source_entry_path}/application.js", "\nrequ
13
13
  say "Adding minimal configuration for Tailwind CSS to work properly"
14
14
  directory Pathname.new(__dir__).join("stylesheets"), Webpacker.config.source_path.join("stylesheets")
15
15
 
16
- insert_into_file "postcss.config.js", "require('tailwindcss'),\n\t", before: "require('postcss-import')"
16
+ insert_into_file "postcss.config.js", "require('tailwindcss'),\n\t", before: " require('postcss-import')"
17
17
 
18
18
  if APPLICATION_LAYOUT_PATH.exist?
19
19
  say "Add Tailwindcss include tags in application layout"
@@ -10,6 +10,10 @@ module Tailwindcss
10
10
  Rails.application.config.assets.precompile += %w( tailwind.css inter-font.css )
11
11
  end
12
12
 
13
+ initializer "tailwindcss.disable_generator_stylesheets" do
14
+ Rails.application.config.generators.stylesheets = false
15
+ end
16
+
13
17
  initializer "tailwindcss.disable_assets_cache" do
14
18
  Rails.application.config.assets.configure do |env|
15
19
  env.cache = ActiveSupport::Cache.lookup_store(:null_store)
@@ -1,3 +1,3 @@
1
1
  module Tailwindcss
2
- VERSION = "0.3.0"
2
+ VERSION = "0.3.1"
3
3
  end
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.3.0
4
+ version: 0.3.1
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-01-19 00:00:00.000000000 Z
11
+ date: 2021-01-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails