tailwindcss-rails 2.0.27-x64-mingw32 → 2.0.28-x64-mingw32

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: 9d66cf510b94bdd61492646000bc568952535edd1d1bb1eebb6783d776bd9f36
4
- data.tar.gz: da56e72e3c5201f98bde553d47b65a8c7936df14342e2bccf234a97f67d09799
3
+ metadata.gz: be1f237326ac7454ad463d6559d698c8723175aa1f788b0bbc41ec31dd800cea
4
+ data.tar.gz: 9c7f2c1f0c9f4e8fbb1f31be5a4f4acc20eb376049179029704e64b53a6918dc
5
5
  SHA512:
6
- metadata.gz: ec9633ff4555ad1cfe9523c8ff2955e8fe40b0f3bdc6c2befeed4a651af03a7da29f66b372574cecae2e19f9fe55fb8c76e0bd775acf542ec73e54450cce3655
7
- data.tar.gz: 8590576a507000b8de34947936d2403d8e54c12e840c64e7ad4925819a3e2c812c43bfb4d0e770848a5b7ef3ee3ed5f39f1534314ea0396baee79dbd26893c50
6
+ metadata.gz: b219ad0e204600f0da4e4c76342856b90a3badd58db3aae3d4d8e64c9eb9aa2b41364094631875039c8c2dc7e5cfa4cba3c433099838aa5cf817412863afb763
7
+ data.tar.gz: 22685ba20c6c141f5001185190dfc4bc5ead750b76d78b8f8a71c0ae00676fe8cc737a75a89c7fb1c0a595a311a6aff1275db5acc320e3708c50949cfc7e5b67
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: x64-mingw32
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