Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move to Listr2 for test-project #6506

Merged
merged 1 commit into from Oct 4, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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