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 +4 -4
- data/README.md +3 -1
- data/lib/rollup/version.rb +1 -1
- data/lib/tasks/rollup/compile.rake +1 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e76dd98fb4680e49d6d0b119aac29ffe507e3bb37af760416d7fc247df5871db
|
4
|
+
data.tar.gz: 3ebd46a7a6598c1beb8a8b99ced16971a2ab5dc02b61c72dc7791befa2d5bc10
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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
|
data/lib/rollup/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2021-09-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|