tailwindcss-rails 4.4.0 → 4.5.0

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: 37b4470776d372044cf70aff35b3dbdb1296d445d683aef89ef13e8f4c7aa510
4
- data.tar.gz: a782697028ed250f6aa001c46316afa71d0900371f818604804df436f9f79b58
3
+ metadata.gz: 286396c8100fdd62be9b92948d5ca9d7fa08f8b5747451f40f24405018ffe047
4
+ data.tar.gz: 937b6afa7441d470d2a0d8f10a21a409eff863d82f6c723ebe07a52d6d4ec462
5
5
  SHA512:
6
- metadata.gz: 929e43dae3a11d929bfb104e66dc7b9fc4b3788e50202adc9f31a40d306a51c105a5d15e279713ca82a857d97383ab08d035ebc4d64c101f1a714e7c49898a70
7
- data.tar.gz: bca8090e90b84f01260fd3c23c6b3c28cbfca8311fcbb65fc22aa9141283ff532723f00a8cd2a0988d3b181f2863ee74025abc581ffaf50a67ac273bab587403
6
+ metadata.gz: b1e3c2e086f51999a4541aba0de0a125c052e730a2fb13d302e00f4e688444abbb4bb1ba0858b4e6267951e8be70e7d37060558a6100c2fed37b71d399e23bb0
7
+ data.tar.gz: 6e1f8a07ec3502513a9cbadf05e5f2e51ffcd0d23415a3c1ff3d129994e43ffd21994194c84d0730fe93bac2c9e9a41cc34f1f282a085aca9dddd95abd09ad0c
data/README.md CHANGED
@@ -266,10 +266,12 @@ Synopsis:
266
266
  - `bin/rails tailwindcss:install` - installs the configuration file, output file, and `Procfile.dev`
267
267
  - `bin/rails tailwindcss:build` - generate the output file
268
268
  - `bin/rails tailwindcss:build[debug]` - generate unminimized output
269
+ - `bin/rails tailwindcss:build[silent]` - suppress non-error output from tailwindcss (requires Tailwind CSS v4.3.1)
269
270
  - `bin/rails tailwindcss:build[verbose]` - emit the commands being run
270
271
  - `bin/rails tailwindcss:watch` - start live rebuilds, generating output on file changes
271
272
  - `bin/rails tailwindcss:watch[debug]` - generate unminimized output
272
273
  - `bin/rails tailwindcss:watch[always]` - for systems without TTY (e.g., some docker containers)
274
+ - `bin/rails tailwindcss:watch[silent]` - suppress non-error output from tailwindcss (requires Tailwind CSS v4.3.1)
273
275
  - `bin/rails tailwindcss:watch[verbose]` - emit the commands being run
274
276
 
275
277
  Note that you can combine task options, e.g. `rails tailwindcss:watch[debug,always]`.
@@ -3,7 +3,7 @@ require "tailwindcss/ruby"
3
3
  module Tailwindcss
4
4
  module Commands
5
5
  class << self
6
- def compile_command(debug: false, **kwargs)
6
+ def compile_command(debug: false, silent: false, **kwargs)
7
7
  debug = ENV["TAILWINDCSS_DEBUG"].present? if ENV.key?("TAILWINDCSS_DEBUG")
8
8
  rails_root = defined?(Rails) ? Rails.root : Pathname.new(Dir.pwd)
9
9
 
@@ -14,6 +14,7 @@ module Tailwindcss
14
14
  ]
15
15
 
16
16
  command << "--minify" unless (debug || rails_css_compressor?)
17
+ command << "--silent" if silent
17
18
 
18
19
  postcss_path = rails_root.join("postcss.config.js")
19
20
  command += ["--postcss", postcss_path.to_s] if File.exist?(postcss_path)
@@ -1,3 +1,3 @@
1
1
  module Tailwindcss
2
- VERSION = "4.4.0"
2
+ VERSION = "4.5.0"
3
3
  end
data/lib/tasks/build.rake CHANGED
@@ -2,9 +2,10 @@ namespace :tailwindcss do
2
2
  desc "Build your Tailwind CSS"
3
3
  task build: [:environment, :engines] do |_, args|
4
4
  debug = args.extras.include?("debug")
5
+ silent = args.extras.include?("silent")
5
6
  verbose = args.extras.include?("verbose")
6
7
 
7
- command = Tailwindcss::Commands.compile_command(debug: debug)
8
+ command = Tailwindcss::Commands.compile_command(debug: debug, silent: silent)
8
9
  env = Tailwindcss::Commands.command_env(verbose: verbose)
9
10
  puts "Running: #{Shellwords.join(command)}" if verbose
10
11
 
@@ -15,9 +16,10 @@ namespace :tailwindcss do
15
16
  task watch: [:environment, :engines] do |_, args|
16
17
  debug = args.extras.include?("debug")
17
18
  always = args.extras.include?("always")
19
+ silent = args.extras.include?("silent")
18
20
  verbose = args.extras.include?("verbose")
19
21
 
20
- command = Tailwindcss::Commands.watch_command(always: always, debug: debug)
22
+ command = Tailwindcss::Commands.watch_command(always: always, debug: debug, silent: silent)
21
23
  env = Tailwindcss::Commands.command_env(verbose: verbose)
22
24
  puts "Running: #{Shellwords.join(command)}" if verbose
23
25
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tailwindcss-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.4.0
4
+ version: 4.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Heinemeier Hansson
@@ -111,7 +111,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
111
111
  - !ruby/object:Gem::Version
112
112
  version: 3.2.0
113
113
  requirements: []
114
- rubygems_version: 3.6.9
114
+ rubygems_version: 4.0.6
115
115
  specification_version: 4
116
116
  summary: Integrate Tailwind CSS with the asset pipeline in Rails.
117
117
  test_files: []