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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 26983c049298faf3a959506619dd81c66d6fabee
4
- data.tar.gz: d38bdf142bff91a7d799ed763d2de0af0fc55d49
3
+ metadata.gz: 02eb8fb0514984f7548b9b3f3d4e8d82d9e81b6d
4
+ data.tar.gz: 239c40c57fe7c114de6b8425c6634186e2881489
5
5
  SHA512:
6
- metadata.gz: 95f78aa888f05a70444510a81bfe1a1090dd4c5f59724848827eeb4722cb86433e4a35065c5586695141979356b7ba177cd59b25e29f72dc8b106f2997902cd8
7
- data.tar.gz: 5b531de4ede0f68c2a4a7563ed9e0cd0784d96e9bfd06405f8604b7aa34237eb0e64a3836c67189611abb50882b95a5c962983046dd2be42820268d6874f7f22
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 webpack: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.
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
 
@@ -12,14 +12,14 @@ module Repack
12
12
  end
13
13
 
14
14
  config.repack = ActiveSupport::OrderedOptions.new
15
- config.repack.config_file = 'config/repack.config.js'
16
- config.repack.binary = 'node_modules/.bin/repack'
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/repack-dev-server'
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/webpack.rake"
30
+ load "tasks/repack.rake"
31
31
  end
32
32
  end
33
33
  end
@@ -1,3 +1,3 @@
1
1
  module Repack
2
- VERSION = "2.1.4"
2
+ VERSION = "2.1.5"
3
3
  end
@@ -1,9 +1,9 @@
1
- namespace :webpack do
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.webpack.binary)
6
- config_file = ::Rails.root.join(::Rails.configuration.webpack.config_file)
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
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-11 00:00:00.000000000 Z
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/webpack.rake
69
+ - lib/tasks/repack.rake
70
70
  homepage: https://github.com/cottonwoodcoding/repack
71
71
  licenses:
72
72
  - MIT