sewing_kit 0.129.0 → 0.130.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/lib/sewing_kit/version.rb +1 -1
- data/lib/sewing_kit/webpack/dev.rb +1 -0
- data/lib/sewing_kit/webpack/helper.rb +0 -7
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0fdcc87f6ded6c59b84ea7be01819dc8ffa127cff77907535db27a3b1129b734
|
4
|
+
data.tar.gz: e8ed84b2243a54ce366f86529911695c6fb94339f2315b3289052b5a1d5ed392
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 962c94d0fbceadae0b190b957b832e5f92a0994a3e47f15671bfe98ff460e076eabaa4556c82929cf5e04df660aa849bc60decb570090c351456564e1cb80d3c
|
7
|
+
data.tar.gz: 720383ee164b982057f814e599467af8ab387ea1e1bbf8b463f578afaaf427316b23e986f5e38ac83e9eaa9306fa05e3e86217fffae54dc4a00c30aea33aeded
|
data/README.md
CHANGED
@@ -103,13 +103,13 @@ end
|
|
103
103
|
|
104
104
|
For fast tests with consistent results, test front-end components using Jest instead of Rails integration tests.
|
105
105
|
|
106
|
-
Use [`sewing-kit test`](https://github.com/Shopify/sewing-kit/blob/
|
106
|
+
Use [`sewing-kit test`](https://github.com/Shopify/sewing-kit/blob/main/docs/commands/test.md#L3) to run all `.test.tsx` files in the `app/ui` directory. [Jest](https://jestjs.io) is used as a test runner, with customization available via [its sewing-kit plugin](https://github.com/Shopify/sewing-kit/blob/main/docs/plugins/jest.md).
|
107
107
|
|
108
108
|
### Customizing the test environment
|
109
109
|
|
110
110
|
Often you will want to hook up custom polyfills, global mocks, or other logic that needs to run either before the initialization of the test environment, or once for each test suite.
|
111
111
|
|
112
|
-
By default, sewing-kit will look for such test setup files under `/app/ui/tests`. Check out the [documentation](https://github.com/Shopify/sewing-kit/blob/
|
112
|
+
By default, sewing-kit will look for such test setup files under `/app/ui/tests`. Check out the [documentation](https://github.com/Shopify/sewing-kit/blob/main/docs/plugins/jest.md#smart-defaults) for more details.
|
113
113
|
|
114
114
|
### Rails tests
|
115
115
|
|
data/lib/sewing_kit/version.rb
CHANGED
@@ -10,7 +10,6 @@ module SewingKit
|
|
10
10
|
|
11
11
|
Asset = Struct.new(:path, :integrity)
|
12
12
|
|
13
|
-
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/PerceivedComplexity
|
14
13
|
def sewing_kit_assets(entrypoint_name, extension: 'js')
|
15
14
|
return '' unless entrypoint_name.present?
|
16
15
|
|
@@ -20,12 +19,10 @@ module SewingKit
|
|
20
19
|
return [] unless assets && assets[extension]
|
21
20
|
|
22
21
|
dependencies = assets[extension]
|
23
|
-
dependencies.unshift(dll_asset) if serve_development_assets? && extension == 'js'
|
24
22
|
dependencies.map do |raw_asset|
|
25
23
|
Asset.new(raw_asset['path'], raw_asset['integrity'])
|
26
24
|
end
|
27
25
|
end
|
28
|
-
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/PerceivedComplexity
|
29
26
|
|
30
27
|
def sewing_kit_link_tag(*assets)
|
31
28
|
options = assets.extract_options!
|
@@ -82,10 +79,6 @@ module SewingKit
|
|
82
79
|
def raise_unknown_error?(assets)
|
83
80
|
assets.nil? && serve_development_assets?
|
84
81
|
end
|
85
|
-
|
86
|
-
def dll_asset
|
87
|
-
Asset.new('/webpack/assets/dll/vendor.js')
|
88
|
-
end
|
89
82
|
end
|
90
83
|
end
|
91
84
|
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.
|
4
|
+
version: 0.130.0
|
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: 2022-04-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: railties
|
@@ -141,11 +141,11 @@ files:
|
|
141
141
|
- lib/sewing_kit/webpack/server.rb
|
142
142
|
- lib/sewing_kit/webpack/webpack.rb
|
143
143
|
- lib/tasks/sewing_kit.rake
|
144
|
-
homepage: https://github.com/Shopify/sewing-kit/tree/
|
144
|
+
homepage: https://github.com/Shopify/sewing-kit/tree/main/gems/sewing_kit
|
145
145
|
licenses:
|
146
146
|
- MIT
|
147
147
|
metadata:
|
148
|
-
changelog_uri: https://github.com/Shopify/sewing-kit/blob/
|
148
|
+
changelog_uri: https://github.com/Shopify/sewing-kit/blob/main/gems/sewing_kit/CHANGELOG.md
|
149
149
|
allowed_push_host: https://rubygems.org
|
150
150
|
post_install_message:
|
151
151
|
rdoc_options: []
|
@@ -162,7 +162,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
162
162
|
- !ruby/object:Gem::Version
|
163
163
|
version: '0'
|
164
164
|
requirements: []
|
165
|
-
rubygems_version: 3.
|
165
|
+
rubygems_version: 3.2.20
|
166
166
|
signing_key:
|
167
167
|
specification_version: 4
|
168
168
|
summary: Shopify's modern front-end tooling, nicely packaged for Rails
|