vite_ruby 3.10.2 → 4.0.0.alpha1

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: 52b419f382add7a0b9e770508e0de2b9638ac04f2ac59a1864d34f77e32badd3
4
- data.tar.gz: 23c8c09217c63a4805a77a06557ea77cad59bf42c0bc0005474c93b9904c3953
3
+ metadata.gz: 3e369fc30038cbf7475208298ccc3eebbcec6ad98100b785d6303b766afc3aad
4
+ data.tar.gz: '0811dc3a900d49b9b0b3c406b32b96e852d5a367dce1c96924b6b0a936fddc39'
5
5
  SHA512:
6
- metadata.gz: 7cc569bf315f76cbbad4cf094e3a70497f5e1b650ac50b6e0a065423c87d94f1a612ef9ae7c95bd98ec59177659aaf0e125d3c4dc03f5232897bca7fd981abd2
7
- data.tar.gz: 7be90c92960550713e350cafbd12e1cc297b0a9006f914a33873db2d23b57f3a75eb10adde901181269fbd17f4db3a2bbbbc1d37517b8e9db1de918ee6735d26
6
+ metadata.gz: ef190e8c53cf93255f56a69fa7db7fe684f1fc4924b21aca81d9d2160ec117accf643771a5692bf58225884958fa06fc3b1e713241eaa6f2f223b8fca35e216a
7
+ data.tar.gz: 22b63dc5256c147ddf084f0324f2e6a236b86b654e6cd63e99da2608c6869290aa80885b8d9c61f8c7056df449464cb24831717de5e1a0857b5cf28af303700c
data/CHANGELOG.md CHANGED
@@ -1,473 +1,9 @@
1
- ## [3.10.2](https://github.com/ElMassimo/vite_ruby/compare/vite_ruby@3.10.1...vite_ruby@3.10.2) (2026-03-30)
2
-
3
-
4
- ### Bug Fixes
5
-
6
- * ensure imported CSS is resolved recursively (close [#600](https://github.com/ElMassimo/vite_ruby/issues/600)) ([#601](https://github.com/ElMassimo/vite_ruby/issues/601)) ([de4f4a0](https://github.com/ElMassimo/vite_ruby/commit/de4f4a0d0d80990dd73ade74ac40b1e7abdf40b6))
7
-
8
-
9
-
10
- ## [3.10.1](https://github.com/ElMassimo/vite_ruby/compare/vite_ruby@3.10.0...vite_ruby@3.10.1) (2026-03-25)
11
-
12
-
13
- ### Bug Fixes
14
-
15
- * adding `web:` to `Procfile.dev` during installation (close [#599](https://github.com/ElMassimo/vite_ruby/issues/599)) ([5ed99b4](https://github.com/ElMassimo/vite_ruby/commit/5ed99b40b2688ee91c73ee382a2a7a632bcc9bac))
16
-
17
-
18
-
19
- # [3.10.0](https://github.com/ElMassimo/vite_ruby/compare/vite_ruby@3.9.3...vite_ruby@3.10.0) (2026-03-17)
20
-
21
-
22
- ### Bug Fixes
23
-
24
- * avoid displaying manifest contents (close [#568](https://github.com/ElMassimo/vite_ruby/issues/568)) ([edc8e13](https://github.com/ElMassimo/vite_ruby/commit/edc8e13d205e27332f8f1339588a7d007a1faa7a))
25
- * binstub creation ([#589](https://github.com/ElMassimo/vite_ruby/issues/589)) ([cd2ad27](https://github.com/ElMassimo/vite_ruby/commit/cd2ad273ddf155f7c89098d5a25de4d58b31da16))
26
- * Check if `web` entry already on `Procfile.dev` before appending it ([#542](https://github.com/ElMassimo/vite_ruby/issues/542)) ([4546cf4](https://github.com/ElMassimo/vite_ruby/commit/4546cf48cbef881b4b57deb0fd9e43440e9897f4))
27
-
28
-
29
- ### Features
30
-
31
- * bump default plugin version ([9d8f3b4](https://github.com/ElMassimo/vite_ruby/commit/9d8f3b42e9020a1b6d91bf7432899bff0697fc5a))
32
-
33
-
34
-
35
- ## [3.9.3](https://github.com/ElMassimo/vite_ruby/compare/vite_ruby@3.9.2...vite_ruby@3.9.3) (2026-02-25)
36
-
37
-
38
- ### Bug Fixes
39
-
40
- * coerce dev server connect timeout when set via env vars ([0e2801e](https://github.com/ElMassimo/vite_ruby/commit/0e2801e6e9a4da6e534d1b0dbba28f5baadefd4d)), closes [#591](https://github.com/ElMassimo/vite_ruby/issues/591)
41
-
42
-
43
- ### Features
44
-
45
- * upgrade default vite version to 6.2.6 ([95c247a](https://github.com/ElMassimo/vite_ruby/commit/95c247a66d86f15ad9ce783acf92fef96646091b))
46
-
47
-
48
-
49
- ## [3.9.2](https://github.com/ElMassimo/vite_ruby/compare/vite_ruby@3.9.1...vite_ruby@3.9.2) (2025-03-26)
50
-
51
-
52
- ### Features
53
-
54
- * update `detect_package_manager` to look for new Bun lockfile ([#530](https://github.com/ElMassimo/vite_ruby/issues/530)) ([eca05a3](https://github.com/ElMassimo/vite_ruby/commit/eca05a3021250736776746e4711066a1e00fde68))
55
-
56
-
57
-
58
- ## [3.9.1](https://github.com/ElMassimo/vite_ruby/compare/vite_ruby@3.9.0...vite_ruby@3.9.1) (2024-11-21)
59
-
60
-
61
- ### Performance Improvements
62
-
63
- * avoid calling `uniq` on array of hashes ([3e6ad00](https://github.com/ElMassimo/vite_ruby/commit/3e6ad001be6baacdec0597d33bc220d4242521af)), closes [#416](https://github.com/ElMassimo/vite_ruby/issues/416)
64
-
65
-
66
-
67
- # [3.9.0](https://github.com/ElMassimo/vite_ruby/compare/vite_ruby@3.8.3...vite_ruby@3.9.0) (2024-10-11)
68
-
69
-
70
- ### Bug Fixes
71
-
72
- * enforce vite 5 manifest location ([#432](https://github.com/ElMassimo/vite_ruby/issues/432)) ([ce2df58](https://github.com/ElMassimo/vite_ruby/commit/ce2df5859018b3e305fc1a13443199d268dffca8)), closes [/github.com/ElMassimo/vite_ruby/blob/main/vite_ruby/lib/vite_ruby/builder.rb#L16](https://github.com//github.com/ElMassimo/vite_ruby/blob/main/vite_ruby/lib/vite_ruby/builder.rb/issues/L16)
73
-
74
-
75
-
76
- ## [3.8.3](https://github.com/ElMassimo/vite_ruby/compare/vite_ruby@3.8.2...vite_ruby@3.8.3) (2024-10-11)
77
-
78
-
79
- ### Bug Fixes
80
-
81
- * add `logger` as a runtime dependency rather than default gem ([#502](https://github.com/ElMassimo/vite_ruby/issues/502)) ([6abbccf](https://github.com/ElMassimo/vite_ruby/commit/6abbccf7224f99944c0fe63245f0e84f45fce89f))
82
-
83
-
84
-
85
- ## [3.8.2](https://github.com/ElMassimo/vite_ruby/compare/vite_ruby@3.8.1...vite_ruby@3.8.2) (2024-09-05)
86
-
87
-
88
- ### Bug Fixes
89
-
90
- * bump up expected plugin version ([b8dec4f](https://github.com/ElMassimo/vite_ruby/commit/b8dec4f5b516fe2acc63e980b465987c0c2c9c92)), closes [#493](https://github.com/ElMassimo/vite_ruby/issues/493)
91
-
92
-
93
-
94
- ## [3.8.1](https://github.com/ElMassimo/vite_ruby/compare/vite_ruby@3.8.0...vite_ruby@3.8.1) (2024-09-04)
95
-
96
-
97
- ### Bug Fixes
98
-
99
- * actually run vite inside bun ([#492](https://github.com/ElMassimo/vite_ruby/issues/492)) ([36d3e96](https://github.com/ElMassimo/vite_ruby/commit/36d3e96a6ea9bd9f45881cecb5be78510d6ff017))
100
-
101
-
102
-
103
- # [3.8.0](https://github.com/ElMassimo/vite_ruby/compare/vite_ruby@3.7.0...vite_ruby@3.8.0) (2024-08-12)
104
-
105
-
106
- ### Bug Fixes
107
-
108
- * remove `vite:clean` rake task as it can potentially break apps ([824b4ef](https://github.com/ElMassimo/vite_ruby/commit/824b4ef8397828423d2ddda117bf27e365954961)), closes [#438](https://github.com/ElMassimo/vite_ruby/issues/438) [#490](https://github.com/ElMassimo/vite_ruby/issues/490) [#404](https://github.com/ElMassimo/vite_ruby/issues/404)
109
-
110
-
111
- ### Features
112
-
113
- * remove `ostruct` dependency (closes [#489](https://github.com/ElMassimo/vite_ruby/issues/489)) ([1dfec47](https://github.com/ElMassimo/vite_ruby/commit/1dfec4759bf2c107433c5f1618d97439f6d5bd01))
114
-
115
-
116
-
117
- # [3.7.0](https://github.com/ElMassimo/vite_ruby/compare/vite_ruby@3.6.2...vite_ruby@3.7.0) (2024-07-17)
1
+ # [](https://github.com/ElMassimo/vite_ruby/compare/vite_ruby@3.0.8...vite_ruby@) (2022-01-18)
118
2
 
119
3
 
120
4
  ### Features
121
5
 
122
- * add `package_manager` config option, experimental support for bun ([#481](https://github.com/ElMassimo/vite_ruby/issues/481)) ([4426cb1](https://github.com/ElMassimo/vite_ruby/commit/4426cb1007dbb58f4637a4423b1e7d640db96841)), closes [#324](https://github.com/ElMassimo/vite_ruby/issues/324)
123
- * change default execution to use `npx vite` instead ([#480](https://github.com/ElMassimo/vite_ruby/issues/480)) ([330f61f](https://github.com/ElMassimo/vite_ruby/commit/330f61fedadf1274547a069856125e52002d0065)), closes [#462](https://github.com/ElMassimo/vite_ruby/issues/462)
124
-
125
-
126
-
127
- ## [3.6.2](https://github.com/ElMassimo/vite_ruby/compare/vite_ruby@3.6.1...vite_ruby@3.6.2) (2024-07-16)
128
-
129
-
130
-
131
- ## [3.6.1](https://github.com/ElMassimo/vite_ruby/compare/vite_ruby@3.6.0...vite_ruby@3.6.1) (2024-07-16)
132
-
133
-
134
- ### Bug Fixes
135
-
136
- * use ESM by default in new installations ([#479](https://github.com/ElMassimo/vite_ruby/issues/479)) ([cc379ca](https://github.com/ElMassimo/vite_ruby/commit/cc379ca613dd4e5863f8556be62ea623b56cfe0c)), closes [#431](https://github.com/ElMassimo/vite_ruby/issues/431)
137
-
138
-
139
-
140
- # [3.6.0](https://github.com/ElMassimo/vite_ruby/compare/vite_ruby@3.5.0...vite_ruby@3.6.0) (2024-06-07)
141
-
142
-
143
- ### Features
144
-
145
- * allow skipping dependency install in assets:precompile ([#451](https://github.com/ElMassimo/vite_ruby/issues/451)) ([5a922b2](https://github.com/ElMassimo/vite_ruby/commit/5a922b2071446e3880b17503474a0c7806eab6a7))
146
-
147
-
148
-
149
- # [3.5.0](https://github.com/ElMassimo/vite_ruby/compare/vite_ruby@3.4.0...vite_ruby@3.5.0) (2023-11-16)
150
-
151
-
152
- ### Bug Fixes
153
-
154
- * prevent clean from deleting assets referenced in the manifests ([8a581c1](https://github.com/ElMassimo/vite_ruby/commit/8a581c15ff480049bbb14dab1b5a3497308521b5))
155
-
156
-
157
- ### Features
158
-
159
- * use vite 5 in new installations ([f063f28](https://github.com/ElMassimo/vite_ruby/commit/f063f283f939d15b3c48c1a9b6efcd589fafbaf1))
160
-
161
-
162
-
163
- # [3.4.0](https://github.com/ElMassimo/vite_ruby/compare/vite_ruby@3.3.4...vite_ruby@3.4.0) (2023-11-16)
164
-
165
-
166
- ### Bug Fixes
167
-
168
- * **breaking:** check for any existing manifest path before cleaning ([c450483](https://github.com/ElMassimo/vite_ruby/commit/c4504839e11006d50d6503288469cb3de0c6a9cd))
169
-
170
-
171
- ### Features
172
-
173
- * add support for vite 5, which changed default manifest path ([818132a](https://github.com/ElMassimo/vite_ruby/commit/818132a07af3f17ba27ae09c44fcd59029064238))
174
-
175
-
176
-
177
- ## [3.3.4](https://github.com/ElMassimo/vite_ruby/compare/vite_ruby@3.3.3...vite_ruby@3.3.4) (2023-06-27)
178
-
179
-
180
- ### Bug Fixes
181
-
182
- * check only once per second when dev server is not running ([#377](https://github.com/ElMassimo/vite_ruby/issues/377)) ([fb33f0a](https://github.com/ElMassimo/vite_ruby/commit/fb33f0a28077f9912deed257b7be3a7e050c2d94))
183
-
184
-
185
-
186
- ## [3.3.3](https://github.com/ElMassimo/vite_ruby/compare/vite_ruby@3.3.2...vite_ruby@3.3.3) (2023-06-19)
187
-
188
-
189
- ### Features
190
-
191
- * allow skipping dev dependencies on install ([#374](https://github.com/ElMassimo/vite_ruby/issues/374)) ([a309f4f](https://github.com/ElMassimo/vite_ruby/commit/a309f4f9fc62fb7b9d0728b66b30ad90e68ba7bf))
192
- * Use javascript_tag helper for vite_react_refresh_tag ([#372](https://github.com/ElMassimo/vite_ruby/issues/372)) ([238c6bd](https://github.com/ElMassimo/vite_ruby/commit/238c6bd211c0fafaa6170f0bdd631a0f6e41d992)), closes [#249](https://github.com/ElMassimo/vite_ruby/issues/249)
193
-
194
-
195
-
196
- ## [3.3.2](https://github.com/ElMassimo/vite_ruby/compare/vite_ruby@3.3.1...vite_ruby@3.3.2) (2023-05-09)
197
-
198
-
199
- ### Bug Fixes
200
-
201
- * ensure assets:precompile task is displayed when using `rake -T` ([66af6eb](https://github.com/ElMassimo/vite_ruby/commit/66af6eb0268e7a989562feb38da74072817f0d49))
202
-
203
-
204
-
205
- ## [3.3.1](https://github.com/ElMassimo/vite_ruby/compare/vite_ruby@3.3.0...vite_ruby@3.3.1) (2023-04-28)
206
-
207
-
208
- ### Features
209
-
210
- * upgrade default vite version to 4.3 ([b186456](https://github.com/ElMassimo/vite_ruby/commit/b18645605dd40b312da1137a6440abc8fe4c5ae7))
211
-
212
-
213
-
214
- # [3.3.0](https://github.com/ElMassimo/vite_ruby/compare/vite_ruby@3.2.15...vite_ruby@3.3.0) (2023-03-16)
215
-
216
-
217
- ### Features
218
-
219
- * add support for the --profile flag when running vite build ([4a949fd](https://github.com/ElMassimo/vite_ruby/commit/4a949fde1672b899c7c0382e99a669195c7ea639)), closes [#332](https://github.com/ElMassimo/vite_ruby/issues/332)
220
- * change defaults to vite@4.2.0 and vite-plugin-ruby@3.2.0 ([e9f5702](https://github.com/ElMassimo/vite_ruby/commit/e9f570294c34682a6dd18fdc2ef13675f33375e6))
221
-
222
-
223
-
224
- ## [3.2.15](https://github.com/ElMassimo/vite_ruby/compare/vite_ruby@3.2.14...vite_ruby@3.2.15) (2023-03-01)
225
-
226
-
227
- ### Features
228
-
229
- * install dependencies with yarn if npx is not available ([#343](https://github.com/ElMassimo/vite_ruby/issues/343)) ([90c5db2](https://github.com/ElMassimo/vite_ruby/commit/90c5db2e45ed89aedfa02f0f167925e4ccb02d6d)), closes [#342](https://github.com/ElMassimo/vite_ruby/issues/342)
230
-
231
-
232
-
233
- ## [3.2.14](https://github.com/ElMassimo/vite_ruby/compare/vite_ruby@3.2.13...vite_ruby@3.2.14) (2022-12-22)
234
-
235
-
236
-
237
- ## [3.2.13](https://github.com/ElMassimo/vite_ruby/compare/vite_ruby@3.2.12...vite_ruby@3.2.13) (2022-12-09)
238
-
239
-
240
- ### Features
241
-
242
- * install vite 4 by default ([c1a2e16](https://github.com/ElMassimo/vite_ruby/commit/c1a2e16a5b47225c53ad73b4f6371f2108881850))
243
-
244
-
245
-
246
- ## [3.2.12](https://github.com/ElMassimo/vite_ruby/compare/vite_ruby@3.2.11...vite_ruby@3.2.12) (2022-12-02)
247
-
248
-
249
- ### Features
250
-
251
- * add experimental `skipProxy` setting ([#315](https://github.com/ElMassimo/vite_ruby/issues/315)) ([e9285f6](https://github.com/ElMassimo/vite_ruby/commit/e9285f62c76cc0cbbc5dc99d977e8aef30d08b6f))
252
- * add ViteRuby.instance.configure API to be used in config/vite.rb ([b5b8681](https://github.com/ElMassimo/vite_ruby/commit/b5b8681f85f5388a56d72c9b05dbfc95d5ba607b))
253
-
254
-
255
- ### Performance Improvements
256
-
257
- * avoid calculating digest on each lookup ([#314](https://github.com/ElMassimo/vite_ruby/issues/314)) ([62df93a](https://github.com/ElMassimo/vite_ruby/commit/62df93a15c09c652a8b7496e26cf85d5d69acce7))
258
-
259
-
260
-
261
- ## [3.2.11](https://github.com/ElMassimo/vite_ruby/compare/vite_ruby@3.2.10...vite_ruby@3.2.11) (2022-11-13)
262
-
263
-
264
- ### Bug Fixes
265
-
266
- * avoid removing double extension for non-preprocessor assets ([#301](https://github.com/ElMassimo/vite_ruby/issues/301)) ([2024f62](https://github.com/ElMassimo/vite_ruby/commit/2024f62af917cabcb817c32a5fbbe709d477c19f))
267
-
268
-
269
-
270
- ## [3.2.10](https://github.com/ElMassimo/vite_ruby/compare/vite_ruby@3.2.9...vite_ruby@3.2.10) (2022-11-03)
271
-
272
-
273
-
274
- ## [3.2.9](https://github.com/ElMassimo/vite_ruby/compare/vite_ruby@3.2.8...vite_ruby@3.2.9) (2022-11-02)
275
-
276
-
277
- ### Features
278
-
279
- * allow different ViteRuby instances to set different env vars ([25628a7](https://github.com/ElMassimo/vite_ruby/commit/25628a752cbd4828547c1f454cc4cb2217a591e0))
280
- * output exit code when vite process fails ([#294](https://github.com/ElMassimo/vite_ruby/issues/294)) ([eb8f678](https://github.com/ElMassimo/vite_ruby/commit/eb8f678248a02b693fffe5a49309984fed92a051)), closes [#292](https://github.com/ElMassimo/vite_ruby/issues/292)
281
-
282
-
283
-
284
- ## [3.2.8](https://github.com/ElMassimo/vite_ruby/compare/vite_ruby@3.2.7...vite_ruby@3.2.8) (2022-10-28)
285
-
286
-
287
- ### Features
288
-
289
- * default to vite@3.2.0 ([2ef83a5](https://github.com/ElMassimo/vite_ruby/commit/2ef83a52148f46534c4106015f3f54ec9ee807cb))
290
-
291
-
292
-
293
- ## [3.2.7](https://github.com/ElMassimo/vite_ruby/compare/vite_ruby@3.2.6...vite_ruby@3.2.7) (2022-10-19)
294
-
295
-
296
- ### Bug Fixes
297
-
298
- * yarn berry pnp mode support ([#278](https://github.com/ElMassimo/vite_ruby/issues/278)) ([1890447](https://github.com/ElMassimo/vite_ruby/commit/189044746e536847cb33fb471cc7c42251a61072))
299
-
300
-
301
- ### Features
302
-
303
- * create vite-plugin-rails, an opinionated version of `vite-plugin-ruby` ([#282](https://github.com/ElMassimo/vite_ruby/issues/282)) ([16375fb](https://github.com/ElMassimo/vite_ruby/commit/16375fb1f6f2bf86dff935ca3aaf91c333a796ff))
304
-
305
-
306
-
307
- ## [3.2.6](https://github.com/ElMassimo/vite_ruby/compare/vite_ruby@3.2.5...vite_ruby@3.2.6) (2022-10-07)
308
-
309
-
310
- ### Features
311
-
312
- * always trigger a build if the manifest is missing ([#275](https://github.com/ElMassimo/vite_ruby/issues/275)) ([53ffdb9](https://github.com/ElMassimo/vite_ruby/commit/53ffdb9559409cb813198b4fd8a7a5ccb0c3cd21))
313
-
314
-
315
-
316
- ## [3.2.5](https://github.com/ElMassimo/vite_ruby/compare/vite_ruby@3.2.4...vite_ruby@3.2.5) (2022-10-07)
317
-
318
-
319
- ### Features
320
-
321
- * display last build errors in MissingEntrypointError ([#274](https://github.com/ElMassimo/vite_ruby/issues/274)) ([107c980](https://github.com/ElMassimo/vite_ruby/commit/107c980449546ef73c527b88f1db11a7201e4438))
322
-
323
-
324
-
325
- ## [3.2.4](https://github.com/ElMassimo/vite_ruby/compare/vite_ruby@3.2.3...vite_ruby@3.2.4) (2022-10-04)
326
-
327
-
328
- ### Bug Fixes
329
-
330
- * **BREAKING CHANGE:** lookup now returns nil if auto-build fails ([#268](https://github.com/ElMassimo/vite_ruby/issues/268)) ([cf2dec1](https://github.com/ElMassimo/vite_ruby/commit/cf2dec1bfec2279179c1671e5b42479549fd11c4)), closes [#267](https://github.com/ElMassimo/vite_ruby/issues/267)
331
-
332
-
333
-
334
- ## [3.2.3](https://github.com/ElMassimo/vite_ruby/compare/vite_ruby@3.2.2...vite_ruby@3.2.3) (2022-08-28)
335
-
336
-
337
- ### Bug Fixes
338
-
339
- * prevent yarn 2+ error in `assets:precompile` ([#241](https://github.com/ElMassimo/vite_ruby/issues/241)) ([e7e857a](https://github.com/ElMassimo/vite_ruby/commit/e7e857ac763dd053a8bda4b27d26a2090269f6d8))
340
-
341
-
342
-
343
- ## [3.2.2](https://github.com/ElMassimo/vite_ruby/compare/vite_ruby@3.2.1...vite_ruby@3.2.2) (2022-08-12)
344
-
345
-
346
- ### Features
347
-
348
- * allow framework-specific libraries to extend the CLI ([a0ed66f](https://github.com/ElMassimo/vite_ruby/commit/a0ed66fe64fb2549cecc358ccd60c82be44255aa))
349
-
350
-
351
-
352
- ## [3.2.1](https://github.com/ElMassimo/vite_ruby/compare/vite_ruby@3.2.0...vite_ruby@3.2.1) (2022-08-11)
353
-
354
-
355
- ### Bug Fixes
356
-
357
- * require the version after defining namespace (close [#239](https://github.com/ElMassimo/vite_ruby/issues/239)) ([7b92062](https://github.com/ElMassimo/vite_ruby/commit/7b920627f0f551166b3ab321e50b6cee746168c2))
358
-
359
-
360
-
361
- # [3.2.0](https://github.com/ElMassimo/vite_ruby/compare/vite_ruby@3.1.7...vite_ruby@3.2.0) (2022-07-13)
362
-
363
-
364
- ### Features
365
-
366
- * use Vite 3 as the default ([#225](https://github.com/ElMassimo/vite_ruby/issues/225)) ([8fab191](https://github.com/ElMassimo/vite_ruby/commit/8fab1912dc8c7c600854b490c09a603644714266))
367
-
368
-
369
-
370
- ## [3.1.7](https://github.com/ElMassimo/vite_ruby/compare/vite_ruby@3.1.6...vite_ruby@3.1.7) (2022-07-13)
371
-
372
-
373
- ### Bug Fixes
374
-
375
- * npm deprecation warning on assets:precompile ([#226](https://github.com/ElMassimo/vite_ruby/issues/226)) ([e4f4b75](https://github.com/ElMassimo/vite_ruby/commit/e4f4b7540ef34296f1a8a4d8f1d2838549ee8460)), closes [#220](https://github.com/ElMassimo/vite_ruby/issues/220)
376
- # [](https://github.com/ElMassimo/vite_ruby/compare/vite_ruby@3.1.6...vite_ruby@) (2022-07-01)
377
-
378
-
379
- ## [3.1.6](https://github.com/ElMassimo/vite_ruby/compare/vite_ruby@3.1.5...vite_ruby@3.1.6) (2022-06-02)
380
-
381
- ### Bug Fixes
382
-
383
- * Catch npm command not found, for folks who install deps with yarn ([7a0407b3211e682bc1da40d29225af58d3396cbd](https://github.com/ElMassimo/vite_ruby/commit/7a0407b3211e682bc1da40d29225af58d3396cbd))
384
-
385
-
386
- ## [3.1.5](https://github.com/ElMassimo/vite_ruby/compare/vite_ruby@3.1.4...vite_ruby@3.1.5) (2022-05-30)
387
-
388
-
389
- ### Bug Fixes
390
-
391
- * install dependencies without confirmation in modern versions of npm ([967fbf5](https://github.com/ElMassimo/vite_ruby/commit/967fbf52aac5e52e1a059bffda79c7472874775f)), closes [#216](https://github.com/ElMassimo/vite_ruby/issues/216)
392
-
393
-
394
-
395
- ## [3.1.4](https://github.com/ElMassimo/vite_ruby/compare/vite_ruby@3.1.3...vite_ruby@3.1.4) (2022-05-13)
396
-
397
-
398
- ### Features
399
-
400
- * expose `ViteRuby.digest` to simplify asset versioning. ([ff92ce6](https://github.com/ElMassimo/vite_ruby/commit/ff92ce6011d857efa83987d3c20d48767111e700))
401
-
402
-
403
-
404
- ## [3.1.3](https://github.com/ElMassimo/vite_ruby/compare/vite_ruby@3.1.2...vite_ruby@3.1.3) (2022-05-13)
405
-
406
-
407
- ### Bug Fixes
408
-
409
- * change default for ssrOutputDir so it's ignored by default ([2f93b76](https://github.com/ElMassimo/vite_ruby/commit/2f93b762b29462cc619527ed47e6fa3cf8d3c8c9))
410
-
411
-
412
-
413
- ## [3.1.2](https://github.com/ElMassimo/vite_ruby/compare/vite_ruby@3.1.1...vite_ruby@3.1.2) (2022-05-12)
414
-
415
-
416
- ### Features
417
-
418
- * add support for SSR builds (experimental) ([#212](https://github.com/ElMassimo/vite_ruby/issues/212)) ([4d6cd2b](https://github.com/ElMassimo/vite_ruby/commit/4d6cd2b84f670b1703e3bde7033e822be97bf505))
419
- * ignore any vite dirs in .gitignore installation (for ssr builds) ([fd68420](https://github.com/ElMassimo/vite_ruby/commit/fd68420dfaeb79b97f8edade5bf17bfe81fd2486))
420
-
421
-
422
-
423
- ## [3.1.1](https://github.com/ElMassimo/vite_ruby/compare/vite_ruby@3.1.0...vite_ruby@3.1.1) (2022-04-14)
424
-
425
-
426
- ### Bug Fixes
427
-
428
- * prevent error when using a proc in asset_host (close [#202](https://github.com/ElMassimo/vite_ruby/issues/202)) ([#203](https://github.com/ElMassimo/vite_ruby/issues/203)) ([cb23a81](https://github.com/ElMassimo/vite_ruby/commit/cb23a81037651ac01d993935f68cc526ec2c844d))
429
-
430
-
431
-
432
- # [3.1.0](https://github.com/ElMassimo/vite_ruby/compare/vite_ruby@3.0.11...vite_ruby@3.1.0) (2022-04-01)
433
-
434
-
435
- ### Features
436
-
437
- * improve capistrano-rails integration by extending asset tasks ([#200](https://github.com/ElMassimo/vite_ruby/issues/200)) ([d5704ab](https://github.com/ElMassimo/vite_ruby/commit/d5704ab55abf27cbdb5b00841bce3136147a0200))
438
-
439
-
440
-
441
- ## [3.0.11](https://github.com/ElMassimo/vite_ruby/compare/vite_ruby@3.0.10...vite_ruby@3.0.11) (2022-04-01)
442
-
443
-
444
- ### Features
445
-
446
- * bump the default vite version ([2cb8952](https://github.com/ElMassimo/vite_ruby/commit/2cb895246b3154322273989057bf9bdc67634bc6))
447
-
448
-
449
-
450
- ## [3.0.10](https://github.com/ElMassimo/vite_ruby/compare/vite_ruby@3.0.9...vite_ruby@3.0.10) (2022-03-17)
451
-
452
-
453
- ### Bug Fixes
454
-
455
- * avoid proxying requests starting with @ ([93d071b](https://github.com/ElMassimo/vite_ruby/commit/93d071b2b807c2e09e24d5d7ea4228974b370960))
456
- * MissingExecutableError when deploying with Capistrano (close [#192](https://github.com/ElMassimo/vite_ruby/issues/192)) ([22e1691](https://github.com/ElMassimo/vite_ruby/commit/22e1691a0685b1fdeec3904657be5e69a57e6456))
457
-
458
-
459
- ### Features
460
-
461
- * bump up default vite version to 2.8.6 ([fd53030](https://github.com/ElMassimo/vite_ruby/commit/fd5303017760dc176b3fb15908f08a16a175c22f))
462
-
463
-
464
-
465
- ## [3.0.9](https://github.com/ElMassimo/vite_ruby/compare/vite_ruby@3.0.8...vite_ruby@3.0.9) (2022-02-09)
466
-
467
-
468
- ### Bug Fixes
469
-
470
- * support older versions of npm (v6) that ship with node 12 and 14 ([0accc36](https://github.com/ElMassimo/vite_ruby/commit/0accc36e9ef82fa0923af4f94253433433c0b074))
6
+ * **experimental:** add support for Subresource Integrity via vite-plugin-manifest-sri ([0b3142c](https://github.com/ElMassimo/vite_ruby/commit/0b3142cd9d569a5f56821f53cdade337779bb0c1))
471
7
 
472
8
 
473
9
 
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  <h1 align="center">
2
2
  <a href="https://vite-ruby.netlify.app/">
3
- <img src="https://raw.githubusercontent.com/ElMassimo/vite_ruby/main/logo.svg" width="120px"/>
3
+ <img src="https://raw.githubusercontent.com/ElMassimo/vite_ruby/main/docs/public/logo.svg" width="120px"/>
4
4
  </a>
5
5
 
6
6
  <br>
data/default.vite.json CHANGED
@@ -7,20 +7,15 @@
7
7
  "publicOutputDir": "vite",
8
8
  "configPath": "config/vite.json",
9
9
  "devServerConnectTimeout": 0.01,
10
- "packageManager": null,
11
10
  "publicDir": "public",
12
11
  "entrypointsDir": "entrypoints",
13
12
  "sourceCodeDir": "app/frontend",
14
13
  "skipCompatibilityCheck": false,
15
- "skipProxy": false,
16
14
  "host": "localhost",
17
15
  "https": null,
18
16
  "port": 3036,
19
17
  "hideBuildConsoleOutput": false,
20
- "viteBinPath": null,
18
+ "viteBinPath": "node_modules/.bin/vite",
21
19
  "watchAdditionalPaths": [],
22
- "base": "",
23
- "ssrBuildEnabled": false,
24
- "ssrEntrypoint": "~/ssr/ssr.{js,ts,jsx,tsx}",
25
- "ssrOutputDir": "public/vite-ssr"
20
+ "base": ""
26
21
  }
data/exe/vite CHANGED
@@ -1,12 +1,10 @@
1
1
  #!/usr/bin/env ruby
2
2
  # frozen_string_literal: true
3
3
 
4
- ENV["RAILS_ENV"] ||= ENV["RACK_ENV"]
4
+ ENV['RAILS_ENV'] ||= ENV['RACK_ENV']
5
5
 
6
- require "bundler/setup"
7
- require "vite_ruby"
6
+ require 'bundler/setup'
7
+ require 'vite_ruby'
8
8
 
9
9
  cli = ViteRuby::CLI
10
- cli.require_framework_libraries
11
-
12
10
  Dry::CLI.new(cli).call
data/lib/tasks/vite.rake CHANGED
@@ -2,49 +2,36 @@
2
2
 
3
3
  $stdout.sync = true
4
4
 
5
- require "rake"
5
+ require 'rake'
6
6
 
7
7
  namespace :vite do
8
8
  task :binstubs do
9
9
  ViteRuby.commands.install_binstubs
10
10
  end
11
11
 
12
- desc "Bundle frontend entrypoints using ViteRuby"
13
- task build: :"vite:verify_install" do
12
+ desc 'Compile JavaScript packs using vite for production with digests'
13
+ task build: :'vite:verify_install' do
14
14
  ViteRuby.commands.build_from_task
15
15
  end
16
16
 
17
- desc "Bundle a Node.js app from the SSR entrypoint using ViteRuby"
18
- task build_ssr: :"vite:verify_install" do
19
- ViteRuby.commands.build_from_task("--ssr")
17
+ desc 'Remove old compiled vites'
18
+ task :clean, [:keep, :age] => :'vite:verify_install' do |_, args|
19
+ ViteRuby.commands.clean_from_task(args)
20
20
  end
21
21
 
22
- desc "Bundle entrypoints using Vite Ruby (SSR only if enabled)"
23
- task build_all: :"vite:verify_install" do
24
- ViteRuby.commands.build_from_task
25
- ViteRuby.commands.build_from_task("--ssr") if ViteRuby.config.ssr_build_enabled
26
- end
27
-
28
- desc "Remove the build output directory for ViteRuby"
29
- task clobber: :"vite:verify_install" do
22
+ desc 'Remove the vite build output directory'
23
+ task clobber: :'vite:verify_install' do
30
24
  ViteRuby.commands.clobber
31
25
  end
32
26
 
33
- desc "Verify if ViteRuby is properly installed in the app"
27
+ desc 'Verifies if ViteRuby is properly installed in this application'
34
28
  task :verify_install do
35
29
  ViteRuby.commands.verify_install
36
30
  end
37
31
 
38
- desc "Ensure build dependencies like Vite are installed before bundling"
32
+ desc 'Ensures build dependencies like Vite are installed when compiling assets'
39
33
  task :install_dependencies do
40
- install_env_args = (ENV["VITE_RUBY_SKIP_INSTALL_DEV_DEPENDENCIES"] == "true") ? {} : {"NODE_ENV" => "development"}
41
-
42
- install_cmd = case (pkg = ViteRuby.config.package_manager)
43
- when "npm" then "npm ci"
44
- else "#{pkg} install --frozen-lockfile"
45
- end
46
-
47
- system(install_env_args, install_cmd)
34
+ system({ 'NODE_ENV' => 'development' }, 'npx --yes ci')
48
35
  end
49
36
 
50
37
  desc "Provide information on ViteRuby's environment"
@@ -53,43 +40,19 @@ namespace :vite do
53
40
  end
54
41
  end
55
42
 
56
- unless ENV["VITE_RUBY_SKIP_ASSETS_PRECOMPILE_EXTENSION"] == "true"
57
- if Rake::Task.task_defined?("assets:precompile")
58
- Rake::Task["assets:precompile"].enhance do |task|
43
+ unless ENV['VITE_RUBY_SKIP_ASSETS_PRECOMPILE_EXTENSION'] == 'true'
44
+ if Rake::Task.task_defined?('assets:precompile')
45
+ Rake::Task['assets:precompile'].enhance do |task|
59
46
  prefix = task.name.split(/#|assets:precompile/).first
60
- unless ENV["VITE_RUBY_SKIP_ASSETS_PRECOMPILE_INSTALL"] == "true"
61
- Rake::Task["#{prefix}vite:install_dependencies"].invoke
62
- end
63
- Rake::Task["#{prefix}vite:build_all"].invoke
47
+ Rake::Task["#{ prefix }vite:build"].invoke
64
48
  end
65
49
  else
66
- desc "Bundle Vite assets"
67
- if ENV["VITE_RUBY_SKIP_ASSETS_PRECOMPILE_INSTALL"] == "true"
68
- Rake::Task.define_task("assets:precompile" => "vite:build_all")
69
- else
70
- Rake::Task.define_task("assets:precompile" => ["vite:install_dependencies", "vite:build_all"])
71
- end
72
- end
73
-
74
- if Rake::Task.task_defined?("assets:clobber")
75
- Rake::Task["assets:clobber"].enhance do
76
- Rake::Task["vite:clobber"].invoke
77
- end
78
- else
79
- desc "Remove compiled assets"
80
- Rake::Task.define_task("assets:clobber" => "vite:clobber")
50
+ Rake::Task.define_task('assets:precompile' => ['vite:install_dependencies', 'vite:build'])
81
51
  end
82
52
  end
83
53
 
84
54
  # Any prerequisite task that installs packages should also install build dependencies.
85
- if ARGV.include?("assets:precompile")
86
- if ViteRuby.commands.legacy_npm_version?
87
- ENV["NPM_CONFIG_PRODUCTION"] = "false"
88
- else
89
- ENV["NPM_CONFIG_INCLUDE"] = "dev"
90
- end
91
-
92
- if ViteRuby.commands.legacy_yarn_version?
93
- ENV["YARN_PRODUCTION"] = "false"
94
- end
55
+ if ARGV.include?('assets:precompile')
56
+ ENV['NPM_CONFIG_PRODUCTION'] = 'false'
57
+ ENV['YARN_PRODUCTION'] = 'false'
95
58
  end