lib/lita/cli.rb in lita-4.1.0 vs lib/lita/cli.rb in lita-4.2.0
- old
+ new
@@ -170,9 +170,12 @@
"#{target}/spec/lita/#{namespace}/#{name}_spec.rb",
config
)
template("plugin/spec/spec_helper.tt", "#{target}/spec/spec_helper.rb", config)
template("plugin/locales/en.yml.tt", "#{target}/locales/en.yml", config)
+ if config[:plugin_type] == "handler"
+ copy_file("plugin/templates/gitkeep", "#{target}/templates/.gitkeep")
+ end
copy_file("plugin/Gemfile", "#{target}/Gemfile")
template("plugin/gemspec.tt", "#{target}/#{gem_name}.gemspec", config)
copy_file("plugin/gitignore", "#{target}/.gitignore")
copy_file("plugin/travis.yml", "#{target}/.travis.yml") if travis
template("plugin/LICENSE.tt", "#{target}/LICENSE", config)