shakapacker 6.0.0.rc.14 → 6.0.0

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: 52b536f1a629b24f309e3b8fa5d12b4f00f3ab8d900072aef7a87310de40dbf2
4
- data.tar.gz: aabac3cce21b2ebffd5cb89d250dcbd5adca8599d96dfe2ad6668bd05a81b5ad
3
+ metadata.gz: 8cac929d3e522c5f709b866a582551b00ffd56579f8731e07ed80a5a7b76bb90
4
+ data.tar.gz: eaca2ec65c2b9fe16bd50aaa31902fa738448dbaa599cb3db42876d869a23a1c
5
5
  SHA512:
6
- metadata.gz: 7ad0f3e841893c69bc92cb543ed5a96305904b8aa8cc7799c7380bed6979577b60b866ef9d197252d1bbd13ae98e11eae2f8e7e9a8eb22be7a68321389f1826d
7
- data.tar.gz: 86396cb0725037f0153731ed203d8c3840116e8dd40fd1a1eb8eceace8f20e4f0fab7105956d466b49a86cb08b3c5ea9de40c06213c91801d3500ec18a0f973e
6
+ metadata.gz: 2cc8e0085ffc940e94ad73fd0ff5cff9adca71915eff47df30ea53d55a12853d3fc63dcb055456011f65c9e869bfbfd16c4299ac864d3dee60b977dd77e38587
7
+ data.tar.gz: 5a3ff00245fdd839eb843492fb948047dffaf07cd7e4f3d92d4c5e1ac1bd3ba3c94624050a185af5f9d9e580e4b949a682f4333bee837c724c7f83d0412d390b
data/CHANGELOG.md CHANGED
@@ -52,6 +52,7 @@ Changes since last non-beta release.
52
52
  - CSS extraction enabled by default, except when devServer is configured and running
53
53
 
54
54
 
55
- [Unreleased]: https://github.com/shakacode/shakapacker/compare/6.0.0-rc.13...master
55
+ [Unreleased]: https://github.com/shakacode/shakapacker/compare/6.0.0-rc.14...master
56
+ [v6.0.0.rc.14]: https://github.com/shakacode/shakapacker/compare/v6.0.0-rc.13...v6.0.0-rc.14
56
57
  [v6.0.0.rc.13 changes from v6.0.0.rc.6]: https://github.com/shakacode/shakapacker/compare/aba79635e6ff6562ec04d3c446d57ef19a5fef7d...v6.0.0-rc.13
57
58
  [v6.0.0.rc.6 changes from v5.4]: https://github.com/rails/webpacker/compare/v5.4.3...aba79635e6ff6562ec04d3c446d57ef19a5fef7d
