Sha256: 176c4ce8dedffee835ca691f51e140b0df011ed366dab277732d67be7df5f825
Contents?: true
Size: 591 Bytes
Versions: 2
Compression:
Stored size: 591 Bytes
Contents
module Jekyll 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" else print "Great, Bower is available\n" end print "Resolving dependencies with bower\n" system('bower install') print "Bower dependencies resolved successfully\n" end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
jekyll-bower-1.0.6 | lib/jekyll/bower_plugin.rb |
jekyll-bower-1.0.5 | lib/jekyll/bower_plugin.rb |