sewing_kit 0.124.0 → 0.125.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c3a05925e10dba45f77fcf36f23bf1f0d777ab6993f7994f3b216169dde31dd7
4
- data.tar.gz: ca891a9517eaca9dbcacef5c838c626e587a1111f9a58105b12abf3e8adbcab4
3
+ metadata.gz: 564314c05cfa0473a306cf5fbb6564a6e1761705009aa0e1db2510a0133ab3ff
4
+ data.tar.gz: 50694443b9a1ef590f2968186864bdaedca0c0537fedde76be889a1297ff7770
5
5
  SHA512:
6
- metadata.gz: b297f9c114a00b3925933df21d8109d04e0123b6234790c25bc136e5393543f1f8cc04d683b47f86d0999c7bf344a679fe9cb111e5add3f75e5a645d4bef3940
7
- data.tar.gz: '06347349fc9a1f1c5ef451205d9c28a7005e528282540f42c43e605ee4c6112d51c881171831100551ab793e30210b4c4d9e8075fd08d67ecfc417a5be44ea73'
6
+ metadata.gz: 67d879b2d836ed5a77e71e7950c9179451b644fc65140265efb28c179d576d153584da2b9f7d28809a8cdfe45ff910a2cf8aa58502063ae2fabf34a0e9a63209
7
+ data.tar.gz: d8bef03cd01d4b708a8dd956769c8a42cd008c41f5d9dbf3a7275cb6ed0eb351a2ac8ce1b87b8c2895df06916b1720a81b2364fbfcb07f6a21f3ba2f50f58541
@@ -18,6 +18,11 @@ module SewingKit
18
18
  gsub_file(package_json_path, "\${application_name}", @application_name)
19
19
  end
20
20
 
21
+ def install_js_dependencies
22
+ say "Installing react and types dependencies"
23
+ system("yarn add @shopify/sewing-kit") unless Rails.env.test?
24
+ end
25
+
21
26
  def create_sk_config
22
27
  sk_config_path = "config/sewing-kit.config.ts"
23
28
 
@@ -1,11 +1,11 @@
1
1
  /* eslint-env node */
2
2
 
3
- import {Plugins} from '@shopify/sewing-kit';
3
+ import {Plugins, Env} from '@shopify/sewing-kit';
4
4
 
5
- export default function sewingKitConfig(plugins: Plugins) {
5
+ export default function sewingKitConfig(plugins: Plugins, env: Env) {
6
6
  return {
7
- name: "${application_name}",
8
- plugins: [
9
- ],
7
+ name: '${application_name}',
8
+ // remove cdn plugin when using dev
9
+ plugins: [plugins.cdn(env.isDevelopment ? 'http://localhost:8080/webpack/assets/' : undefined)],
10
10
  };
11
11
  }
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module SewingKit
3
- VERSION = "0.124.0"
3
+ VERSION = "0.125.0"
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.124.0
4
+ version: 0.125.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: 2020-06-10 00:00:00.000000000 Z
11
+ date: 2020-06-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties