diff --git a/.gitignore b/.gitignore index 2ba88bc..4c7017b 100644 --- a/.gitignore +++ b/.gitignore @@ -36,4 +36,5 @@ yarn-error.log* # Misc .DS_Store *.pem -*storybook.log \ No newline at end of file +*storybook.log +storybook-static diff --git a/package.json b/package.json index e3d46e9..60a5911 100644 --- a/package.json +++ b/package.json @@ -5,6 +5,7 @@ "private": true, "scripts": { "build": "turbo build", + "build-storybook": "turbo build-storybook", "dev": "turbo dev", "lint": "turbo lint", "test": "turbo test", diff --git a/turbo.json b/turbo.json index 2254d9f..10c44fb 100644 --- a/turbo.json +++ b/turbo.json @@ -7,6 +7,11 @@ "inputs": ["$TURBO_DEFAULT$", ".env*"], "outputs": [".next/**", "!.next/cache/**", "dist/**"] }, + "build-storybook": { + "dependsOn": ["^build"], + "inputs": ["$TURBO_DEFAULT$", ".env*"], + "outputs": ["storybook-static/**"] + }, "lint": { "dependsOn": ["^lint"] },