jekyll-browserify 1.0.0 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +9 -4
- data/lib/jekyll/browserify/version.rb +1 -1
- data/lib/jekyll/converters/browserify.rb +7 -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: bbaf0e2bcac07a0ce7e68b8b38199b2e09eaddb7
|
4
|
+
data.tar.gz: 4fe20d7fff09bad7b68899022e115b9dce9c27f1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a0725d228eddf0671cbc4a11d9d6f9398b7526e88801771f9e7fb9404be796393fff218e57d8ef509d92f7917011eeab5fe4fcb67b2169edb6d720f603b04feb
|
7
|
+
data.tar.gz: 53581f41203ccc1a20a841bf305996445c3d0c661f7cfd92596aaa5133216280dfc1fd9900a9ceac328144882c84b5641e16dcd2f50cb0bd9c1a0e51d888e5f6
|
data/README.md
CHANGED
@@ -48,7 +48,15 @@ browserify:
|
|
48
48
|
~~~~~~~~~~~~~~~~~~~~~~~~~yaml
|
49
49
|
# _config.yaml
|
50
50
|
browserify:
|
51
|
-
|
51
|
+
|
52
|
+
# target exts to convert
|
53
|
+
exts: [".js"]
|
54
|
+
|
55
|
+
# use installed 'browserify'
|
56
|
+
command: "browserify -"
|
57
|
+
|
58
|
+
# execute `npm install` on initialize if true
|
59
|
+
npm_install: false
|
52
60
|
|
53
61
|
# set nvm properties if you want to use with nvm installed automatically
|
54
62
|
nvm:
|
@@ -61,9 +69,6 @@ browserify:
|
|
61
69
|
|
62
70
|
# node version if you specify, or use '.nvmrc' if 'null'
|
63
71
|
node_version: null
|
64
|
-
|
65
|
-
# use installed 'browserify'
|
66
|
-
command: "browserify -"
|
67
72
|
~~~~~~~~~~~~~~~~~~~~~~~~~
|
68
73
|
|
69
74
|
[babel]: https://github.com/babel/babelify
|
@@ -7,7 +7,8 @@ module Jekyll
|
|
7
7
|
def initialize config
|
8
8
|
super
|
9
9
|
@browserify = nil
|
10
|
-
|
10
|
+
|
11
|
+
system "npm install" if npm_install?
|
11
12
|
end
|
12
13
|
|
13
14
|
def matches ext
|
@@ -43,6 +44,11 @@ module Jekyll
|
|
43
44
|
(config("browserify", "exts") || [".js"]).map(&:downcase)
|
44
45
|
end
|
45
46
|
|
47
|
+
def npm_install?
|
48
|
+
b = config("browserify", "npm_install")
|
49
|
+
(b == true) or (b.downcase == "true")
|
50
|
+
end
|
51
|
+
|
46
52
|
def command
|
47
53
|
config("browserify", "command") || "browserify -"
|
48
54
|
end
|