diff --git a/apps/storybook/project.json b/apps/storybook/project.json new file mode 100644 index 0000000000..776d6df54d --- /dev/null +++ b/apps/storybook/project.json @@ -0,0 +1,48 @@ +{ + "name": "@affine/storybook", + "$schema": "../../node_modules/nx/schemas/project-schema.json", + "targets": { + "build": { + "executor": "nx:run-script", + "dependsOn": ["^build"], + "inputs": [ + "default", + "^production", + "{workspaceRoot}/apps/core/src/**/*", + "{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" + } + ], + "options": { + "script": "build" + }, + "outputs": ["{projectRoot}/storybook-static"] + } + } +}