sewing_kit 0.7.0 → 0.7.1

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
  SHA1:
3
- metadata.gz: 414255f60aa685249721e994b55a325c2651c46a
4
- data.tar.gz: e30a4f36e0b77439df7f0195b8332716b464e712
3
+ metadata.gz: a7cc8acdd9a3ae14f572f3b9f403e8152e805931
4
+ data.tar.gz: f836bb3b228af0f0f98d243fb7665a52bb4568a3
5
5
  SHA512:
6
- metadata.gz: 3eaed1acd08aeb49ca206c5e8f324bdff9b5e3f8d457771959122e51716cf3fda9e0ab1fdd4f6695f9eec51f2e17938baf17994ca20601bb5dde539789c9adaa
7
- data.tar.gz: 0d312b594a84f4de70e9a73712ca8dd07e69ae7f16452849b16f24cfdee8b0b9b8ce5491af2caa7a065fb2cd9a1d99bda40680467338bbb76b79508baf8ad29f
6
+ metadata.gz: a3ea45f34e1d688d50d4e14e64bed8c7fa8f0d678b5d615c1efd38948be1ab38247c9a0a797740e09621dd1dbe522372838ecf2cbd50ebdb491e1a42370818f2
7
+ data.tar.gz: 7ed221b39eeeb80d1dcc43d7742983776d0d5d5297050bf756c8ddc8e8d67b79fee39e72c0d8b1e2d55f00412531d66f1c3d7ad643319725cf0636cacd25fb54
@@ -1,3 +1,3 @@
1
1
  module SewingKit
2
- VERSION = "0.7.0"
2
+ VERSION = "0.7.1"
3
3
  end
@@ -1,5 +1,15 @@
1
1
  module SewingKit
2
2
  module Webpack
3
+ class NodeSewingKitNotInstalled < StandardError
4
+ def initialize()
5
+ super(
6
+ "sewing-kit is not available. " +
7
+ "Please add `@shopify/sewing-kit` to package.json's `devDependencies`, " +
8
+ "and run `yarn install`."
9
+ )
10
+ end
11
+ end
12
+
3
13
  class Dev
4
14
  attr_accessor :pid
5
15
 
@@ -11,13 +21,16 @@ module SewingKit
11
21
  private
12
22
 
13
23
  def spawn
24
+ sewing_kit_bin = 'node_modules/.bin/sewing-kit'
25
+ raise NodeSewingKitNotInstalled.new unless File.exist?(sewing_kit_bin)
26
+
14
27
  Kernel.spawn(
15
28
  {
16
29
  'NODE_ENV' => 'development',
17
30
  'BLUEBIRD_DEBUG' => '0',
18
31
  'BLUEBIRD_LONG_STACK_TRACES' => '0',
19
32
  },
20
- 'node_modules/.bin/sewing-kit',
33
+ sewing_kit_bin,
21
34
  'dev',
22
35
  chdir: Rails.root.to_s,
23
36
  out: $stdout,
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sewing_kit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Sauve