sewing_kit 0.124.0 → 0.125.0
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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 564314c05cfa0473a306cf5fbb6564a6e1761705009aa0e1db2510a0133ab3ff
|
4
|
+
data.tar.gz: 50694443b9a1ef590f2968186864bdaedca0c0537fedde76be889a1297ff7770
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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:
|
8
|
-
|
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
|
}
|
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.
|
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-
|
11
|
+
date: 2020-06-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: railties
|