tailwindcss-rails 2.2.1-x64-mingw-ucrt → 2.3.0-x64-mingw-ucrt
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/README.md +18 -1
 - data/lib/generators/tailwindcss/controller/controller_generator.rb +2 -1
 - data/lib/generators/tailwindcss/mailer/mailer_generator.rb +2 -1
 - data/lib/generators/tailwindcss/scaffold/scaffold_generator.rb +2 -1
 - data/lib/tailwindcss/commands.rb +9 -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: bdbc8e39170c1b02da618ba80590cbed9f9979441d8b6b8db2893e6e0f6fe939
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: 2fed1e80c130c071e20a7291068885d4c45a2924fb3e48306ea92f5aa8a88ad0
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: f4fd758e6d670b33a9915212e166815f6c939704add6521d1056a3cf806016414b80fc81ec01efbe54840399eea3208783378e4384ec4875034175b8fc331199
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: e79175f6ae4f83caacb051ea29d4a9c8a399aa9db2e34d8590371de44c351d5bcf3af53cbb50f0193e4865dfbf7ca86093f3b9c89931446a3fca77d35fb2f392
         
     | 
    
        data/README.md
    CHANGED
    
    | 
         @@ -38,7 +38,6 @@ This also works with relative paths. If you've installed into your app's directo 
     | 
|
| 
       38 
38 
     | 
    
         
             
            TAILWINDCSS_INSTALL_DIR=node_modules/.bin
         
     | 
| 
       39 
39 
     | 
    
         
             
            ```
         
     | 
| 
       40 
40 
     | 
    
         | 
| 
       41 
     | 
    
         
            -
             
     | 
| 
       42 
41 
     | 
    
         
             
            ## Developing with Tailwindcss
         
     | 
| 
       43 
42 
     | 
    
         | 
| 
       44 
43 
     | 
    
         
             
            ### Configuration
         
     | 
| 
         @@ -100,6 +99,24 @@ If you want unminified assets, you can pass a `debug` argument to the rake task, 
     | 
|
| 
       100 
99 
     | 
    
         
             
            Note that you can combine task options, e.g. `rails tailwindcss:watch[debug,poll]`.
         
     | 
| 
       101 
100 
     | 
    
         | 
| 
       102 
101 
     | 
    
         | 
| 
      
 102 
     | 
    
         
            +
            ### Using with PostCSS
         
     | 
| 
      
 103 
     | 
    
         
            +
             
     | 
| 
      
 104 
     | 
    
         
            +
            If you want to use PostCSS as a preprocessor, create a custom `config/postcss.config.js` and it will be loaded automatically.
         
     | 
| 
      
 105 
     | 
    
         
            +
             
     | 
| 
      
 106 
     | 
    
         
            +
            For example, to enable nesting:
         
     | 
| 
      
 107 
     | 
    
         
            +
             
     | 
| 
      
 108 
     | 
    
         
            +
            ```js
         
     | 
| 
      
 109 
     | 
    
         
            +
            // config/postcss.config.js
         
     | 
| 
      
 110 
     | 
    
         
            +
            module.exports = {
         
     | 
| 
      
 111 
     | 
    
         
            +
              plugins: {
         
     | 
| 
      
 112 
     | 
    
         
            +
                'postcss-import': {},
         
     | 
| 
      
 113 
     | 
    
         
            +
                'tailwindcss/nesting': {},
         
     | 
| 
      
 114 
     | 
    
         
            +
                tailwindcss: {},
         
     | 
| 
      
 115 
     | 
    
         
            +
                autoprefixer: {},
         
     | 
| 
      
 116 
     | 
    
         
            +
              },
         
     | 
| 
      
 117 
     | 
    
         
            +
            }
         
     | 
