- 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 #
170 lines
3.6 KiB
Plaintext
170 lines
3.6 KiB
Plaintext
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
exports[`@nx/remix/plugin non-root project should create nodes 1`] = `
|
|
{
|
|
"projects": {
|
|
"my-app": {
|
|
"root": "my-app",
|
|
"targets": {
|
|
"build": {
|
|
"cache": true,
|
|
"command": "remix build",
|
|
"dependsOn": [
|
|
"^build",
|
|
],
|
|
"inputs": [
|
|
"production",
|
|
"^production",
|
|
{
|
|
"externalDependencies": [
|
|
"@remix-run/dev",
|
|
],
|
|
},
|
|
],
|
|
"options": {
|
|
"cwd": "my-app",
|
|
},
|
|
"outputs": [
|
|
"{workspaceRoot}/my-app/build",
|
|
"{workspaceRoot}/my-app/public/build",
|
|
],
|
|
},
|
|
"dev": {
|
|
"command": "remix dev --manual",
|
|
"options": {
|
|
"cwd": "my-app",
|
|
},
|
|
},
|
|
"serve-static": {
|
|
"command": "remix-serve build/index.js",
|
|
"dependsOn": [
|
|
"build",
|
|
],
|
|
"options": {
|
|
"cwd": "my-app",
|
|
},
|
|
},
|
|
"start": {
|
|
"command": "remix-serve build/index.js",
|
|
"dependsOn": [
|
|
"build",
|
|
],
|
|
"options": {
|
|
"cwd": "my-app",
|
|
},
|
|
},
|
|
"static-serve": {
|
|
"command": "remix-serve build/index.js",
|
|
"dependsOn": [
|
|
"build",
|
|
],
|
|
"options": {
|
|
"cwd": "my-app",
|
|
},
|
|
},
|
|
"tsc": {
|
|
"cache": true,
|
|
"command": "tsc",
|
|
"inputs": [
|
|
"production",
|
|
"^production",
|
|
{
|
|
"externalDependencies": [
|
|
"typescript",
|
|
],
|
|
},
|
|
],
|
|
"options": {
|
|
"cwd": "my-app",
|
|
},
|
|
},
|
|
},
|
|
},
|
|
},
|
|
}
|
|
`;
|
|
|
|
exports[`@nx/remix/plugin root project should create nodes 1`] = `
|
|
{
|
|
"projects": {
|
|
".": {
|
|
"root": ".",
|
|
"targets": {
|
|
"build": {
|
|
"cache": true,
|
|
"command": "remix build",
|
|
"dependsOn": [
|
|
"^build",
|
|
],
|
|
"inputs": [
|
|
"production",
|
|
"^production",
|
|
{
|
|
"externalDependencies": [
|
|
"@remix-run/dev",
|
|
],
|
|
},
|
|
],
|
|
"options": {
|
|
"cwd": ".",
|
|
},
|
|
"outputs": [
|
|
"{workspaceRoot}/build",
|
|
"{workspaceRoot}/public/build",
|
|
],
|
|
},
|
|
"dev": {
|
|
"command": "remix dev --manual",
|
|
"options": {
|
|
"cwd": ".",
|
|
},
|
|
},
|
|
"serve-static": {
|
|
"command": "remix-serve build/index.js",
|
|
"dependsOn": [
|
|
"build",
|
|
],
|
|
"options": {
|
|
"cwd": ".",
|
|
},
|
|
},
|
|
"start": {
|
|
"command": "remix-serve build/index.js",
|
|
"dependsOn": [
|
|
"build",
|
|
],
|
|
"options": {
|
|
"cwd": ".",
|
|
},
|
|
},
|
|
"static-serve": {
|
|
"command": "remix-serve build/index.js",
|
|
"dependsOn": [
|
|
"build",
|
|
],
|
|
"options": {
|
|
"cwd": ".",
|
|
},
|
|
},
|
|
"typecheck": {
|
|
"cache": true,
|
|
"command": "tsc",
|
|
"inputs": [
|
|
"production",
|
|
"^production",
|
|
{
|
|
"externalDependencies": [
|
|
"typescript",
|
|
],
|
|
},
|
|
],
|
|
"options": {
|
|
"cwd": ".",
|
|
},
|
|
},
|
|
},
|
|
},
|
|
},
|
|
}
|
|
`;
|