Skip to content

Commit

Permalink
Removed prompt in caa for installing dependencies (#1408)
Browse files Browse the repository at this point in the history
  • Loading branch information
eternauta1337 authored Feb 7, 2020
1 parent 61b8616 commit 6fe5bf5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 16 deletions.
1 change: 0 additions & 1 deletion packages/create-aragon-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@
"git-clone": "^0.1.0",
"inquirer": "^7.0.4",
"listr": "^0.14.3",
"listr-input": "^0.2.0",
"listr-silent-renderer": "^1.1.1",
"listr-update-renderer": "^0.5.0",
"listr-verbose-renderer": "^0.6.0",
Expand Down
21 changes: 6 additions & 15 deletions packages/create-aragon-app/src/commands/create-aragon-app.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
const TaskList = require('listr')
const input = require('listr-input')
const execa = require('execa')
const inquirer = require('inquirer')
const { promisify } = require('util')
Expand Down Expand Up @@ -145,21 +144,13 @@ exports.handler = async function({
enabled: () => !templateUrl.includes('your-first-aragon-app'),
},
{
title: 'Install package dependencies?',
title: 'Installing package dependencies',
enabled: () => install,
task: async (ctx, task) =>
input('Enter "yes" to run `npm install` now:', {
default: 'yes',
validate: wantsToInstallDeps =>
wantsToInstallDeps === 'yes' || wantsToInstallDeps === 'no',
done: async wantsToInstallDeps => {
if (wantsToInstallDeps === 'yes') {
task.output =
'Installing package dependencies... (might take a couple of minutes)'
await installDeps(projectPath, task)
}
},
}),
task: async (ctx, task) => {
task.output =
'Installing package dependencies... (might take a couple of minutes)'
await installDeps(projectPath, task)
},
},
{
title: 'Check IPFS',
Expand Down

0 comments on commit 6fe5bf5

Please sign in to comment.