| 
      
 118 
     | 
    
         
            +
            ```
         
     | 
| 
      
 119 
     | 
    
         
            +
             
     | 
| 
       103 
120 
     | 
    
         
             
            ### Custom inputs or outputs
         
     | 
| 
       104 
121 
     | 
    
         | 
| 
       105 
122 
     | 
    
         
             
            If you need to use a custom input or output file, you can run `bundle exec tailwindcss` to access the platform-specific executable, and give it your own build options.
         
     | 
| 
         @@ -3,7 +3,8 @@ require "rails/generators/erb/controller/controller_generator" 
     | 
|
| 
       3 
3 
     | 
    
         
             
            module Tailwindcss
         
     | 
| 
       4 
4 
     | 
    
         
             
              module Generators
         
     | 
| 
       5 
5 
     | 
    
         
             
                class ControllerGenerator < Erb::Generators::ControllerGenerator
         
     | 
| 
       6 
     | 
    
         
            -
                  source_root File.expand_path(" 
     | 
| 
      
 6 
     | 
    
         
            +
                  source_root File.expand_path("templates", __dir__)
         
     | 
| 
      
 7 
     | 
    
         
            +
                  source_paths << "lib/templates/erb/controller"
         
     | 
| 
       7 
8 
     | 
    
         
             
                end
         
     | 
| 
       8 
9 
     | 
    
         
             
              end
         
     | 
| 
       9 
10 
     | 
    
         
             
            end
         
     | 
| 
         @@ -3,7 +3,8 @@ require "rails/generators/erb/mailer/mailer_generator" 
     | 
|
| 
       3 
3 
     | 
    
         
             
            module Tailwindcss
         
     | 
| 
       4 
4 
     | 
    
         
             
              module Generators
         
     | 
| 
       5 
5 
     | 
    
         
             
                class MailerGenerator < Erb::Generators::MailerGenerator
         
     | 
| 
       6 
     | 
    
         
            -
                  source_root File.expand_path(" 
     | 
| 
      
 6 
     | 
    
         
            +
                  source_root File.expand_path("templates", __dir__)
         
     | 
| 
      
 7 
     | 
    
         
            +
                  source_paths << "lib/templates/erb/mailer"
         
     | 
| 
       7 
8 
     | 
    
         
             
                end
         
     | 
| 
       8 
9 
     | 
    
         
             
              end
         
     | 
| 
       9 
10 
     | 
    
         
             
            end
         
     | 
| 
         @@ -6,7 +6,8 @@ module Tailwindcss 
     | 
|
| 
       6 
6 
     | 
    
         
             
                class ScaffoldGenerator < Erb::Generators::ScaffoldGenerator
         
     | 
| 
       7 
7 
     | 
    
         
             
                  include Rails::Generators::ResourceHelpers
         
     | 
| 
       8 
8 
     | 
    
         | 
| 
       9 
     | 
    
         
            -
                  source_root File.expand_path(" 
     | 
| 
      
 9 
     | 
    
         
            +
                  source_root File.expand_path("templates", __dir__)
         
     | 
| 
      
 10 
     | 
    
         
            +
                  source_paths << "lib/templates/erb/scaffold"
         
     | 
| 
       10 
11 
     | 
    
         | 
| 
       11 
12 
     | 
    
         
             
                  argument :attributes, type: :array, default: [], banner: "field:type field:type"
         
     | 
| 
       12 
13 
     | 
    
         | 
    
        data/lib/tailwindcss/commands.rb
    CHANGED
    
    | 
         @@ -74,14 +74,19 @@ module Tailwindcss 
     | 
|
| 
       74 
74 
     | 
    
         
             
                  end
         
     | 
| 
       75 
75 
     | 
    
         | 
| 
       76 
76 
     | 
    
         
             
                  def compile_command(debug: false, **kwargs)
         
     | 
| 
       77 
     | 
    
         
            -
                    [
         
     | 
| 
      
 77 
     | 
    
         
            +
                    command = [
         
     | 
| 
       78 
78 
     | 
    
         
             
                      executable(**kwargs),
         
     | 
| 
       79 
79 
     | 
    
         
             
                      "-i", Rails.root.join("app/assets/stylesheets/application.tailwind.css").to_s,
         
     | 
| 
       80 
80 
     | 
    
         
             
                      "-o", Rails.root.join("app/assets/builds/tailwind.css").to_s,
         
     | 
| 
       81 
81 
     | 
    
         
             
                      "-c", Rails.root.join("config/tailwind.config.js").to_s,
         
     | 
| 
       82 
     | 
    
         
            -
                    ] 
     | 
| 
       83 
     | 
    
         
            -
             
     | 
| 
       84 
     | 
    
         
            -
                     
     | 
| 
      
 82 
     | 
    
         
            +
                    ]
         
     | 
| 
      
 83 
     | 
    
         
            +
             
     | 
| 
      
 84 
     | 
    
         
            +
                    command << "--minify" unless (debug || rails_css_compressor?)
         
     | 
| 
      
 85 
     | 
    
         
            +
             
     | 
| 
      
 86 
     | 
    
         
            +
                    postcss_path = Rails.root.join("config/postcss.config.js")
         
     | 
| 
      
 87 
     | 
    
         
            +
                    command += ["--postcss", postcss_path.to_s] if File.exist?(postcss_path)
         
     | 
| 
      
 88 
     | 
    
         
            +
             
     | 
| 
      
 89 
     | 
    
         
            +
                    command
         
     | 
| 
       85 
90 
     | 
    
         
             
                  end
         
     | 
| 
       86 
91 
     | 
    
         | 
| 
       87 
92 
     | 
    
         
             
                  def watch_command(always: false, poll: false, **kwargs)
         
     | 
    
        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: 2. 
     | 
| 
      
 4 
     | 
    
         
            +
              version: 2.3.0
         
     | 
| 
       5 
5 
     | 
    
         
             
            platform: x64-mingw-ucrt
         
     | 
| 
       6 
6 
     | 
    
         
             
            authors:
         
     | 
| 
       7 
7 
     | 
    
         
             
            - David Heinemeier Hansson
         
     | 
| 
       8 
8 
     | 
    
         
             
            autorequire: 
         
     | 
| 
       9 
9 
     | 
    
         
             
            bindir: exe
         
     | 
| 
       10 
10 
     | 
    
         
             
            cert_chain: []
         
     | 
| 
       11 
     | 
    
         
            -
            date: 2024-01- 
     | 
| 
      
 11 
     | 
    
         
            +
            date: 2024-01-10 00:00:00.000000000 Z
         
     | 
| 
       12 
12 
     | 
    
         
             
            dependencies:
         
     | 
| 
       13 
13 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       14 
14 
     | 
    
         
             
              name: railties
         
     |