mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-11-24 13:51:56 +03:00
122 lines
2.5 KiB
JSON
122 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",
|
|
"{workspaceRoot}/packages/i18n/src/i18n-generated.ts"
|
|
],
|
|
"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"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|