AFFiNE/nx.json
2023-09-07 06:54:28 +00:00

121 lines
2.5 KiB
JSON

{
"$schema": "./node_modules/nx/schemas/nx-schema.json",
"npmScope": "toeverything",
"tasksRunnerOptions": {
"default": {
"runner": "nx-cloud",
"options": {
"cacheableOperations": ["build", "test", "e2e", "lint"],
"accessToken": "YmQ2NTg1ODktZTk5Mi00YzhiLTk2ZmUtNWQzMDg0NDBkOWM3fHJlYWQtb25seQ=="
}
}
},
"affected": {
"defaultBase": "master"
},
"namedInputs": {
"default": ["{projectRoot}/**/*", "sharedGlobals"],
"sharedGlobals": [
"{workspaceRoot}/tsconfig.json",
"{workspaceRoot}/nx.json"
],
"production": [
"default",
"!{projectRoot}/.eslintrc.json",
"!{projectRoot}/**/?(*.)+(spec|test).[jt]s?(x)?(.snap)"
]
},
"targetDefaults": {
"build": {
"dependsOn": ["^build"],
"outputs": [
"{projectRoot}/dist",
"{projectRoot}/build",
"{projectRoot}/out",
"{projectRoot}/storybook-static"
],
"inputs": [
"{workspaceRoot}/infra/**/*",
"{workspaceRoot}/sdk/**/*",
{
"runtime": "node -v"
},
{
"env": "BUILD_TYPE"
},
{
"env": "PERFSEE_TOKEN"
},
{
"env": "SENTRY_ORG"
},
{
"env": "SENTRY_PROJECT"
},
{
"env": "SENTRY_AUTH_TOKEN"
},
{
"env": "NEXT_PUBLIC_SENTRY_DSN"
},
{
"env": "DISTRIBUTION"
},
{
"env": "COVERAGE"
}
]
},
"e2e": {
"outputs": ["{workspaceRoot}/.nyc_output", "{projectRoot}/test-results"],
"inputs": [
{
"runtime": "node -v"
},
{
"runtime": "yarn playwright --version"
}
]
},
"test": {
"outputs": ["{workspaceRoot}/.nyc_output"],
"inputs": [
{
"env": "NATIVE_TEST"
},
{
"env": "ENABLE_PRELOADING"
},
{
"env": "COVERAGE"
}
]
},
"test:ui": {
"outputs": ["{workspaceRoot}/.nyc_output"],
"inputs": [
{
"env": "NATIVE_TEST"
},
{
"env": "ENABLE_PRELOADING"
},
{
"env": "COVERAGE"
}
]
},
"test:coverage": {
"outputs": ["{workspaceRoot}/.nyc_output"],
"inputs": [
{
"env": "NATIVE_TEST"
},
{
"env": "ENABLE_PRELOADING"
}
]
}
}
}