From f395a955a2b0681b4d3f660b29b583fc533f3a9a Mon Sep 17 00:00:00 2001 From: Joooye_34 Date: Tue, 19 Sep 2023 12:53:12 +0800 Subject: [PATCH] ci(storybook): add production file of deps to be inputs of storybook (#4414) --- apps/storybook/project.json | 48 +++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 apps/storybook/project.json 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"] + } + } +}