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 +4 -4
- data/README.md +2 -0
- data/lib/tailwindcss/commands.rb +2 -1
- data/lib/tailwindcss/version.rb +1 -1
- data/lib/tasks/build.rake +4 -2
- 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: 286396c8100fdd62be9b92948d5ca9d7fa08f8b5747451f40f24405018ffe047
|
|
4
|
+
data.tar.gz: 937b6afa7441d470d2a0d8f10a21a409eff863d82f6c723ebe07a52d6d4ec462
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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]`.
|
data/lib/tailwindcss/commands.rb
CHANGED
|
@@ -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)
|
data/lib/tailwindcss/version.rb
CHANGED
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
|
+
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:
|
|
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: []
|