forked from dxos/dxos
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnx.json
More file actions
103 lines (103 loc) · 3.47 KB
/
nx.json
File metadata and controls
103 lines (103 loc) · 3.47 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
{
"extends": "nx/presets/npm.json",
"affected": { "defaultBase": "main" },
"parallel": 6,
"namedInputs": {
"default": ["{projectRoot}/**/*", "sharedGlobals"],
"sharedGlobals": [
"{workspaceRoot}/tsconfig.json",
"{workspaceRoot}/.eslintrc*.js",
{ "runtime": "node --version" },
"{workspaceRoot}/go.work"
],
"production": [
"default",
"!{projectRoot}/src/playwright/**/*.ts",
"!{projectRoot}/**/*.spec.ts",
"!{projectRoot}/**/*.test.ts",
"!{projectRoot}/**/*.md",
"!{projectRoot}/eslintConfig.json",
"!{workspaceRoot}/.eslintrc*.js"
]
},
"targetDefaults": {
"build": {
"cache": true,
"dependsOn": ["^build", "prebuild", "compile"],
"executor": "@nx/js:tsc",
"inputs": ["production", "^production"],
"options": {
"main": "{projectRoot}/src/index.ts",
"outputPath": "{projectRoot}/dist/types",
"tsConfig": "{projectRoot}/tsconfig.json"
},
"outputs": ["{options.outputPath}"]
},
"bundle": {
"cache": true,
"dependsOn": ["^build", "prebuild"],
"inputs": [
"production",
"^production",
{ "env": "CONFIG_DYNAMIC" },
{ "env": "DX_ENVIRONMENT" },
{ "env": "DX_LABS" },
{ "env": "DX_IPDATA_API_KEY" },
{ "env": "DX_SENTRY_DESTINATION" },
{ "env": "DX_TELEMETRY_API_KEY" },
{ "env": "DX_HOST" },
{ "env": "DX_PWA" },
{ "env": "NODE_ENV" },
{ "env": "REMOTE_SOURCE" },
{ "env": "DX_HUB_URL" },
{ "env": "LOG_FILTER" },
{ "env": "LOG_PREFIX" },
{ "env": "SENTRY_RELEASE_AUTH_TOKEN" }
]
},
"compile": {
"cache": true,
"dependsOn": ["^compile", "prebuild"],
"executor": "@dxos/esbuild:build",
"inputs": ["production", "^production"],
"options": { "outputPath": "{projectRoot}/dist/lib" },
"outputs": ["{options.outputPath}"]
},
"e2e": {
"cache": true,
"dependsOn": ["prebuild", "^compile"],
"executor": "@nx/playwright:playwright",
"inputs": ["default", "^production", { "env": "CI" }, { "env": "LOG_LEVEL" }, { "env": "LOG_PROCESSOR" }],
"options": { "config": "{projectRoot}/src/playwright/playwright.config.ts" }
},
"lint": {
"cache": true,
"executor": "@nx/linter:eslint",
"inputs": ["default"],
"options": { "format": "unix", "lintFilePatterns": ["{projectRoot}/**/*.{ts,tsx,js,jsx}"], "quiet": true }
},
"prebuild": { "cache": true, "dependsOn": ["^compile"], "inputs": ["production", "^production"] },
"prerelease": { "cache": true, "dependsOn": ["^build"], "inputs": ["default", "^production"] },
"preview": { "inputs": ["production", "^production"] },
"serve": { "dependsOn": ["^compile", "prebuild"], "inputs": ["production", "^production"] },
"test": {
"cache": true,
"dependsOn": ["prebuild", "^compile"],
"executor": "@nx/vite:test",
"inputs": [
"default",
"^production",
"{workspaceRoot}/vitest.shared.ts",
{ "env": "VITEST_ENV" },
{ "env": "VITEST_DEBUG" },
{ "env": "VITEST_XML_REPORT" },
{ "env": "EDGE_ENDPOINT" }
],
"outputs": ["{workspaceRoot}/coverage/{projectRoot}", "{workspaceRoot}/test-results/{projectRoot}"]
},
"compile-lib": { "cache": true },
"compile-node": { "cache": true },
"storybook-build": { "cache": true }
},
"nxCloudId": "62ed1bb8236992263d3c673b"
}