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` Type: `boolean`
Default: `false` Default: `true`
Watch for changes to project graph and update in-browser 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` Type: `boolean`
Default: `false` Default: `true`
Watch for changes to project graph and update in-browser 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` Type: `boolean`
Default: `false` Default: `true`
Watch for changes to project graph and update in-browser 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` Type: `boolean`
Default: `false` Default: `true`
Watch for changes to project graph and update in-browser Watch for changes to project graph and update in-browser

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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