data/README.md CHANGED
@@ -61,6 +61,7 @@ Discussion forums to discuss debugging and troubleshooting tips. Please open iss
61
61
  - [Paths](#paths)
62
62
  - [Additional paths](#additional-paths)
63
63
  - [Deployment](#deployment)
64
+ - [Example Apps](#example-apps)
64
65
  - [Troubleshooting](#troubleshooting)
65
66
  - [Contributing](#contributing)
66
67
  - [License](#license)
@@ -96,14 +97,22 @@ Discussion forums to discuss debugging and troubleshooting tips. Please open iss
96
97
  ## Installation
97
98
 
98
99
  ### Rails v6
99
- With Rails v6, webpacker is installed by default:
100
+ With Rails v6, [rails/webpacker v5](https://github.com/rails/webpacker/tree/5-x-stable) is installed by default:
100
101
  ```bash
101
102
  rails new myapp
102
103
  ```
103
104
 
105
+ If you wish to migrate to Shakapacker, please follow the [V6 Upgrade](./docs/v6_upgrade.md) instructions.
106
+
107
+ Alternatively, you can skip the default webpacker installation and then follow the [Manual Installation Steps](#manual-installation-steps) below.
108
+
109
+ ```bash
110
+ rails new myapp --skip-javascript
111
+ ```
112
+
104
113
  ### Rails v7
105
114
 
106
- With Rails v7, skip JavaScript for a new app and follow below Manual Installation Steps to manually add the `webpacker` gem to your Gemfile.
115
+ With Rails v7, skip JavaScript for a new app and follow below Manual Installation Steps to manually add the `shakapacker` gem to your Gemfile.
107
116
  ```bash
108
117
  rails new myapp --skip-javascript
109
118
  ```
@@ -298,7 +307,7 @@ end
298
307
 
299
308
  ### Webpack Configuration
300
309
 
301
- Webpacker gives you a default configuration file for your test, development, and production environments in `config/webpack/*.js`.
310
+ Webpacker gives you a default configuration file for your test, development, and production environments in `config/webpack/*.js`.
302
311
 
303
312
  By default, you don't need to make any changes to `config/webpack/webpack.config.js` files since it's all standard production-ready configuration. However, if you do need to customize or add a new loader, this is where you would go.
304
313
 
@@ -586,7 +595,7 @@ You can run following commands to upgrade Webpacker to the latest stable version
586
595
 
587
596
  ```bash
588
597
  # check your Gemfile for version restrictions
589
- bundle update webpacker
598
+ bundle update shakapacker
590
599
 
591
600
  # overwrite your changes to the default install files and revert any unwanted changes from the install
592
601
  rails webpacker:install
@@ -661,6 +670,9 @@ When compiling assets for production on a remote server, such as a continuous in
661
670
 
662
671
  If you are using a CDN setup, webpacker will use the configured [asset host](https://guides.rubyonrails.org/configuring.html#rails-general-configuration) value to prefix URLs for images or font icons which are included inside JS code or CSS. It is possible to override this value during asset compilation by setting the `WEBPACKER_ASSET_HOST` environment variable.
663
672
 
673
+ ## Example Apps
674
+ * [React on Rails Tutorial With SSR, HMR fast refresh, and TypeScript](https://github.com/shakacode/react_on_rails_tutorial_with_ssr_and_hmr_fast_refresh)
675
+
664
676
 
665
677
  ## Troubleshooting
666
678
 
@@ -669,11 +681,8 @@ See the doc page for [Troubleshooting](./docs/troubleshooting.md).
669
681
 
670
682
  ## Contributing
671
683
 
672
- [![Code Helpers](https://www.codetriage.com/shakacode/shakapacker/badges/users.svg)](https://www.codetriage.com/shakacode/shakapacker)
673
-
674
684
  We encourage you to contribute to Webpacker! See [CONTRIBUTING](CONTRIBUTING.md) for guidelines about how to proceed.
675
685
 
676
-
677
686
  ## License
678
687
 
679
688
  Webpacker is released under the [MIT License](https://opensource.org/licenses/MIT).
data/docs/v6_upgrade.md CHANGED
@@ -15,8 +15,9 @@ See example migration, [PR 27](https://github.com/shakacode/react_on_rails_tutor
15
15
 
16
16
  ### Update
17
17
  1. Peer dependencies. Run `yarn add @babel/core @babel/plugin-transform-runtime @babel/preset-env @babel/runtime babel-loader compression-webpack-plugin terser-webpack-plugin webpack webpack-assets-manifest webpack-cli webpack-merge webpack-sources webpack-dev-server`
18
- 2. Update your webpack config for a single config file, `config/webpack/webpack.config.js`.
19
- 3. Update `babel.config.js` if you need JSX support.
18
+ 1. Update any scripts that called `bin/webpack` or `bin/webpack-dev-server` to `bin/webpacker` or `bin/webpacker-dev-server`
19
+ 1. Update your webpack config for a single config file, `config/webpack/webpack.config.js`.
20
+ 1. Update `babel.config.js` if you need JSX support.
20
21
 
21
22
  ## How to upgrade to Webpacker v6 from v5
22
23
  1. Ensure you have a clean working git branch. You will be overwriting all your files and reverting the changes that you don't want.
@@ -1,4 +1,4 @@
1
1
  module Webpacker
2
2
  # Change the version in package.json too, please!
3
- VERSION = "6.0.0.rc.14".freeze
3
+ VERSION = "6.0.0".freeze
4
4
  end
data/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shakapacker",
3
- "version": "6.0.0-rc.14",
3
+ "version": "6.0.0",
4
4
  "description": "Use webpack to manage app-like JavaScript modules in Rails",
5
5
  "main": "package/index.js",
6
6
  "files": [
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shakapacker
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.0.0.rc.14
4
+ version: 6.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Heinemeier Hansson
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2022-01-21 00:00:00.000000000 Z
13
+ date: 2022-01-23 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: activesupport
@@ -269,7 +269,7 @@ homepage: https://github.com/shakacode/shakapacker
269
269
  licenses:
270
270
  - MIT
271
271
  metadata:
272
- source_code_uri: https://github.com/shakacode/shakapacker/tree/v6.0.0-rc.14
272
+ source_code_uri: https://github.com/shakacode/shakapacker/tree/v6.0.0
273
273
  post_install_message:
274
274
  rdoc_options: []
275
275
  require_paths:
@@ -281,9 +281,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
281
281
  version: 2.7.0
282
282
  required_rubygems_version: !ruby/object:Gem::Requirement
283
283
  requirements:
284
- - - ">"
284
+ - - ">="
285
285
  - !ruby/object:Gem::Version
286
- version: 1.3.1
286
+ version: '0'
287
287
  requirements: []
288
288
  rubygems_version: 3.2.32
289
289
  signing_key: