Skip to content
This repository has been archived by the owner on Jan 29, 2023. It is now read-only.

Commit

Permalink
feat: add LICENSE if salesforce repo + mit
Browse files Browse the repository at this point in the history
  • Loading branch information
jdx committed Feb 15, 2018
1 parent bd0fc8e commit 94847e5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/generators/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,9 @@ class App extends Generator {
this.fs.copyTpl(this.templatePath('README.md.ejs'), this.destinationPath('README.md'), this)
this.fs.copyTpl(this.templatePath('circle.yml.ejs'), this.destinationPath('.circleci/config.yml'), this)
this.fs.copyTpl(this.templatePath('appveyor.yml.ejs'), this.destinationPath('appveyor.yml'), this)
if (this.pjson.license === 'MIT' && (this.pjson.repository.startsWith('oclif') || this.pjson.repository.startsWith('heroku'))) {
this.fs.copyTpl(this.templatePath('LICENSE.mit'), this.destinationPath('LICENSE'), this)
}

// git
// if (this.fromScratch) this.spawnCommandSync('git', ['init'])
Expand Down

0 comments on commit 94847e5

Please sign in to comment.