Set up storybook deployment (#398)

* env

* vercel

* turbo

* move storybook build
This commit is contained in:
Felicio Mununga 2023-05-16 12:39:46 +02:00 committed by GitHub
parent 8bae5fa3f5
commit 539eb6f35d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 30 additions and 2 deletions

3
packages/components/.env Normal file
View File

@ -0,0 +1,3 @@
TAMAGUI_TARGET=web
STORYBOOK_DISABLE_TELEMETRY=1
STORYBOOK_ENABLE_CRASH_REPORTS=0

View File

@ -0,0 +1,3 @@
TAMAGUI_TARGET=web
STORYBOOK_DISABLE_TELEMETRY=1
STORYBOOK_ENABLE_CRASH_REPORTS=0

View File

@ -0,0 +1,3 @@
TAMAGUI_TARGET=web
STORYBOOK_DISABLE_TELEMETRY=1
STORYBOOK_ENABLE_CRASH_REPORTS=0

View File

@ -3,3 +3,7 @@ dist/
THUMBS_DB
node_modules/
types/
# local env files
!.env.*
.env*.local

View File

@ -22,8 +22,8 @@
"lint": "eslint src",
"typecheck": "tsc",
"storybook": "node ./scripts/storybook.js",
"storybook:dev": "TAMAGUI_TARGET='web' storybook dev -p 3001",
"storybook:build": "TAMAGUI_TARGET='web' storybook build",
"storybook:dev": "storybook dev -p 3001",
"storybook:build": "storybook build",
"clean": "rimraf node_modules dist .turbo storybook-static .tamagui"
},
"peerDependencies": {

View File

@ -0,0 +1,11 @@
{
"$schema": "https://openapi.vercel.sh/vercel.json",
"git": {
"deploymentEnabled": {
"main": false
}
},
"ignoreCommand": "git diff --quiet HEAD^ HEAD ../../{patches,package.json,turbo.json} ../../packages/{colors,icons} ./",
"installCommand": "yarn install --cwd ../../ --frozen-lockfile",
"buildCommand": "turbo run build --cwd ../../ --filter=components... && yarn storybook:build"
}

View File

@ -10,6 +10,10 @@
"env": ["TAMAGUI_TARGET", "TAMAGUI_DISABLE_WARN_DYNAMIC_LOAD"],
"outputs": [".next/**", "!.next/cache/**"]
},
"components#build": {
"dependsOn": ["^build"],
"outputs": ["dist/**", "storybook-static/**"]
},
"dev": {
"cache": false
},