jekyll-bower 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/lib/jekyll_bower.rb +28 -0
- metadata +44 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 544525be020e785c5bcb28fe3aba916363f9893c
|
4
|
+
data.tar.gz: d22869400f9115da3c53882e08c7c3e1e4ab1aed
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 989207a05963d022bf6e1a3a5004eaab7c8416578481bdd2bc96ab167545c489e7ef1b2fc5aa1721cb9380ec9ac443945858c9187d4b94404fad8938e14d48df
|
7
|
+
data.tar.gz: a5e72b42c3e43b786ff69109458587e0465dc40c62d87fa7fa0210258a43533fa2a9b830098e563fcfea849d45469adf2ed06d60d0b387fe67eda82e075b1d83
|
data/lib/jekyll_bower.rb
ADDED
@@ -0,0 +1,28 @@
|
|
1
|
+
# Generate script code for Google Analytics with Liquid Tag
|
2
|
+
require 'jekyll'
|
3
|
+
|
4
|
+
module JekyllPlugins
|
5
|
+
|
6
|
+
class Bower
|
7
|
+
def initialize()
|
8
|
+
print "Checking if NPM is available\n"
|
9
|
+
fail unless system('which npm')
|
10
|
+
print "Great, NPM is available\n"
|
11
|
+
print "Checkin if Bower is available\n"
|
12
|
+
unless system('which bower')
|
13
|
+
print "Bower not available\n"
|
14
|
+
print "Installing bower\n"
|
15
|
+
system('npm install -g bower')
|
16
|
+
print "Installation completed\n"
|
17
|
+
end
|
18
|
+
print "Resolving dependencies with bower\n"
|
19
|
+
system('bower install')
|
20
|
+
print "Bower dependencies resolved successfully\n"
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
24
|
+
|
25
|
+
# Register Jekyll Site Post Read hook of Bower plugin
|
26
|
+
Jekyll::Hooks.register :site, :post_read do |jekyll| # jekyll here acts as site global object
|
27
|
+
JekyllPlugins::Bower.new()
|
28
|
+
end
|
metadata
ADDED
@@ -0,0 +1,44 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: jekyll-bower
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Rohan Sakhale
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2016-09-18 00:00:00.000000000 Z
|
12
|
+
dependencies: []
|
13
|
+
description: This plugin helps install bower that helps resolve JavaScript dependencies
|
14
|
+
email: rohansakhale@gmail.com
|
15
|
+
executables: []
|
16
|
+
extensions: []
|
17
|
+
extra_rdoc_files: []
|
18
|
+
files:
|
19
|
+
- lib/jekyll_bower.rb
|
20
|
+
homepage: https://gitlab.com/SaiAshirwadInformatia/Jekyll-Bower
|
21
|
+
licenses:
|
22
|
+
- MIT
|
23
|
+
metadata: {}
|
24
|
+
post_install_message:
|
25
|
+
rdoc_options: []
|
26
|
+
require_paths:
|
27
|
+
- lib
|
28
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
29
|
+
requirements:
|
30
|
+
- - ">="
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '0'
|
33
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
34
|
+
requirements:
|
35
|
+
- - ">="
|
36
|
+
- !ruby/object:Gem::Version
|
37
|
+
version: '0'
|
38
|
+
requirements: []
|
39
|
+
rubyforge_project:
|
40
|
+
rubygems_version: 2.4.5
|
41
|
+
signing_key:
|
42
|
+
specification_version: 4
|
43
|
+
summary: This plugin helps install bower that helps resolve JavaScript dependencies
|
44
|
+
test_files: []
|