Sha256: 0835dd690d10dbe12943e57d02e26e5d5acad85a05524e6b2c36e91ea0ecebf0
Contents?: true
Size: 699 Bytes
Versions: 1
Compression:
Stored size: 699 Bytes
Contents
module BowerVendor class Setup < Base def execute create_bowerrc create_bower_json end def create_bower_json data = { name: 'autogenerated', dependencies: { }, resolutions: { }, } vendors.each do |vendor_key, vendor| version = vendor['version'] data[:dependencies][vendor_key] = version data[:resolutions][vendor_key] = version end File.write("#{work_dir}/bower.json", JSON.pretty_generate(data)) end def create_bowerrc data = { directory: "bower_components" } File.write("#{work_dir}/.bowerrc", JSON.pretty_generate(data)) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
bower_vendor-0.0.7 | lib/bower_vendor/setup.rb |