- feat(devkit): add util for determining the e2e web server info - feat(vite): add util for determining the e2e web server info - feat(webpack): add util for determining the e2e web server info - fix(webpack): allow port override - fix(devkit): e2e web server info util should handle target defaults - feat(webpack): export the e2e web server info utils - fix(vite): rename util - fix(devkit): util should determine the devTarget for cypress - fix(react): improve accuracy of e2e project generation <!-- Please make sure you have read the submission guidelines before posting an PR --> <!-- https://github.com/nrwl/nx/blob/master/CONTRIBUTING.md#-submitting-a-pr --> <!-- Please make sure that your commit message follows our format --> <!-- Example: `fix(nx): must begin with lowercase` --> <!-- If this is a particularly complex change or feature addition, you can request a dedicated Nx release for this pull request branch. Mention someone from the Nx team or the `@nrwl/nx-pipelines-reviewers` and they will confirm if the PR warrants its own release for testing purposes, and generate it for you if appropriate. --> ## Current Behavior <!-- This is the behavior we have today --> The logic for finding the correct targets and web addresses to use when setting up e2e projects is flawed and missing some key considerations. ## Expected Behavior <!-- This is the behavior we should expect with the changes in this PR --> The logic is accurate and usage is simplified across plugins Projects: - [x] Angular - [x] Expo - [x] Next - [x] Nuxt - [x] Vue - [x] Web - [x] Remix - [x] React - [x] React Native ## Related Issue(s) <!-- Please link the issue being fixed so it gets closed when this is merged. --> Fixes #
41 lines
2.0 KiB
TypeScript
41 lines
2.0 KiB
TypeScript
import { configurationGenerator } from './src/generators/configuration/configuration';
|
|
import { NxAppWebpackPlugin } from './src/plugins/nx-webpack-plugin/nx-app-webpack-plugin';
|
|
import { NxTsconfigPathsWebpackPlugin as _NxTsconfigPathsWebpackPlugin } from './src/plugins/nx-typescript-webpack-plugin/nx-tsconfig-paths-webpack-plugin';
|
|
import { convertConfigToWebpackPluginGenerator } from './src/generators/convert-config-to-webpack-plugin/convert-config-to-webpack-plugin';
|
|
import { useLegacyNxPlugin } from './src/plugins/use-legacy-nx-plugin/use-legacy-nx-plugin';
|
|
|
|
export {
|
|
configurationGenerator,
|
|
convertConfigToWebpackPluginGenerator,
|
|
useLegacyNxPlugin,
|
|
};
|
|
|
|
// Exported for backwards compatibility in case a plugin is using the old name.
|
|
/** @deprecated Use `configurationGenerator` instead. */
|
|
export const webpackProjectGenerator = configurationGenerator;
|
|
|
|
// TODO(v20): Remove this in favor of deep imports in order to load configs faster (150-200ms faster).
|
|
/** @deprecated Use NxAppWebpackPlugin from `@nx/webpack/app-plugin` instead. */
|
|
export const NxWebpackPlugin = NxAppWebpackPlugin;
|
|
/** @deprecated Use NxTsconfigPathsWebpackPlugin from `@nx/webpack/tsconfig-paths-plugin` instead. */
|
|
export const NxTsconfigPathsWebpackPlugin = _NxTsconfigPathsWebpackPlugin;
|
|
|
|
export * from './src/utils/create-copy-plugin';
|
|
export * from './src/utils/config';
|
|
export { webpackInitGenerator } from './src/generators/init/init';
|
|
export type { WebDevServerOptions } from './src/executors/dev-server/schema';
|
|
export * from './src/executors/dev-server/dev-server.impl';
|
|
export * from './src/executors/webpack/lib/normalize-options';
|
|
export type {
|
|
WebpackExecutorOptions,
|
|
NormalizedWebpackExecutorOptions,
|
|
AssetGlobPattern,
|
|
FileReplacement,
|
|
} from './src/executors/webpack/schema';
|
|
export * from './src/executors/webpack/webpack.impl';
|
|
export * from './src/utils/get-css-module-local-ident';
|
|
export * from './src/utils/with-nx';
|
|
export * from './src/utils/with-web';
|
|
export * from './src/utils/module-federation/public-api';
|
|
export * from './src/utils/e2e-web-server-info-utils';
|