Sha256: a21129e3262d8fa6fa9a803e2b0e3df63dff9fa8da0b1848373589453810e80e

Contents?: true

Size: 610 Bytes

Versions: 16

Compression:

Stored size: 610 Bytes

Contents

class Recipes::Yarn < Rails::AppBuilder
  def create
    template '../assets/package.json', 'package.json' unless get(:front_end)
    template '../assets/bin/update.erb', 'bin/update', force: true
    application "config.assets.paths << Rails.root.join('node_modules')"
    append_to_file ".gitignore", "node_modules/\n"

    if get(:heroku)
      node_buildpack_url = 'https://github.com/heroku/heroku-buildpack-nodejs'
      insert_point = 'https://github.com/platanus/heroku-buildpack-ruby-version.git'
      inject_into_file '.buildpacks', "#{node_buildpack_url}\n", before: insert_point
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
potassium-6.7.0 lib/potassium/recipes/yarn.rb
potassium-6.6.0 lib/potassium/recipes/yarn.rb
potassium-6.5.0 lib/potassium/recipes/yarn.rb
potassium-6.4.0 lib/potassium/recipes/yarn.rb
potassium-6.3.0 lib/potassium/recipes/yarn.rb
potassium-6.2.0 lib/potassium/recipes/yarn.rb
potassium-6.1.0 lib/potassium/recipes/yarn.rb
potassium-6.0.0 lib/potassium/recipes/yarn.rb
potassium-5.2.3 lib/potassium/recipes/yarn.rb
potassium-5.2.2 lib/potassium/recipes/yarn.rb
potassium-5.2.1 lib/potassium/recipes/yarn.rb
potassium-5.2.0 lib/potassium/recipes/yarn.rb
potassium-5.1.4 lib/potassium/recipes/yarn.rb
potassium-5.1.3 lib/potassium/recipes/yarn.rb
potassium-5.1.2 lib/potassium/recipes/yarn.rb
potassium-5.1.1 lib/potassium/recipes/yarn.rb