sewing_kit 0.29.1 → 0.29.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
- SHA1:
3
- metadata.gz: d23f8144c067f32539e07da4cb8e106f70f8eeb4
4
- data.tar.gz: 55e53bf2912ae6059099c9a0ebcbc7bcd94353cc
2
+ SHA256:
3
+ metadata.gz: 96c1cff7a41987f3641dc138c952b10b9ea59e8d35a0d627e55a41e8777aaecf
4
+ data.tar.gz: 5dd9d8b3b59aeb0a44951b489672f2d31ed78dff4642dc3df633b057a7b081bd
5
5
  SHA512:
6
- metadata.gz: d45d0879e97f5c38f9d76a7c3f32bb1d7703a5792cb73c78cef0351255e8acbd7a1bb7c5c104b34c26401adcfcf0fbfd4851ed4ea9d16c76ca7f394877764c33
7
- data.tar.gz: bd33f6fa33df9f136ffacb4ca02a6fb103ee40388e0bb9e88de999109ba02d5b56de1078ddbe5732a9e8f89e28ce6c542dbd28301e8b94eafa578faed1dae91b
6
+ metadata.gz: 97effd3933fafd4762b845974196a99f64855ec58279a7414cd811f146fe3d8bc182e3225f698d48a1dfd5d4ccba587bac8e841a3429f501d63c21f65c2563ca
7
+ data.tar.gz: 16cb55ae8a57c3339aa5383de26d66ed5921ee8af2d19a23bfa2da2c5bdd7854d2e74cf1e04909ca90c3641a238167e4017c1fcf992dbff0479155c6faeb2afd
data/README.md CHANGED
@@ -99,3 +99,12 @@ Minimally, it is required that the project does not have its own `babel-*` libra
99
99
  ## FAQ
100
100
  ### How can I fix production builds that are failing due to missing devDependencies?
101
101
  By moving everything into `package.json#dependencies`. This is necessary because Rails 5.2 prunes `devDependencies` during asset compilation.
102
+
103
+ ### How can I test a production verison of my changes?
104
+ Ideally, by deploying to a `staging` environment. If that is not possible, a production-like local development experience is available via:
105
+ ```sh
106
+ NODE_ENV=production bundle exec rake assets:precompile
107
+ NODE_ENV=production SK_SIMULATE_PRODUCTION=1 dev run
108
+ ```
109
+
110
+ Note that code changes will not be automatically recompiled in this state. After verifying production behaviour, run `bundle exec rake assets:clobber` to get back to development mode.
@@ -1,6 +1,15 @@
1
1
  # frozen_string_literal: true
2
2
  require 'rails'
3
3
  require 'rails/railtie'
4
+ begin
5
+ # Force assets:precompile to be defined before sewing_kit's railtie tries to
6
+ # extend it.
7
+ require "sprockets/railtie" if defined? Rails
8
+ # rubocop:disable Lint/HandleExceptions
9
+ rescue
10
+ #
11
+ end
12
+ # rubocop:enable Lint/HandleExceptions
4
13
  require 'sewing_kit/webpack/compiler'
5
14
  require 'sewing_kit/webpack/helper'
6
15
  require 'sewing_kit/webpack/dev'
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module SewingKit
3
- VERSION = "0.29.1"
3
+ VERSION = "0.29.2"
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sewing_kit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.29.1
4
+ version: 0.29.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Sauve
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-08-24 00:00:00.000000000 Z
11
+ date: 2019-04-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties
@@ -121,7 +121,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
121
121
  version: '0'
122
122
  requirements: []
123
123
  rubyforge_project:
124
- rubygems_version: 2.6.14
124
+ rubygems_version: 2.7.6
125
125
  signing_key:
126
126
  specification_version: 4
127
127
  summary: Shopify's modern front-end tooling, nicely packaged for Rails