Skip to content

Commit

Permalink
just call the cli inside existing repo
Browse files Browse the repository at this point in the history
  • Loading branch information
duncdrum committed Jul 16, 2018
1 parent b1d3f6c commit ca412c7
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions generators/app/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -846,14 +846,15 @@ module.exports = class extends Generator {
// TODO: conditionally run polymer-cli init
// TODO: conditionally gulp watch
end () {
if (this.props.apptype[0] === 'polymer') {
this.spawnCommandSync('polymer', ['init'])
// this.props.generator[1]
}
if (this.props.github) {
this.spawnCommandSync('git', ['init'])
this.spawnCommandSync('git', ['add', '--all'])
this.spawnCommandSync('git', ['commit', '-m', '\'initial scaffolding by Yeoman\''])
}
if (this.props.apptype[0] === 'polymer') {
this.spawnCommandSync('polymer', ['init', this.props.generator[2]])
}
this.spawnCommandSync('ant', '-q')
console.log(yosay('I believe we\'re done here.'))
}
Expand Down

0 comments on commit ca412c7

Please sign in to comment.