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 +4 -4
- data/lib/sewing_kit/version.rb +1 -1
- data/lib/sewing_kit/webpack/dev.rb +14 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a7cc8acdd9a3ae14f572f3b9f403e8152e805931
|
4
|
+
data.tar.gz: f836bb3b228af0f0f98d243fb7665a52bb4568a3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a3ea45f34e1d688d50d4e14e64bed8c7fa8f0d678b5d615c1efd38948be1ab38247c9a0a797740e09621dd1dbe522372838ecf2cbd50ebdb491e1a42370818f2
|
7
|
+
data.tar.gz: 7ed221b39eeeb80d1dcc43d7742983776d0d5d5297050bf756c8ddc8e8d67b79fee39e72c0d8b1e2d55f00412531d66f1c3d7ad643319725cf0636cacd25fb54
|
data/lib/sewing_kit/version.rb
CHANGED
@@ -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
|
-
|
33
|
+
sewing_kit_bin,
|
21
34
|
'dev',
|
22
35
|
chdir: Rails.root.to_s,
|
23
36
|
out: $stdout,
|