Skip to content

Commit

Permalink
Report what template we are creating an app from
Browse files Browse the repository at this point in the history
  • Loading branch information
onbjerg committed Nov 15, 2017
1 parent 1eaaccb commit 8f68ca5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/handle.js
Expand Up @@ -37,10 +37,12 @@ const handlers = {
react: 'aragon/aragon-react-boilerplate'
}
if (aliasedTemplates[template]) template = aliasedTemplates[template]


// Clone the template into the directory
// TODO: Somehow write name to `manifest.json` in template?
const basename = name.split('.')[0]
reporter.info(`Cloning ${template} into ${basename}...`)
clone(`https://github.com/${template}`, basename, { shallow: true }, () => {
reporter.info(`Created new module ${name} in ${basename}`)
})
Expand Down

0 comments on commit 8f68ca5

Please sign in to comment.