Sha256: a9e517405eb3c9b931dfa7618538d32f76a8060df599c944b4b291bb3b0dc4e8
Contents?: true
Size: 679 Bytes
Versions: 2
Compression:
Stored size: 679 Bytes
Contents
# frozen_string_literal: true require "refinements/struct" module Hanamismith module Builders module Git # Builds project skeleton Git ignore. class Ignore < Rubysmith::Builders::Git::Ignore using Refinements::Struct def call return configuration unless configuration.build_git super builder.call(configuration.merge(template_path: "%project_name%/.gitignore.erb")) .insert_before "tmp\n", <<~CONTENT node_modules public/assets public/assets.json CONTENT configuration end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
hanamismith-0.38.0 | lib/hanamismith/builders/git/ignore.rb |
hanamismith-0.37.0 | lib/hanamismith/builders/git/ignore.rb |