mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-12-12 06:43:24 +03:00
332cd3b380
This pr is trying to split `web` and `electron` entries from `core`. It allows more platform-related optimization to be addressed in each entry. We should remove all browser/electron only codes from `core` eventually, this is the very first step for that.
76 lines
1.5 KiB
JSON
76 lines
1.5 KiB
JSON
{
|
|
"name": "@affine/web",
|
|
"$schema": "../../../node_modules/nx/schemas/project-schema.json",
|
|
"targets": {
|
|
"build": {
|
|
"executor": "nx:run-script",
|
|
"dependsOn": [
|
|
{
|
|
"projects": ["tag:infra"],
|
|
"target": "build",
|
|
"params": "ignore"
|
|
},
|
|
"^build"
|
|
],
|
|
"inputs": [
|
|
"{projectRoot}/**/*",
|
|
"{workspaceRoot}/tools/**/*",
|
|
"{workspaceRoot}/packages/frontend/core/**/*",
|
|
"{workspaceRoot}/packages/**/*",
|
|
{
|
|
"env": "BUILD_TYPE"
|
|
},
|
|
{
|
|
"env": "BUILD_TYPE_OVERRIDE"
|
|
},
|
|
{
|
|
"env": "PERFSEE_TOKEN"
|
|
},
|
|
{
|
|
"env": "SENTRY_ORG"
|
|
},
|
|
{
|
|
"env": "SENTRY_PROJECT"
|
|
},
|
|
{
|
|
"env": "SENTRY_AUTH_TOKEN"
|
|
},
|
|
{
|
|
"env": "SENTRY_DSN"
|
|
},
|
|
{
|
|
"env": "DISTRIBUTION"
|
|
},
|
|
{
|
|
"env": "COVERAGE"
|
|
},
|
|
{
|
|
"env": "DISABLE_DEV_OVERLAY"
|
|
},
|
|
{
|
|
"env": "CAPTCHA_SITE_KEY"
|
|
},
|
|
{
|
|
"env": "SHOULD_REPORT_TRACE"
|
|
},
|
|
{
|
|
"env": "TRACE_REPORT_ENDPOINT"
|
|
},
|
|
{
|
|
"env": "R2_ACCOUNT_ID"
|
|
},
|
|
{
|
|
"env": "R2_ACCESS_KEY_ID"
|
|
},
|
|
{
|
|
"env": "R2_SECRET_ACCESS_KEY"
|
|
}
|
|
],
|
|
"options": {
|
|
"script": "build"
|
|
},
|
|
"outputs": ["{projectRoot}/dist"]
|
|
}
|
|
}
|
|
}
|