|
1 | 1 | { |
2 | 2 | "namedInputs": { |
3 | 3 | "default": ["{projectRoot}/**/*", "sharedGlobals"], |
4 | | - "sharedGlobals": ["{workspaceRoot}/.github/workflows/ci.yml"], |
| 4 | + "sharedGlobals": ["{workspaceRoot}/.github/workflows/*.yml"], |
5 | 5 | "production": [ |
6 | 6 | "default", |
7 | 7 | "!{projectRoot}/**/?(*.)+(spec|test).[jt]s?(x)?(.snap)", |
8 | 8 | "!{projectRoot}/tsconfig.spec.json", |
9 | 9 | "!{projectRoot}/src/test-setup.[jt]s", |
10 | 10 | "!{projectRoot}/test-setup.[jt]s" |
11 | | - ], |
12 | | - "noMarkdown": ["!{projectRoot}/**/*.md"] |
| 11 | + ] |
13 | 12 | }, |
14 | 13 | "targetDefaults": { |
| 14 | + "e2e-ci": { |
| 15 | + "dependsOn": ["^build"] |
| 16 | + }, |
15 | 17 | "nx-release-publish": { |
16 | 18 | "options": { |
17 | 19 | "packageRoot": "packages/{projectName}" |
|
28 | 30 | }, |
29 | 31 | "e2e": { |
30 | 32 | "dependsOn": ["^build"], |
31 | | - "inputs": ["noMarkdown", "^noMarkdown"], |
32 | 33 | "cache": true |
33 | 34 | }, |
| 35 | + "test": { |
| 36 | + "dependsOn": ["^build"] |
| 37 | + }, |
34 | 38 | "build": { |
35 | 39 | "dependsOn": ["^build"], |
36 | | - "inputs": ["noMarkdown", "^noMarkdown"], |
| 40 | + "inputs": ["production", "^production"], |
37 | 41 | "cache": true, |
38 | 42 | "outputs": ["{projectRoot}/dist"] |
39 | 43 | }, |
40 | 44 | "@nx/vite:test": { |
41 | | - "dependsOn": ["^test"], |
42 | | - "inputs": ["noMarkdown", "^noMarkdown"], |
| 45 | + "dependsOn": ["build", "^test"], |
43 | 46 | "outputs": ["{projectRoot}/coverage"], |
44 | 47 | "cache": true |
45 | 48 | }, |
46 | 49 | "@nx/eslint:lint": { |
47 | 50 | "dependsOn": ["^build", "^lint"], |
48 | | - "inputs": ["noMarkdown", "^noMarkdown"], |
49 | 51 | "cache": true |
50 | 52 | }, |
51 | 53 | "@nx/vite:build": { |
52 | 54 | "dependsOn": ["^build"], |
| 55 | + "inputs": ["production", "^production"], |
53 | 56 | "cache": true, |
54 | | - "inputs": ["noMarkdown", "^noMarkdown"], |
55 | 57 | "outputs": ["{projectRoot}/dist"] |
56 | 58 | }, |
57 | 59 | "@nx/playwright:run": { |
58 | 60 | "dependsOn": ["^build"], |
59 | | - "inputs": ["noMarkdown", "^noMarkdown"], |
60 | 61 | "cache": true |
61 | 62 | }, |
62 | 63 | "@nx/esbuild:esbuild": { |
| 64 | + "inputs": ["production", "^production"], |
63 | 65 | "dependsOn": ["^build"], |
64 | | - "cache": true, |
65 | | - "inputs": ["noMarkdown", "^noMarkdown"] |
| 66 | + "cache": true |
66 | 67 | }, |
67 | 68 | "e2e-ci--**/*": { |
| 69 | + "inputs": ["default", "^default"], |
68 | 70 | "dependsOn": ["^build"], |
69 | | - "inputs": ["noMarkdown", "^noMarkdown"], |
70 | 71 | "cache": true |
71 | 72 | }, |
72 | 73 | "@nx/js:tsc": { |
|
108 | 109 | "options": { |
109 | 110 | "ciTargetName": "e2e-ci", |
110 | 111 | "targetName": "e2e" |
111 | | - } |
| 112 | + }, |
| 113 | + "include": ["e2e/**/**/*"] |
112 | 114 | }, |
113 | 115 | { |
114 | 116 | "plugin": "@nx/eslint/plugin", |
|
149 | 151 | "previewTargetName": "vite:preview", |
150 | 152 | "serveStaticTargetName": "vite:serve-static", |
151 | 153 | "typecheckTargetName": "vite:typecheck" |
152 | | - } |
| 154 | + }, |
| 155 | + "include": ["packages/**/*", "e2e/**/*"] |
153 | 156 | } |
154 | 157 | ], |
155 | 158 | "defaultProject": "javascript-sdk", |
|
0 commit comments