Skip to content

There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.

ci(storybook): add production file of deps to be inputs of storybook (#4414)

Joooye_34f395a955a2b0
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"]
+ }
+ }
+}