Skip to content

Commit

Permalink
Add new template for tutorial (#389)
Browse files Browse the repository at this point in the history
* Include tutorial template alias

* Remove deprecation warning
  • Loading branch information
0xGabi authored Mar 11, 2019
1 parent 785bc06 commit 5ebfcc6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/create-aragon-app/src/commands/create-aragon-app.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ exports.builder = yargs => {
bare: 'aragon/aragon-bare-boilerplate',
react: 'aragon/aragon-react-boilerplate',
'react-kit': 'aragon/aragon-react-kit-boilerplate',
tutorial: 'aragon/your-first-aragon-app',
}

if (!tmpl.includes('/')) {
Expand Down Expand Up @@ -67,6 +68,7 @@ exports.handler = function({ reporter, name, template, silent, debug }) {
task.output = 'Initiliazing arapp.json and removing Git repository'
await prepareTemplate(basename, name)
},
enabled: () => !template.includes('your-first-aragon-app'),
},
{
title: 'Installing package dependencies',
Expand All @@ -78,8 +80,5 @@ exports.handler = function({ reporter, name, template, silent, debug }) {

return tasks.run().then(() => {
reporter.success(`Created new application ${name} in ${basename}.`)
reporter.info(
`Use of \`aragon init\` is deprecated and has been replaced with \`npx create-aragon-app\`.`
)
})
}

0 comments on commit 5ebfcc6

Please sign in to comment.