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`
|
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
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
@ -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,
|
||||||
|
|||||||
@ -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,
|
||||||
|
|||||||
@ -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',
|
||||||
|
|||||||
@ -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,
|
||||||
|
|||||||
@ -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,
|
||||||
|
|||||||
@ -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.',
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user