docs(core): fix links to documentation (#9520)

This commit is contained in:
Benjamin Cabanes 2022-03-25 15:12:31 -04:00 committed by GitHub
parent e5212ec443
commit dd3d7682b6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 7 additions and 7 deletions

View File

@ -26,7 +26,7 @@ export default async function (tree: Tree) {
This workspace uses Storybook ${storybookVersion} which does not support Webpack 5.
Storybook 6.2+ is required to support Webpack 5.
See our documentation on migrating to Storybook 6:
https://nx.dev/latest/angular/storybook/overview#upgrading-to-storybook-6-using-the-nx-migration-generator
https://nx.dev/storybook/overview-angular#upgrading-to-storybook-6-using-the-nx-migration-generator
`);
throw new Error('Could not migrate to Angular 12');
}

View File

@ -2,7 +2,7 @@
This package will turn your React app into an [Nx workspace](https://nx.dev/). To use this package, your React app must have been generated and kept the structure of [Create-React-App](https://reactjs.org/docs/create-a-new-react-app.html), with files generated either in js/jsx or ts/tsx.
This tool follows the steps described in this [migration guide](https://nx.dev/latest/react/migration/migration-cra), with some enhancements.
This tool follows the steps described in this [migration guide](https://nx.dev/migration/migration-cra), with some enhancements.
It will, essentially, generate a new Nx workspace, and then place your existing CRA React app in the `apps` directory of the Nx workspace, while configuring the Nx workspace as needed.

View File

@ -181,7 +181,7 @@ export async function createNxWorkspaceForReact(options: Record<string, any>) {
`npx nx build ${reactAppName}`,
`npx nx test ${reactAppName}`,
` `,
`https://nx.dev/latest/react/migration/migration-cra#10-try-the-commands`,
`https://nx.dev/getting-started/intro#10-try-the-commands`,
],
});
}

View File

@ -1230,7 +1230,7 @@ const getTargetLogger = (
`TSLint's support is discontinued and the @angular-devkit/build-angular:tslint executor is deprecated.\n` +
'To start using a modern linter tool, please consider replacing TSLint with ESLint. ' +
'You can use the "@nrwl/angular:convert-tslint-to-eslint" generator to automatically convert your projects.\n' +
'For more info, visit https://nx.dev/latest/angular/angular/convert-tslint-to-eslint.';
'For more info, visit https://nx.dev/packages/angular/generators/convert-tslint-to-eslint.';
}
return chalk.bold(chalk.yellow(s));
},

View File

@ -194,7 +194,7 @@ export function splitArgsIntoNxArgsAndOverrides(
)} is not meant to be used for any sizable project or to be used in CI.`,
'',
`${output.dim(
'Learn more about checking only what is affected: https://nx.dev/latest/angular/cli/affected#affected'
'Learn more about checking only what is affected: https://nx.dev/cli/affected'
)}`,
],
});

View File

@ -156,8 +156,8 @@ function webpackFinalPropertyCheck(options: CommonNxStorybookConfig) {
Consider switching to the "webpackFinal" property declared in "main.js" instead.
${
options.uiFramework === '@storybook/react'
? 'https://nx.dev/latest/react/storybook/migrate-webpack-final'
: 'https://nx.dev/latest/angular/storybook/migrate-webpack-final'
? 'https://nx.dev/storybook/migrate-webpack-final-react'
: 'https://nx.dev/storybook/migrate-webpack-final-angular'
}
`
);