feat(core): guide users to view the graph after nx init (#21303)

This commit is contained in:
Colum Ferry 2024-01-25 15:54:55 +00:00 committed by GitHub
parent a1c0434650
commit 8bc8d696e5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -104,6 +104,14 @@ export async function initHandler(options: InitArgs): Promise<void> {
}
);
}
output.log({
title: '👀 Explore the Graph of Your Workspace',
bodyLines: [
`Run "nx graph" to show the graph of the workspace. It will show tasks that you can run with Nx.`,
`Read this guide on exploring the graph: https://nx.dev/core-features/explore-graph`,
],
});
}
const npmPackageToPluginMap: Record<string, string> = {