Skip to content

Commit

Permalink
Move to Listr2 for test-project (#6506)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobbe committed Oct 4, 2022
1 parent 38b5e80 commit 176c1fb
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 345 deletions.
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -86,7 +86,7 @@
"jest-runner-tsd": "4.0.0",
"jscodeshift": "0.13.1",
"lerna": "5.5.4",
"listr": "0.14.3",
"listr2": "5.0.5",
"lodash.template": "4.5.0",
"make-dir-cli": "3.0.0",
"msw": "0.47.3",
Expand Down
8 changes: 4 additions & 4 deletions tasks/test-project/tasks.js
Expand Up @@ -3,8 +3,7 @@ const fs = require('fs')
const path = require('path')

const execa = require('execa')
const Listr = require('listr')
const VerboseRenderer = require('listr-verbose-renderer')
const Listr = require('listr2').Listr

const { getExecaOptions, applyCodemod } = require('./util')

Expand Down Expand Up @@ -370,7 +369,7 @@ async function webTasks(outputPath, { linkWithLatestFwBuild, verbose }) {
],
{
exitOnError: true,
renderer: verbose && VerboseRenderer,
renderer: verbose && 'verbose',
}
)
}
Expand Down Expand Up @@ -583,7 +582,8 @@ async function apiTasks(outputPath, { verbose, linkWithLatestFwBuild }) {
],
{
exitOnError: true,
renderer: verbose && VerboseRenderer,
renderer: verbose && 'verbose',
renderOptions: { collapse: false },
}
)
}
Expand Down
11 changes: 5 additions & 6 deletions tasks/test-project/test-project
Expand Up @@ -5,10 +5,11 @@ const fs = require('fs')
const os = require('os')
const path = require('path')

const chalk = require('chalk')
const execa = require('execa')
const fse = require('fs-extra')
const Listr = require('listr')
const VerboseRenderer = require('listr-verbose-renderer')
const Listr = require('listr2').Listr
const rimraf = require('rimraf')
const { hideBin } = require('yargs/helpers')
const yargs = require('yargs/yargs')

Expand All @@ -23,9 +24,6 @@ const {
confirmNoFixtureNoLink,
} = require('./util')

const chalk = require('chalk')
const rimraf = require('rimraf')

const args = yargs(hideBin(process.argv))
.usage('Usage: $0 <project directory> [option]')
.option('typescript', {
Expand Down Expand Up @@ -434,7 +432,8 @@ const globalTasks = () =>
],
{
exitOnError: true,
renderer: verbose && VerboseRenderer,
renderer: verbose && 'verbose',
renderOptions: { collapse: false },
}
)

Expand Down

0 comments on commit 176c1fb

Please sign in to comment.