Skip to content

Commit

Permalink
Add boilerplate name to the doctor analyse (#1326)
Browse files Browse the repository at this point in the history
  • Loading branch information
JulienMalige authored and kevinvangelder committed Oct 22, 2018
1 parent 95af322 commit 8c62f5b
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/commands/doctor.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,17 @@ module.exports = async function (context) {
// -=-=-=- ignite -=-=-=-
const ignitePath = which('ignite')
const igniteVersion = await run('ignite version', { trim: true })
const igniteJson = read(`${process.cwd()}/ignite/ignite.json`, 'json')
const igniteBoilerplate = igniteJson && igniteJson.boilerplate

info('')
info(colors.cyan('Ignite'))
table([
[column1('ignite'), column2(igniteVersion), column3(ignitePath)]
])
const igniteTable = []
igniteTable.push([column1('ignite'), column2(igniteVersion), column3(ignitePath)])
if (igniteBoilerplate) {
igniteTable.push([column1('boilerplate'), column2(igniteBoilerplate)])
}
table(igniteTable)

// -=-=-=- android -=-=-=-
const androidPath = process.env['ANDROID_HOME']
Expand Down

0 comments on commit 8c62f5b

Please sign in to comment.