jsbundling-rails 1.0.0 → 1.0.2

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: 8748a7213762afebeb5520e47746553aa68e0958529d059124472da46700a06e
4
- data.tar.gz: 65ed947a764debada1b0b512bdb0bacee11b4c985b582cff84b5a69c76672f1c
3
+ metadata.gz: 9005a58fceabb06503796890d306f26c1b57b95e98199f6e93c3a9be9656b320
4
+ data.tar.gz: defe5a30a7543ed3ff40b5d97a493c123fb565bedac270ba2c3a80ee360f58d0
5
5
  SHA512:
6
- metadata.gz: 4a8ed6cbbf58b5d93c75e806fc8f12b55b2992f9309e05b8c428dcd0577e1e8791bd2fe17c44e49b7f5a6ae5633ecc51dc6b3e9ec571b5f110a690ea03144b94
7
- data.tar.gz: 45d6b74a4dbee014d98196eb033cd9d06c94bfd6495eceb032e1bd84b2f4729baa3e413b37267ddc598f2c1c16485c4ac085486833eeb23455523097e8129b24
6
+ metadata.gz: 1537371737cd78411eacd67683eae126ad912d283bae982da54de5c79104d3c176ebaa4275f5d487d81837c12434b63f9edbcefeacad496c705f9d0bdb9e1f38
7
+ data.tar.gz: 6da1db4850966e8a74f5be4526ff43b2b9dfbe7839848d091b24062c738168a5fc97875c84c406216b4140a45aec7e7c31c9a5e919f8c971b7e89669d0df0a1e
data/README.md CHANGED
@@ -16,8 +16,9 @@ That's it!
16
16
 
17
17
  You can configure your bundler options in the `build` script in `package.json` or via the installer-generated `rollup.config.js` for rollup.js or `webpack.config.json` for Webpack (esbuild does not have a default configuration format, and we don't intend to use esbuild as an API in order to hack around it).
18
18
 
19
- If you're already using [`webpacker`](https://github.com/rails/webpacker) and you're wondering if you should migrate to `jsbundling-rails`, have a look at [the high-level comparison](./docs/comparison_with_webpacker.md).
19
+ If you're already using [`webpacker`](https://github.com/rails/webpacker) and you're wondering if you should migrate to `jsbundling-rails`, have a look at [the high-level comparison](./docs/comparison_with_webpacker.md). If you're looking to migrate from webpacker, see the [migration guide](https://github.com/rails/jsbundling-rails/blob/main/docs/switch_from_webpacker.md).
20
20
 
21
+ If you want to use webpack features like [code splitting](https://webpack.js.org/guides/code-splitting/) and [hot module reloading](https://webpack.js.org/concepts/hot-module-replacement/), consider using the official fork of `webpacker`, [`shakapacker`](https://github.com/shakacode/shakapacker).
21
22
 
22
23
  ## Installation
23
24
 
data/lib/install/dev CHANGED
@@ -6,4 +6,4 @@ then
6
6
  gem install foreman
7
7
  fi
8
8
 
9
- foreman start -f Procfile.dev
9
+ foreman start -f Procfile.dev "$@"
@@ -1,3 +1,3 @@
1
1
  module Jsbundling
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.2"
3
3
  end
@@ -7,7 +7,9 @@ namespace :javascript do
7
7
  end
8
8
  end
9
9
 
10
- Rake::Task["assets:precompile"].enhance(["javascript:build"])
10
+ if Rake::Task.task_defined?("assets:precompile")
11
+ Rake::Task["assets:precompile"].enhance(["javascript:build"])
12
+ end
11
13
 
12
14
  if Rake::Task.task_defined?("test:prepare")
13
15
  Rake::Task["test:prepare"].enhance(["javascript:build"])
@@ -5,4 +5,6 @@ namespace :javascript do
5
5
  end
6
6
  end
7
7
 
8
- Rake::Task["assets:clobber"].enhance(["javascript:clobber"])
8
+ if Rake::Task.task_defined?("assets:clobber")
9
+ Rake::Task["assets:clobber"].enhance(["javascript:clobber"])
10
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jsbundling-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.2
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-12-14 00:00:00.000000000 Z
11
+ date: 2022-02-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties