Sha256: 4a620c1ef725dad9e86e469fd842f35836989ccef86cead69c3b5c66f95f8127
Contents?: true
Size: 835 Bytes
Versions: 1
Compression:
Stored size: 835 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 target_file = "#{work_dir}/bower.json" File.write(target_file, JSON.pretty_generate(data)) puts "Wrote: #{target_file}" end def create_bowerrc data = { directory: "bower_components" } target_file = "#{work_dir}/.bowerrc" File.write(target_file, JSON.pretty_generate(data)) puts "Wrote: #{target_file}" end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
bower_vendor-0.0.8 | lib/bower_vendor/setup.rb |