cyborg 0.5.5 → 0.5.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cyborg/plugin/assets/javascripts.rb +6 -2
- data/lib/cyborg/version.rb +1 -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: b7d533894292036156a20865c0c9ee46a006da50
|
4
|
+
data.tar.gz: 9623baf95ba1e56a0baa71077d251e162b6fed5e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: efb7ffd1585fd1284858ffe9930a4876961c40decb41ea81658461f265ab9ff2be4d84cfc79ded5c427e72551ca96d69f6e1e1bb8edab6c4ac5a52a812df62b5
|
7
|
+
data.tar.gz: b85071187ebdf210a818400f062be540529394f1cd1106e7e200ff6be1bdb95b49a45b6e8b01b746723d2b4d67dd91d89614a9e20c94270f2891ef67ffd32526
|
@@ -32,14 +32,18 @@ module Cyborg
|
|
32
32
|
end
|
33
33
|
end
|
34
34
|
|
35
|
+
def npm_path( cmd )
|
36
|
+
File.join Cyborg.gem_path, "node_modules/.bin", cmd
|
37
|
+
end
|
38
|
+
|
35
39
|
def build_command(file)
|
36
40
|
dest = destination(file).sub(/\.js$/,'')
|
37
41
|
options = " -t babelify --standalone #{plugin.name} -o #{dest}.js -d"
|
38
42
|
|
39
43
|
cmd = if Cyborg.production?
|
40
|
-
"browserify #{file} #{options}"
|
44
|
+
npm_path "browserify #{file} #{options}"
|
41
45
|
else
|
42
|
-
"browserifyinc --cachefile #{cache_file(File.basename(dest))} #{file} #{options}"
|
46
|
+
npm_path "browserifyinc --cachefile #{cache_file(File.basename(dest))} #{file} #{options}"
|
43
47
|
end
|
44
48
|
|
45
49
|
if Cyborg.production?
|
data/lib/cyborg/version.rb
CHANGED