rollupjs-rails 0.1.0 → 0.1.1

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: b6e88daac911ff6400da2b84ebc8be3cded0c243b3644a1ad3a4354aa19a143a
4
- data.tar.gz: 67c7ffb6091d8ebc3b0314ef45dcffc72d8060ea10fcb76ffa823f8f32b3546e
3
+ metadata.gz: e76dd98fb4680e49d6d0b119aac29ffe507e3bb37af760416d7fc247df5871db
4
+ data.tar.gz: 3ebd46a7a6598c1beb8a8b99ced16971a2ab5dc02b61c72dc7791befa2d5bc10
5
5
  SHA512:
6
- metadata.gz: 7a675b399fd14abcca4a4df3cd83ffeaf32180bcdaa69c503760374dfa73e9953be03abeaeada11ed877d0ec7787e77a1bef4999996e18326f234d2a98275219
7
- data.tar.gz: f5d4920d160822ba89236413616931a7c096258eaf9478096171126986df9cd3e4ae9c439fc979c5f42bb48c6614b1b9be0913915d50a224045c325abd036dc8
6
+ metadata.gz: b6bf58532dee189761fcaf6e3db3f6e077279ec21742c4aeac040a776bfd3c00b2a006a14292f20b8b8de6b024925a8ac75d6f215158ede9b1232a615c82a906
7
+ data.tar.gz: 99908c39a0a347b44f26931af1a37556d5612848a673c25279dc060dd1090048a35c9e201a76bcb94133282afaf999d6fa2301117688aeb874f5fcef589aeb3c
data/README.md CHANGED
@@ -6,6 +6,8 @@ You develop using this approach by running rollup.js in watch mode in a terminal
6
6
 
7
7
  When you deploy your application to production, rollup.js attaches to the `assets:precompile` task to ensure that all your package dependencies from `package.json` have been installed via npm, and then runs `yarn build` to process `app/javascript/application.js` into `app/assets/builds/javascript.js`. The latter file is then picked up by the asset pipeline, digested, and copied into public/assets, as any other asset pipeline file.
8
8
 
9
+ This also happens in testing where rollup attaches to the `test:prepare` task to ensure the JavaScript has been compiled before testing commences. (Note that this currently only applies to rails `test:*` tasks (like `test:all` or `test:controllers`), not "rails test", as that doesn't load `test:prepare`).
10
+
9
11
  That's it!
10
12
 
11
13
  You can tailor the configuration of rollup.js through the `rollup.config.js` that's created in the root of your project by the installer.
@@ -24,7 +26,7 @@ Or, in Rails 7+, you can preconfigure your new application to use rollup.js with
24
26
 
25
27
  ## The sister gem to esbuild-rails
26
28
 
27
- This gem is almost identical in setup and purpose as [`esbuild-rails`](https://github.com/rails/esbuild-rails), which follows the same conventions, but uses [esbuild](https://esbuild.github.io) instead.
29
+ This gem is almost identical in setup and purpose to [`esbuild-rails`](https://github.com/rails/esbuild-rails), which follows the same conventions, but uses [esbuild](https://esbuild.github.io) instead.
28
30
 
29
31
 
30
32
  ## License
@@ -1,3 +1,3 @@
1
1
  module Rollup
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
@@ -6,3 +6,4 @@ namespace :rollup do
6
6
  end
7
7
 
8
8
  Rake::Task["assets:precompile"].enhance(["rollup:compile"])
9
+ Rake::Task["test:prepare"].enhance(["rollup:compile"])
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rollupjs-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Heinemeier Hansson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-09-04 00:00:00.000000000 Z
11
+ date: 2021-09-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails