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