feat(graph): enable watch mode by default (#23092)
This commit is contained in:
parent
30a3875a0d
commit
73ab6d35ff
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
@ -94,7 +94,7 @@ export async function affected(
|
||||
|
||||
return await generateGraph(
|
||||
{
|
||||
watch: false,
|
||||
watch: true,
|
||||
open: true,
|
||||
view: 'tasks',
|
||||
targets: nxArgs.targets,
|
||||
|
||||
@ -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,
|
||||
|
||||
@ -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',
|
||||
|
||||
@ -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,
|
||||
|
||||
@ -70,7 +70,7 @@ export async function runOne(
|
||||
|
||||
return await generateGraph(
|
||||
{
|
||||
watch: false,
|
||||
watch: true,
|
||||
open: true,
|
||||
view: 'tasks',
|
||||
targets: nxArgs.targets,
|
||||
|
||||
@ -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.',
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user