Sha256: 7fdaf8cb088e5830895372290b0c52c2ae3699dc241f3da9f6998111fb5a8bf7
Contents?: true
Size: 815 Bytes
Versions: 1
Compression:
Stored size: 815 Bytes
Contents
# Generate script code for Google Analytics with Liquid Tag require 'jekyll' module JekyllPlugins class Bower def initialize() print "Checking if NPM is available\n" fail unless system('which npm') print "Great, NPM is available\n" print "Checkin if Bower is available\n" unless system('which bower') print "Bower not available\n" print "Installing bower\n" system('npm install -g bower') print "Installation completed\n" end print "Resolving dependencies with bower\n" system('bower install') print "Bower dependencies resolved successfully\n" end end end # Register Jekyll Site Post Read hook of Bower plugin Jekyll::Hooks.register :site, :post_read do |jekyll| # jekyll here acts as site global object JekyllPlugins::Bower.new() end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
jekyll-bower-1.0.0 | lib/jekyll_bower.rb |