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 +5 -5
- data/README.md +9 -0
- data/lib/sewing_kit/railtie.rb +9 -0
- data/lib/sewing_kit/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 96c1cff7a41987f3641dc138c952b10b9ea59e8d35a0d627e55a41e8777aaecf
|
4
|
+
data.tar.gz: 5dd9d8b3b59aeb0a44951b489672f2d31ed78dff4642dc3df633b057a7b081bd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
data/lib/sewing_kit/railtie.rb
CHANGED
@@ -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'
|
data/lib/sewing_kit/version.rb
CHANGED
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.
|
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:
|
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
|
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
|