repack 2.1.4 → 2.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/repack/railtie.rb +4 -4
- data/lib/repack/version.rb +1 -1
- data/lib/tasks/{webpack.rake → repack.rake} +3 -3
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 02eb8fb0514984f7548b9b3f3d4e8d82d9e81b6d
|
4
|
+
data.tar.gz: 239c40c57fe7c114de6b8425c6634186e2881489
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2daba0cf59b57e876241c77797deafbd3080c89cacf3f3d647504beee6acf4a33cedaba199ec7039e8a09e9dae8a9c4cef5a40c29f013b8fef0b557906efb267
|
7
|
+
data.tar.gz: 7b43288a4eef17b2f2f71fd21ad9d6bb2d31338025435d4ba3f4ac52f8e272e42dee4496b92511a57b011e5aaa7893c8efa1b429b078f68fb49dee2919a1f715
|
data/README.md
CHANGED
@@ -91,7 +91,7 @@ Next you will need to set up a post build hook to bundle Webpack. Include the be
|
|
91
91
|
|
92
92
|
Lastly, ensure that all Babel related modules are listed as dependencies and not dev dependencies in `package.json`. At this point, you should be able to push to Heroku.
|
93
93
|
|
94
|
-
An alternative to adding the post build hook to `package.json` is to add `rake
|
94
|
+
An alternative to adding the post build hook to `package.json` is to add `rake repack:compile` to your deployment. It serves a similar purpose as Sprockets' `assets:precompile` task. If you're using Webpack and Sprockets (as we are at Marketplacer) you'll need to run both tasks - but it doesn't matter which order they're run in.
|
95
95
|
|
96
96
|
If you're using `[chunkhash]` in your build asset filenames (which you should be, if you want to cache them in production), you'll need to persist built assets between deployments. Consider in-flight requests at the time of deployment: they'll receive paths based on the old `manifest.json`, not the new one.
|
97
97
|
|
data/lib/repack/railtie.rb
CHANGED
@@ -12,14 +12,14 @@ module Repack
|
|
12
12
|
end
|
13
13
|
|
14
14
|
config.repack = ActiveSupport::OrderedOptions.new
|
15
|
-
config.repack.config_file = 'config/
|
16
|
-
config.repack.binary = 'node_modules/.bin/
|
15
|
+
config.repack.config_file = 'config/webpack.config.js'
|
16
|
+
config.repack.binary = 'node_modules/.bin/webpack'
|
17
17
|
|
18
18
|
config.repack.dev_server = ActiveSupport::OrderedOptions.new
|
19
19
|
config.repack.dev_server.host = 'localhost'
|
20
20
|
config.repack.dev_server.port = 3808
|
21
21
|
config.repack.dev_server.https = false # note - this will use OpenSSL::SSL::VERIFY_NONE
|
22
|
-
config.repack.dev_server.binary = 'node_modules/.bin/
|
22
|
+
config.repack.dev_server.binary = 'node_modules/.bin/webpack-dev-server'
|
23
23
|
config.repack.dev_server.enabled = !::Rails.env.production?
|
24
24
|
|
25
25
|
config.repack.output_dir = "public/client"
|
@@ -27,7 +27,7 @@ module Repack
|
|
27
27
|
config.repack.manifest_filename = "manifest.json"
|
28
28
|
|
29
29
|
rake_tasks do
|
30
|
-
load "tasks/
|
30
|
+
load "tasks/repack.rake"
|
31
31
|
end
|
32
32
|
end
|
33
33
|
end
|
data/lib/repack/version.rb
CHANGED
@@ -1,9 +1,9 @@
|
|
1
|
-
namespace :
|
1
|
+
namespace :repack do
|
2
2
|
desc "Compile webpack bundles"
|
3
3
|
task compile: :environment do
|
4
4
|
ENV["TARGET"] = 'production'
|
5
|
-
webpack_bin = ::Rails.root.join(::Rails.configuration.
|
6
|
-
config_file = ::Rails.root.join(::Rails.configuration.
|
5
|
+
webpack_bin = ::Rails.root.join(::Rails.configuration.repack.binary)
|
6
|
+
config_file = ::Rails.root.join(::Rails.configuration.repack.config_file)
|
7
7
|
|
8
8
|
unless File.exist?(webpack_bin)
|
9
9
|
raise "Can't find our webpack executable at #{webpack_bin} - have you run `npm install`?"
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: repack
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.
|
4
|
+
version: 2.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dave Jungst
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2016-11-
|
12
|
+
date: 2016-11-15 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
@@ -66,7 +66,7 @@ files:
|
|
66
66
|
- lib/repack/rails.rb
|
67
67
|
- lib/repack/railtie.rb
|
68
68
|
- lib/repack/version.rb
|
69
|
-
- lib/tasks/
|
69
|
+
- lib/tasks/repack.rake
|
70
70
|
homepage: https://github.com/cottonwoodcoding/repack
|
71
71
|
licenses:
|
72
72
|
- MIT
|