activeadmin-tom_select 4.1.2 → 4.2.0.beta2

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.
Files changed (48) hide show
  1. checksums.yaml +4 -4
  2. data/Appraisals +2 -2
  3. data/CHANGELOG.md +12 -0
  4. data/Gemfile +1 -1
  5. data/Gemfile.lock +146 -102
  6. data/README.md +1 -1
  7. data/activeadmin-tom_select.gemspec +1 -0
  8. data/docs/activeadmin-4-asset-setup.md +171 -0
  9. data/docs/activeadmin-tailwind-4.md +125 -0
  10. data/docs/guide-update-your-app.md +89 -356
  11. data/docs/setup-activeadmin-app.md +69 -492
  12. data/docs/setup-activeadmin-gem.md +83 -449
  13. data/gemfiles/rails_7.x_active_admin_4.x.gemfile +2 -1
  14. data/gemfiles/rails_7.x_active_admin_4.x.gemfile.lock +158 -116
  15. data/gemfiles/rails_8.x_active_admin_4.x.gemfile +2 -1
  16. data/gemfiles/rails_8.x_active_admin_4.x.gemfile.lock +145 -101
  17. data/lib/activeadmin/tom_select/option_collection.rb +4 -6
  18. data/lib/activeadmin/tom_select/select_input_extension.rb +15 -7
  19. data/lib/activeadmin/tom_select/version.rb +1 -1
  20. data/npm-package/package.json +1 -1
  21. data/spec/features/end_to_end_spec.rb +2 -2
  22. data/spec/features/input_errors_spec.rb +1 -3
  23. data/spec/features/options_dsl_spec.rb +6 -6
  24. data/spec/internal/Gemfile +1 -0
  25. data/spec/internal/Gemfile.lock +152 -107
  26. data/spec/internal/app/assets/stylesheets/active_admin.tailwind.css +8 -5
  27. data/spec/internal/bin/tailwindcss +27 -0
  28. data/spec/internal/lib/tasks/active_admin.rake +9 -4
  29. data/spec/internal/package-lock.json +15 -1371
  30. data/spec/internal/package.json +1 -2
  31. data/{docs/tailwind-4/tailwind-active_admin.config.js → spec/internal/tailwind-active_admin.config.mjs} +9 -4
  32. data/spec/internal/yarn.lock +128 -728
  33. metadata +21 -23
  34. data/docs/activeadmin-4-detailed-reference.md +0 -932
  35. data/docs/activeadmin-4-gem-migration-guide.md +0 -313
  36. data/docs/combustion.md +0 -213
  37. data/docs/fail.png +0 -0
  38. data/docs/normal.png +0 -0
  39. data/docs/propshaft-readme.md +0 -320
  40. data/docs/propshaft-upgrade.md +0 -484
  41. data/docs/tailwind/blog-page.md +0 -341
  42. data/docs/tailwind/upgrade-guide-enhanced.md +0 -438
  43. data/docs/tailwind/upgrade-guide.md +0 -416
  44. data/docs/tailwind-4/active_admin.rake +0 -38
  45. data/docs/tailwind-4/active_admin.tailwind.css +0 -415
  46. data/docs/test-app-change.md +0 -154
  47. data/docs/test-environment-fixes.md +0 -58
  48. data/docs/update-tom-select.md +0 -348
@@ -1,36 +1,36 @@
1
1
  PATH
2
2
  remote: ../..
3
3
  specs:
4
- activeadmin-tom_select (4.1.1)
4
+ activeadmin-tom_select (4.2.0.beta1)
5
5
  activeadmin (>= 3.0, < 5)
6
6
  ransack (>= 1.8, < 5)
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
- actioncable (8.0.2.1)
12
- actionpack (= 8.0.2.1)
13
- activesupport (= 8.0.2.1)
11
+ actioncable (8.0.4)
12
+ actionpack (= 8.0.4)
13
+ activesupport (= 8.0.4)
14
14
  nio4r (~> 2.0)
15
15
  websocket-driver (>= 0.6.1)
16
16
  zeitwerk (~> 2.6)
17
- actionmailbox (8.0.2.1)
18
- actionpack (= 8.0.2.1)
19
- activejob (= 8.0.2.1)
20
- activerecord (= 8.0.2.1)
21
- activestorage (= 8.0.2.1)
22
- activesupport (= 8.0.2.1)
17
+ actionmailbox (8.0.4)
18
+ actionpack (= 8.0.4)
19
+ activejob (= 8.0.4)
20
+ activerecord (= 8.0.4)
21
+ activestorage (= 8.0.4)
22
+ activesupport (= 8.0.4)
23
23
  mail (>= 2.8.0)
24
- actionmailer (8.0.2.1)
25
- actionpack (= 8.0.2.1)
26
- actionview (= 8.0.2.1)
27
- activejob (= 8.0.2.1)
28
- activesupport (= 8.0.2.1)
24
+ actionmailer (8.0.4)
25
+ actionpack (= 8.0.4)
26
+ actionview (= 8.0.4)
27
+ activejob (= 8.0.4)
28
+ activesupport (= 8.0.4)
29
29
  mail (>= 2.8.0)
30
30
  rails-dom-testing (~> 2.2)
31
- actionpack (8.0.2.1)
32
- actionview (= 8.0.2.1)
33
- activesupport (= 8.0.2.1)
31
+ actionpack (8.0.4)
32
+ actionview (= 8.0.4)
33
+ activesupport (= 8.0.4)
34
34
  nokogiri (>= 1.8.5)
35
35
  rack (>= 2.2.4)
36
36
  rack-session (>= 1.0.1)
@@ -38,20 +38,20 @@ GEM
38
38
  rails-dom-testing (~> 2.2)
39
39
  rails-html-sanitizer (~> 1.6)
40
40
  useragent (~> 0.16)
41
- actiontext (8.0.2.1)
42
- actionpack (= 8.0.2.1)
43
- activerecord (= 8.0.2.1)
44
- activestorage (= 8.0.2.1)
45
- activesupport (= 8.0.2.1)
41
+ actiontext (8.0.4)
42
+ actionpack (= 8.0.4)
43
+ activerecord (= 8.0.4)
44
+ activestorage (= 8.0.4)
45
+ activesupport (= 8.0.4)
46
46
  globalid (>= 0.6.0)
47
47
  nokogiri (>= 1.8.5)
48
- actionview (8.0.2.1)
49
- activesupport (= 8.0.2.1)
48
+ actionview (8.0.4)
49
+ activesupport (= 8.0.4)
50
50
  builder (~> 3.1)
51
51
  erubi (~> 1.11)
52
52
  rails-dom-testing (~> 2.2)
53
53
  rails-html-sanitizer (~> 1.6)
54
- activeadmin (4.0.0.beta16)
54
+ activeadmin (4.0.0.beta19)
55
55
  arbre (~> 2.0)
56
56
  csv
57
57
  formtastic (>= 5.0)
@@ -60,22 +60,22 @@ GEM
60
60
  kaminari (>= 1.2.1)
61
61
  railties (>= 7.0)
62
62
  ransack (>= 4.0)
63
- activejob (8.0.2.1)
64
- activesupport (= 8.0.2.1)
63
+ activejob (8.0.4)
64
+ activesupport (= 8.0.4)
65
65
  globalid (>= 0.3.6)
66
- activemodel (8.0.2.1)
67
- activesupport (= 8.0.2.1)
68
- activerecord (8.0.2.1)
69
- activemodel (= 8.0.2.1)
70
- activesupport (= 8.0.2.1)
66
+ activemodel (8.0.4)
67
+ activesupport (= 8.0.4)
68
+ activerecord (8.0.4)
69
+ activemodel (= 8.0.4)
70
+ activesupport (= 8.0.4)
71
71
  timeout (>= 0.4.0)
72
- activestorage (8.0.2.1)
73
- actionpack (= 8.0.2.1)
74
- activejob (= 8.0.2.1)
75
- activerecord (= 8.0.2.1)
76
- activesupport (= 8.0.2.1)
72
+ activestorage (8.0.4)
73
+ actionpack (= 8.0.4)
74
+ activejob (= 8.0.4)
75
+ activerecord (= 8.0.4)
76
+ activesupport (= 8.0.4)
77
77
  marcel (~> 1.0)
78
- activesupport (8.0.2.1)
78
+ activesupport (8.0.4)
79
79
  base64
80
80
  benchmark (>= 0.3)
81
81
  bigdecimal
@@ -88,14 +88,14 @@ GEM
88
88
  securerandom (>= 0.3)
89
89
  tzinfo (~> 2.0, >= 2.0.5)
90
90
  uri (>= 0.13.1)
91
- addressable (2.8.7)
92
- public_suffix (>= 2.0.2, < 7.0)
93
- arbre (2.2.0)
91
+ addressable (2.8.8)
92
+ public_suffix (>= 2.0.2, < 8.0)
93
+ arbre (2.2.1)
94
94
  activesupport (>= 7.0)
95
95
  base64 (0.3.0)
96
96
  bcrypt (3.1.20)
97
- benchmark (0.4.1)
98
- bigdecimal (3.2.3)
97
+ benchmark (0.5.0)
98
+ bigdecimal (4.0.1)
99
99
  bindex (0.8.1)
100
100
  builder (3.3.0)
101
101
  capybara (3.40.0)
@@ -111,8 +111,8 @@ GEM
111
111
  addressable
112
112
  capybara
113
113
  playwright-ruby-client (>= 1.16.0)
114
- concurrent-ruby (1.3.5)
115
- connection_pool (2.5.4)
114
+ concurrent-ruby (1.3.6)
115
+ connection_pool (3.0.2)
116
116
  crass (1.0.6)
117
117
  cssbundling-rails (1.4.3)
118
118
  railties (>= 6.0.0)
@@ -121,8 +121,8 @@ GEM
121
121
  activerecord (>= 5.a)
122
122
  database_cleaner-core (~> 2.0)
123
123
  database_cleaner-core (2.0.1)
124
- date (3.4.1)
125
- debug (1.11.0)
124
+ date (3.5.1)
125
+ debug (1.11.1)
126
126
  irb (~> 1.10)
127
127
  reline (>= 0.3.8)
128
128
  devise (4.9.4)
@@ -133,16 +133,16 @@ GEM
133
133
  warden (~> 1.2.3)
134
134
  diff-lcs (1.6.2)
135
135
  drb (2.2.3)
136
- erb (5.0.2)
136
+ erb (6.0.1)
137
137
  erubi (1.13.1)
138
138
  formtastic (5.0.0)
139
139
  actionpack (>= 6.0.0)
140
140
  formtastic_i18n (0.7.0)
141
- globalid (1.2.1)
141
+ globalid (1.3.0)
142
142
  activesupport (>= 6.1)
143
- has_scope (0.8.2)
144
- actionpack (>= 5.2)
145
- activesupport (>= 5.2)
143
+ has_scope (0.9.0)
144
+ actionpack (>= 7.0)
145
+ activesupport (>= 7.0)
146
146
  i18n (1.14.7)
147
147
  concurrent-ruby (~> 1.0)
148
148
  inherited_resources (2.1.0)
@@ -150,8 +150,8 @@ GEM
150
150
  has_scope (>= 0.6)
151
151
  railties (>= 7.0)
152
152
  responders (>= 2)
153
- io-console (0.8.1)
154
- irb (1.15.2)
153
+ io-console (0.8.2)
154
+ irb (1.16.0)
155
155
  pp (>= 0.6.0)
156
156
  rdoc (>= 4.0.0)
157
157
  reline (>= 0.4.2)
@@ -170,23 +170,25 @@ GEM
170
170
  kaminari-core (= 1.2.2)
171
171
  kaminari-core (1.2.2)
172
172
  logger (1.7.0)
173
- loofah (2.24.1)
173
+ loofah (2.25.0)
174
174
  crass (~> 1.0.2)
175
175
  nokogiri (>= 1.12.0)
176
- mail (2.8.1)
176
+ mail (2.9.0)
177
+ logger
177
178
  mini_mime (>= 0.1.1)
178
179
  net-imap
179
180
  net-pop
180
181
  net-smtp
181
- marcel (1.0.4)
182
+ marcel (1.1.0)
182
183
  matrix (0.4.3)
183
184
  mime-types (3.7.0)
184
185
  logger
185
186
  mime-types-data (~> 3.2025, >= 3.2025.0507)
186
- mime-types-data (3.2025.0909)
187
+ mime-types-data (3.2025.0924)
187
188
  mini_mime (1.1.5)
188
- minitest (5.25.5)
189
- net-imap (0.5.10)
189
+ minitest (6.0.0)
190
+ prism (~> 1.5)
191
+ net-imap (0.6.2)
190
192
  date
191
193
  net-protocol
192
194
  net-pop (0.1.2)
@@ -195,49 +197,64 @@ GEM
195
197
  timeout
196
198
  net-smtp (0.5.1)
197
199
  net-protocol
198
- nio4r (2.7.4)
199
- nokogiri (1.18.9-x86_64-linux-gnu)
200
+ nio4r (2.7.5)
201
+ nokogiri (1.18.10-aarch64-linux-gnu)
202
+ racc (~> 1.4)
203
+ nokogiri (1.18.10-aarch64-linux-musl)
204
+ racc (~> 1.4)
205
+ nokogiri (1.18.10-arm-linux-gnu)
206
+ racc (~> 1.4)
207
+ nokogiri (1.18.10-arm-linux-musl)
208
+ racc (~> 1.4)
209
+ nokogiri (1.18.10-arm64-darwin)
210
+ racc (~> 1.4)
211
+ nokogiri (1.18.10-x86_64-darwin)
212
+ racc (~> 1.4)
213
+ nokogiri (1.18.10-x86_64-linux-gnu)
214
+ racc (~> 1.4)
215
+ nokogiri (1.18.10-x86_64-linux-musl)
200
216
  racc (~> 1.4)
201
217
  orm_adapter (0.5.0)
202
- playwright-ruby-client (1.55.0)
218
+ playwright-ruby-client (1.57.0)
203
219
  concurrent-ruby (>= 1.1.6)
204
220
  mime-types (>= 3.0)
205
- pp (0.6.2)
221
+ pp (0.6.3)
206
222
  prettyprint
207
223
  prettyprint (0.2.0)
208
- propshaft (1.2.1)
224
+ prism (1.7.0)
225
+ propshaft (1.3.1)
209
226
  actionpack (>= 7.0.0)
210
227
  activesupport (>= 7.0.0)
211
228
  rack
212
- psych (5.2.6)
229
+ psych (5.3.1)
213
230
  date
214
231
  stringio
215
- public_suffix (6.0.2)
216
- puma (7.0.2)
232
+ public_suffix (7.0.0)
233
+ puma (7.1.0)
217
234
  nio4r (~> 2.0)
218
235
  racc (1.8.1)
219
- rack (3.2.1)
236
+ rack (3.2.4)
220
237
  rack-session (2.1.1)
221
238
  base64 (>= 0.1.0)
222
239
  rack (>= 3.0.0)
223
240
  rack-test (2.2.0)
224
241
  rack (>= 1.3)
225
- rackup (2.2.1)
242
+ rackup (2.3.1)
226
243
  rack (>= 3)
227
- rails (8.0.2.1)
228
- actioncable (= 8.0.2.1)
229
- actionmailbox (= 8.0.2.1)
230
- actionmailer (= 8.0.2.1)
231
- actionpack (= 8.0.2.1)
232
- actiontext (= 8.0.2.1)
233
- actionview (= 8.0.2.1)
234
- activejob (= 8.0.2.1)
235
- activemodel (= 8.0.2.1)
236
- activerecord (= 8.0.2.1)
237
- activestorage (= 8.0.2.1)
238
- activesupport (= 8.0.2.1)
244
+ rails (8.0.4)
245
+ actioncable (= 8.0.4)
246
+ actionmailbox (= 8.0.4)
247
+ actionmailer (= 8.0.4)
248
+ actionpack (= 8.0.4)
249
+ actiontext (= 8.0.4)
250
+ actionview (= 8.0.4)
251
+ activejob (= 8.0.4)
252
+ activemodel (= 8.0.4)
253
+ activerecord (= 8.0.4)
254
+ activestorage (= 8.0.4)
255
+ activesupport (= 8.0.4)
239
256
  bundler (>= 1.15.0)
240
- railties (= 8.0.2.1)
257
+ railties (= 8.0.4)
241
258
  rails-dom-testing (2.3.0)
242
259
  activesupport (>= 5.0.0)
243
260
  minitest
@@ -245,34 +262,36 @@ GEM
245
262
  rails-html-sanitizer (1.6.2)
246
263
  loofah (~> 2.21)
247
264
  nokogiri (>= 1.15.7, != 1.16.7, != 1.16.6, != 1.16.5, != 1.16.4, != 1.16.3, != 1.16.2, != 1.16.1, != 1.16.0.rc1, != 1.16.0)
248
- railties (8.0.2.1)
249
- actionpack (= 8.0.2.1)
250
- activesupport (= 8.0.2.1)
265
+ railties (8.0.4)
266
+ actionpack (= 8.0.4)
267
+ activesupport (= 8.0.4)
251
268
  irb (~> 1.13)
252
269
  rackup (>= 1.0.0)
253
270
  rake (>= 12.2)
254
271
  thor (~> 1.0, >= 1.2.2)
272
+ tsort (>= 0.2)
255
273
  zeitwerk (~> 2.6)
256
- rake (13.3.0)
257
- ransack (4.3.0)
258
- activerecord (>= 6.1.5)
259
- activesupport (>= 6.1.5)
274
+ rake (13.3.1)
275
+ ransack (4.4.1)
276
+ activerecord (>= 7.2)
277
+ activesupport (>= 7.2)
260
278
  i18n
261
- rdoc (6.14.2)
279
+ rdoc (7.0.1)
262
280
  erb
263
281
  psych (>= 4.0.0)
264
- regexp_parser (2.11.2)
265
- reline (0.6.2)
282
+ tsort
283
+ regexp_parser (2.11.3)
284
+ reline (0.6.3)
266
285
  io-console (~> 0.5)
267
- responders (3.1.1)
268
- actionpack (>= 5.2)
269
- railties (>= 5.2)
270
- rspec-core (3.13.5)
286
+ responders (3.2.0)
287
+ actionpack (>= 7.0)
288
+ railties (>= 7.0)
289
+ rspec-core (3.13.6)
271
290
  rspec-support (~> 3.13.0)
272
291
  rspec-expectations (3.13.5)
273
292
  diff-lcs (>= 1.2.0, < 2.0)
274
293
  rspec-support (~> 3.13.0)
275
- rspec-mocks (3.13.5)
294
+ rspec-mocks (3.13.7)
276
295
  diff-lcs (>= 1.2.0, < 2.0)
277
296
  rspec-support (~> 3.13.0)
278
297
  rspec-rails (6.1.5)
@@ -283,15 +302,33 @@ GEM
283
302
  rspec-expectations (~> 3.13)
284
303
  rspec-mocks (~> 3.13)
285
304
  rspec-support (~> 3.13)
286
- rspec-support (3.13.5)
305
+ rspec-support (3.13.6)
287
306
  securerandom (0.4.1)
288
- sqlite3 (2.7.3-x86_64-linux-gnu)
289
- stringio (3.1.7)
307
+ sqlite3 (2.8.1-aarch64-linux-gnu)
308
+ sqlite3 (2.8.1-aarch64-linux-musl)
309
+ sqlite3 (2.8.1-arm-linux-gnu)
310
+ sqlite3 (2.8.1-arm-linux-musl)
311
+ sqlite3 (2.8.1-arm64-darwin)
312
+ sqlite3 (2.8.1-x86_64-darwin)
313
+ sqlite3 (2.8.1-x86_64-linux-gnu)
314
+ sqlite3 (2.8.1-x86_64-linux-musl)
315
+ stringio (3.2.0)
316
+ tailwindcss-rails (4.4.0)
317
+ railties (>= 7.0.0)
318
+ tailwindcss-ruby (~> 4.0)
319
+ tailwindcss-ruby (4.1.18)
320
+ tailwindcss-ruby (4.1.18-aarch64-linux-gnu)
321
+ tailwindcss-ruby (4.1.18-aarch64-linux-musl)
322
+ tailwindcss-ruby (4.1.18-arm64-darwin)
323
+ tailwindcss-ruby (4.1.18-x86_64-darwin)
324
+ tailwindcss-ruby (4.1.18-x86_64-linux-gnu)
325
+ tailwindcss-ruby (4.1.18-x86_64-linux-musl)
290
326
  thor (1.4.0)
291
- timeout (0.4.3)
327
+ timeout (0.6.0)
328
+ tsort (0.2.0)
292
329
  tzinfo (2.0.6)
293
330
  concurrent-ruby (~> 1.0)
294
- uri (1.0.3)
331
+ uri (1.1.1)
295
332
  useragent (0.16.11)
296
333
  warden (1.2.9)
297
334
  rack (>= 2.0.9)
@@ -306,10 +343,17 @@ GEM
306
343
  websocket-extensions (0.1.5)
307
344
  xpath (3.2.0)
308
345
  nokogiri (~> 1.8)
309
- zeitwerk (2.7.3)
346
+ zeitwerk (2.7.4)
310
347
 
311
348
  PLATFORMS
312
- x86_64-linux
349
+ aarch64-linux-gnu
350
+ aarch64-linux-musl
351
+ arm-linux-gnu
352
+ arm-linux-musl
353
+ arm64-darwin
354
+ x86_64-darwin
355
+ x86_64-linux-gnu
356
+ x86_64-linux-musl
313
357
 
314
358
  DEPENDENCIES
315
359
  activeadmin (~> 4.0.0.beta)
@@ -326,8 +370,9 @@ DEPENDENCIES
326
370
  rails (~> 8.0.2, >= 8.0.2.1)
327
371
  rspec-rails (~> 6.0)
328
372
  sqlite3 (>= 2.1)
373
+ tailwindcss-rails (~> 4.4.0)
329
374
  tzinfo-data
330
375
  web-console
331
376
 
332
377
  BUNDLED WITH
333
- 2.4.10
378
+ 2.6.7
@@ -1,8 +1,11 @@
1
- @import "tailwindcss/base";
2
- @import "tailwindcss/components";
3
- @import "tailwindcss/utilities";
1
+ @import "tailwindcss";
2
+ @config "../../../tailwind-active_admin.config.mjs";
4
3
 
5
- @import "activeadmin-tom_select/src/tom-select-tailwind.css";
4
+ @utility ring-opacity-5 {
5
+ --tw-ring-opacity: 0.05;
6
+ }
7
+
8
+ @import "activeadmin-tom_select/css";
6
9
 
7
10
  /* Additional batch actions dropdown styles that aren't in the ActiveAdmin plugin */
8
11
  @layer components {
@@ -13,4 +16,4 @@
13
16
  .batch-actions-dropdown-arrow {
14
17
  @apply w-2.5 h-2.5;
15
18
  }
16
- }
19
+ }
@@ -0,0 +1,27 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ #
5
+ # This file was generated by Bundler.
6
+ #
7
+ # The application 'tailwindcss' is installed as part of a gem, and
8
+ # this file is here to facilitate running it.
9
+ #
10
+
11
+ ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../Gemfile", __dir__)
12
+
13
+ bundle_binstub = File.expand_path("bundle", __dir__)
14
+
15
+ if File.file?(bundle_binstub)
16
+ if File.read(bundle_binstub, 300).include?("This file was generated by Bundler")
17
+ load(bundle_binstub)
18
+ else
19
+ abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
20
+ Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.")
21
+ end
22
+ end
23
+
24
+ require "rubygems"
25
+ require "bundler/setup"
26
+
27
+ load Gem.bin_path("tailwindcss-ruby", "tailwindcss")
@@ -8,12 +8,16 @@ namespace :active_admin do
8
8
  # Ensure builds directory exists
9
9
  FileUtils.mkdir_p(File.join(root, 'app/assets/builds'))
10
10
 
11
+ # Build Active Admin JavaScript bundle
12
+ system('node', File.join(root, 'esbuild.config.js'), exception: true)
13
+
14
+ tailwind_cli = File.join(root, 'bin/tailwindcss')
15
+
11
16
  # Build with Tailwind CLI
12
17
  command = [
13
- 'npx', 'tailwindcss',
18
+ tailwind_cli,
14
19
  '-i', File.join(root, 'app/assets/stylesheets/active_admin.tailwind.css'),
15
20
  '-o', File.join(root, 'app/assets/builds/active_admin.css'),
16
- '-c', File.join(root, 'tailwind.config.js'),
17
21
  '-m'
18
22
  ]
19
23
 
@@ -26,13 +30,14 @@ namespace :active_admin do
26
30
  task :watch do
27
31
  root = File.expand_path('../../', __dir__)
28
32
 
33
+ tailwind_cli = File.join(root, 'bin/tailwindcss')
34
+
29
35
  # Watch for changes
30
36
  command = [
31
- 'npx', 'tailwindcss',
37
+ tailwind_cli,
32
38
  '--watch',
33
39
  '-i', File.join(root, 'app/assets/stylesheets/active_admin.tailwind.css'),
34
40
  '-o', File.join(root, 'app/assets/builds/active_admin.css'),
35
- '-c', File.join(root, 'tailwind.config.js'),
36
41
  '-m'
37
42
  ]
38
43