tailwindcss-rails 2.0.27 → 2.0.28

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: 6eafc52fc672910748ea21515fd8dbd5fe3e619f3d2c390dbe3e12dc6c787624
4
- data.tar.gz: be900de0873368d10573df916256b41ac2120606dc7f93244880a22dcad94c1e
3
+ metadata.gz: 3a307f8be9bdfa07bdd137011c7c024d0ff35d1128743120f31ccedfe3a25381
4
+ data.tar.gz: eeb6976a023147b030985b3247b279ec4ea0812aa6433eb0c76c7689c2abd893
5
5
  SHA512:
6
- metadata.gz: 7be21772157fa028a548f5fd3164368bb173443f7b180839637445eec344106b8345306f80e11aec01680601bb86051b35ae30289ea710150fc93e184058b4ad
7
- data.tar.gz: d3a300da30322ee0a54884b3da92f3a7b091c6a461e7b436f7d0badc4c3b0aeebf0a24e48c01d277133b77076355ae41b14bb767a8e765fd9230e0c5b10031d2
6
+ metadata.gz: fcf8b9d62ba7030f36b473e6c3dde74c1a1058e52a6b616bc432a6993b79fa92634f2235422d5e08ad5da817edd738943e5a50a4316671c7c899ab71cc2ab1b7
7
+ data.tar.gz: 81b39111d0bab1151ee2a116d7a50a9249fca4edfd2bafea65409e876268dc769bc2172de52557658225bdd8644e51c24f562c48363461a4594b0edf20790c3d
data/README.md CHANGED
@@ -70,9 +70,11 @@ While you're developing your application, you want to run Tailwind in "watch" mo
70
70
  - running `rails tailwindcss:watch` as a separate process,
71
71
  - or by running `./bin/dev` which uses [foreman](https://github.com/ddollar/foreman) to start both the Tailwind watch process and the rails server in development mode.
72
72
 
73
+ If you are running `rails tailwindcss:watch` on a system that doesn't fully support file system events, pass a `poll` argument to the task to instruct tailwindcss to instead use polling: `rails tailwindcss:watch[poll]`. If you use `bin/dev` then you should modify your `Procfile.dev`.
74
+
73
75
  If you are running `rails tailwindcss:watch` as a process in a Docker container, set `tty: true` in `docker-compose.yml` for the appropriate container to keep the watch process running.
74
76
 
75
- If you are running `rails tailwindcss:watch` on a system that doesn't fully support file system events, pass a `poll` argument to the task to instruct tailwindcss to instead use polling: `rails tailwindcss:watch[poll]`. If you use `bin/dev` then you should modify your `Procfile.dev`.
77
+ If you are running `rails tailwindcss:watch` in a docker container without a tty, pass the `always` argument to the task to instruct tailwindcss to keep the watcher alive even when `stdin` is closed: `rails tailwindcss:watch[always]`. If you use `bin/dev` then you should modify your `Procfile.dev`.
76
78
 
77
79
 
78
80
  ### Debugging with unminified assets
@@ -83,9 +83,10 @@ module Tailwindcss
83
83
  end
84
84
  end
85
85
 
86
- def watch_command(poll: false, **kwargs)
86
+ def watch_command(always: false, poll: false, **kwargs)
87
87
  compile_command(**kwargs).tap do |command|
88
88
  command << "-w"
89
+ command << "always" if always
89
90
  command << "-p" if poll
90
91
  end
91
92
  end
@@ -1,3 +1,3 @@
1
1
  module Tailwindcss
2
- VERSION = "2.0.27"
2
+ VERSION = "2.0.28"
3
3
  end
data/lib/tasks/build.rake CHANGED
@@ -11,7 +11,8 @@ namespace :tailwindcss do
11
11
  task watch: :environment do |_, args|
12
12
  debug = args.extras.include?("debug")
13
13
  poll = args.extras.include?("poll")
14
- command = Tailwindcss::Commands.watch_command(debug: debug, poll: poll)
14
+ always = args.extras.include?("always")
15
+ command = Tailwindcss::Commands.watch_command(always: always, debug: debug, poll: poll)
15
16
  puts command.inspect if args.extras.include?("verbose")
16
17
  system(*command)
17
18
  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: 2.0.27
4
+ version: 2.0.28
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Heinemeier Hansson
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-04-02 00:00:00.000000000 Z
11
+ date: 2023-04-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties