Skip to content

Commit 55bc628

Browse files
author
John Doe
committed
chore: refine targets 3
1 parent 454f986 commit 55bc628

File tree

8 files changed

+61
-29
lines changed

8 files changed

+61
-29
lines changed

e2e/ci-e2e/project.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,12 @@
55
"projectType": "application",
66
"targets": {
77
"lint": {},
8-
"e2e": {}
8+
"e2e": {
9+
"executor": "@nx/vite:test",
10+
"options": {
11+
"configFile": "{projectRoot}/vitest.e2e.config.ts"
12+
}
13+
}
914
},
1015
"implicitDependencies": ["cli", "ci"],
1116
"tags": ["scope:tooling", "type:e2e"]

e2e/cli-e2e/project.json

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,15 @@
33
"$schema": "../../node_modules/nx/schemas/project-schema.json",
44
"sourceRoot": "e2e/cli-e2e/src",
55
"projectType": "application",
6-
"tags": ["scope:core", "scope:plugin", "type:e2e"],
7-
"implicitDependencies": ["cli"],
86
"targets": {
97
"lint": {},
10-
"e2e": {}
11-
}
8+
"e2e": {
9+
"executor": "@nx/vite:test",
10+
"options": {
11+
"configFile": "{projectRoot}/vitest.e2e.config.ts"
12+
}
13+
}
14+
},
15+
"implicitDependencies": ["cli"],
16+
"tags": ["scope:core", "scope:plugin", "type:e2e"]
1217
}

e2e/create-cli-e2e/project.json

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,16 @@
33
"$schema": "../../node_modules/nx/schemas/project-schema.json",
44
"sourceRoot": "examples/create-cli-e2e/src",
55
"projectType": "application",
6-
"tags": ["scope:tooling", "type:e2e"],
7-
"implicitDependencies": ["create-cli"],
86
"targets": {
97
"lint": {},
10-
"e2e": {}
11-
}
8+
"e2e": {
9+
"executor": "@nx/vite:test",
10+
"options": {
11+
"keepServerRunning": true,
12+
"configFile": "{projectRoot}/vitest.e2e.config.ts"
13+
}
14+
}
15+
},
16+
"implicitDependencies": ["create-cli"],
17+
"tags": ["scope:tooling", "type:e2e"]
1218
}

e2e/nx-plugin-e2e/project.json

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,15 @@
33
"$schema": "../../node_modules/nx/schemas/project-schema.json",
44
"sourceRoot": "e2e/nx-plugin-e2e/src",
55
"projectType": "application",
6-
"tags": ["scope:tooling", "type:e2e"],
7-
"implicitDependencies": ["test-utils", "nx-plugin"],
86
"targets": {
97
"lint": {},
10-
"e2e": {}
11-
}
8+
"e2e": {
9+
"executor": "@nx/vite:test",
10+
"options": {
11+
"configFile": "{projectRoot}/vitest.e2e.config.ts"
12+
}
13+
}
14+
},
15+
"implicitDependencies": ["test-utils", "nx-plugin"],
16+
"tags": ["scope:tooling", "type:e2e"]
1217
}

e2e/plugin-coverage-e2e/project.json

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,15 @@
33
"$schema": "../../node_modules/nx/schemas/project-schema.json",
44
"sourceRoot": "e2e/plugin-coverage-e2e/src",
55
"projectType": "application",
6-
"tags": ["scope:plugin", "type:e2e"],
7-
"implicitDependencies": ["cli", "plugin-coverage"],
86
"targets": {
97
"lint": {},
10-
"e2e": {}
11-
}
8+
"e2e": {
9+
"executor": "@nx/vite:test",
10+
"options": {
11+
"configFile": "{projectRoot}/vitest.e2e.config.ts"
12+
}
13+
}
14+
},
15+
"implicitDependencies": ["cli", "plugin-coverage"],
16+
"tags": ["scope:plugin", "type:e2e"]
1217
}

e2e/plugin-eslint-e2e/project.json

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,15 @@
33
"$schema": "../../node_modules/nx/schemas/project-schema.json",
44
"sourceRoot": "e2e/plugin-eslint-e2e/src",
55
"projectType": "application",
6-
"tags": ["scope:plugin", "type:e2e"],
7-
"implicitDependencies": ["cli", "plugin-eslint"],
86
"targets": {
97
"lint": {},
10-
"e2e": {}
11-
}
8+
"e2e": {
9+
"executor": "@nx/vite:test",
10+
"options": {
11+
"configFile": "{projectRoot}/vitest.e2e.config.ts"
12+
}
13+
}
14+
},
15+
"implicitDependencies": ["cli", "plugin-eslint"],
16+
"tags": ["scope:plugin", "type:e2e"]
1217
}

e2e/plugin-js-packages-e2e/project.json

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,15 @@
33
"$schema": "../../node_modules/nx/schemas/project-schema.json",
44
"projectType": "application",
55
"sourceRoot": "e2e/plugin-js-packages-e2e/src",
6-
"tags": ["scope:plugin", "type:e2e"],
76
"implicitDependencies": ["cli", "plugin-js-packages"],
87
"targets": {
98
"lint": {},
10-
"e2e": {}
11-
}
9+
"e2e": {
10+
"executor": "@nx/vite:test",
11+
"options": {
12+
"configFile": "{projectRoot}/vitest.e2e.config.ts"
13+
}
14+
}
15+
},
16+
"tags": ["scope:plugin", "type:e2e"]
1217
}

nx.json

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,7 @@
3939
}
4040
},
4141
"e2e": {
42-
"dependsOn": ["^build"],
43-
"executor": "@nx/vite:test",
44-
"options": {
45-
"configFile": "{projectRoot}/vitest.e2e.config.ts"
46-
}
42+
"dependsOn": ["^build"]
4743
},
4844
"lint": {
4945
"inputs": ["default", "{workspaceRoot}/eslint.config.?(c)js"],

0 commit comments

Comments
 (0)