feat(graph): enable watch mode by default (#23092)

This commit is contained in:
MaxKless 2024-04-30 17:55:57 +02:00 committed by GitHub
parent 30a3875a0d
commit 73ab6d35ff
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
10 changed files with 11 additions and 10 deletions

View File

@ -163,6 +163,6 @@ Choose whether to view the projects or task graph
Type: `boolean`
Default: `false`
Default: `true`
Watch for changes to project graph and update in-browser

View File

@ -185,6 +185,6 @@ Choose whether to view the projects or task graph
Type: `boolean`
Default: `false`
Default: `true`
Watch for changes to project graph and update in-browser

View File

@ -163,6 +163,6 @@ Choose whether to view the projects or task graph
Type: `boolean`
Default: `false`
Default: `true`
Watch for changes to project graph and update in-browser

View File

@ -185,6 +185,6 @@ Choose whether to view the projects or task graph
Type: `boolean`
Default: `false`
Default: `true`
Watch for changes to project graph and update in-browser

View File

@ -94,7 +94,7 @@ export async function affected(
return await generateGraph(
{
watch: false,
watch: true,
open: true,
view: 'tasks',
targets: nxArgs.targets,

View File

@ -539,7 +539,7 @@ async function startServer(
environmentJs: string,
host: string,
port = 4211,
watchForchanges = false,
watchForchanges = true,
affected: string[] = [],
focus: string = null,
groupByFolder: boolean = false,

View File

@ -173,9 +173,10 @@ async function runPublishOnProjects(
.filter((projectName) =>
projectHasTarget(projectGraph.nodes[projectName], requiredTargetName)
);
await generateGraph(
{
watch: false,
watch: true,
all: false,
open: true,
view: 'tasks',

View File

@ -54,7 +54,7 @@ export async function runMany(
const projectNames = projects.map((t) => t.name);
return await generateGraph(
{
watch: false,
watch: true,
open: true,
view: 'tasks',
all: nxArgs.all,

View File

@ -70,7 +70,7 @@ export async function runOne(
return await generateGraph(
{
watch: false,
watch: true,
open: true,
view: 'tasks',
targets: nxArgs.targets,

View File

@ -310,7 +310,7 @@ export function withDepGraphOptions(yargs: Argv) {
.option('watch', {
describe: 'Watch for changes to project graph and update in-browser',
type: 'boolean',
default: false,
default: true,
})
.option('open', {
describe: 'Open the project graph in the browser.',