tailwindcss-rails 0.5.0 → 0.5.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: efa9c7fbb61dc459247b3af68e46e47b8c002d925635d27e9ed48d0b6f8d6597
4
- data.tar.gz: f4126ae45ea113f4a915308accabd4d7467fc6de364ec68fe412a8ae540d3942
3
+ metadata.gz: 4b9a393181af6d9379bbaa42ffd29eab2e9d6dce7bb2fd0236a62c75c4eea959
4
+ data.tar.gz: 2bf317fe004792663272d86c9c6c21fb97d8251fe4961a8691d96e75a7cda3a1
5
5
  SHA512:
6
- metadata.gz: f1a0c5c9d258f268f109d780a0c0b12f87779557ec859b1f50e94b602de607e0edbc99d93ce18498a3855c19dea5e0b9ea11c88dff15bc813650b0ba7f330ec1
7
- data.tar.gz: 4c6a0bb1fdead9026be4934083af4e49ef053dcc4d1f1aead35d1db024cb4a01268784732287ac333689a936df53dc013082f6cce2b5d85ab958aefcc9e53e5c
6
+ metadata.gz: 8d1a3969b3b2eda650d4fbefe207f3f265084b5701446ceb89f8fa7481bd2496e7bddd7dce686e2ee5f6ed43ed5fa3c40647fbbacfcbb361a61f5930c4761745
7
+ data.tar.gz: 788b20a116e5960f7adb7f9a5ed0d57439fbd87c61e881c8cbdcfe23cd95446330cc55f609c91f015254ed47a3718b2a71bc5f33217d24815bbb0dbfff33fa97
data/README.md CHANGED
@@ -2,7 +2,9 @@
2
2
 
3
3
  [Tailwind CSS](https://tailwindcss.com) is a utility-first CSS framework packed with classes like flex, pt-4, text-center and rotate-90 that can be composed to build any design, directly in your markup.
4
4
 
5
- This gem gives access to the standard Tailwind CSS framework configured for dark mode, forms, aspect-ratio, typography, and the Inter font via the asset pipeline using Sprockets. If you need to customize Tailwind, you will need to install it the traditional way using [Webpacker](https://github.com/rails/webpacker) instead or use webpacker port of this gem [tailwindcss-rails-webpacker](https://github.com/WizardComputer/tailwindcss-rails-webpacker).
5
+ This gem gives access to the standard Tailwind CSS framework configured for dark mode, forms, aspect-ratio, typography, and the Inter font via the asset pipeline using Sprockets (and soon [Propshaft](https://github.com/rails/propshaft)).
6
+
7
+ If you need to customize Tailwind, you will need to install it under a full JavaScript bundling setup, such as [cssbundling-rails](https://github.com/rails/cssbundling-rails). This gem was specifically designed not to require a Node.js environment. If you're already using such an environment, you won't need this gem.
6
8
 
7
9
  Production-mode purging of unused css class names is provided by a Sprockets compressor built into this gem. This compressor ensures that only the css classes used by files in `app/views` and `app/helpers` are included. In development mode, the full 7mb+ Tailwind stylesheet is loaded.
8
10
 
@@ -0,0 +1,9 @@
1
+ require "rails/generators/erb/controller/controller_generator"
2
+
3
+ module Tailwindcss
4
+ module Generators
5
+ class ControllerGenerator < Erb::Generators::ControllerGenerator
6
+ source_root File.expand_path("../templates", __FILE__)
7
+ end
8
+ end
9
+ end
@@ -0,0 +1,4 @@
1
+ <div>
2
+ <h1 class="text-xl font-bold"><%= class_name %>#<%= @action %></h1>
3
+ <p>Find me in <%= @path %></p>
4
+ <div>
@@ -1,3 +1,3 @@
1
1
  module Tailwindcss
2
- VERSION = "0.5.0"
2
+ VERSION = "0.5.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.5.0
4
+ version: 0.5.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-09-29 00:00:00.000000000 Z
11
+ date: 2021-10-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -51,6 +51,8 @@ files:
51
51
  - app/assets/fonts/Inter-roman.vietnamese.var.woff2
52
52
  - app/assets/stylesheets/inter-font.css.erb
53
53
  - app/assets/stylesheets/tailwind.css
54
+ - lib/generators/tailwindcss/controller/controller_generator.rb
55
+ - lib/generators/tailwindcss/controller/templates/view.html.erb.tt
54
56
  - lib/generators/tailwindcss/scaffold/scaffold_generator.rb
55
57
  - lib/generators/tailwindcss/scaffold/templates/_form.html.erb.tt
56
58
  - lib/generators/tailwindcss/scaffold/templates/edit.html.erb.tt