Set up storybook deployment (#398)
* env * vercel * turbo * move storybook build
This commit is contained in:
parent
8bae5fa3f5
commit
539eb6f35d
|
@ -0,0 +1,3 @@
|
||||||
|
TAMAGUI_TARGET=web
|
||||||
|
STORYBOOK_DISABLE_TELEMETRY=1
|
||||||
|
STORYBOOK_ENABLE_CRASH_REPORTS=0
|
|
@ -0,0 +1,3 @@
|
||||||
|
TAMAGUI_TARGET=web
|
||||||
|
STORYBOOK_DISABLE_TELEMETRY=1
|
||||||
|
STORYBOOK_ENABLE_CRASH_REPORTS=0
|
|
@ -0,0 +1,3 @@
|
||||||
|
TAMAGUI_TARGET=web
|
||||||
|
STORYBOOK_DISABLE_TELEMETRY=1
|
||||||
|
STORYBOOK_ENABLE_CRASH_REPORTS=0
|
|
@ -3,3 +3,7 @@ dist/
|
||||||
THUMBS_DB
|
THUMBS_DB
|
||||||
node_modules/
|
node_modules/
|
||||||
types/
|
types/
|
||||||
|
|
||||||
|
# local env files
|
||||||
|
!.env.*
|
||||||
|
.env*.local
|
||||||
|
|
|
@ -22,8 +22,8 @@
|
||||||
"lint": "eslint src",
|
"lint": "eslint src",
|
||||||
"typecheck": "tsc",
|
"typecheck": "tsc",
|
||||||
"storybook": "node ./scripts/storybook.js",
|
"storybook": "node ./scripts/storybook.js",
|
||||||
"storybook:dev": "TAMAGUI_TARGET='web' storybook dev -p 3001",
|
"storybook:dev": "storybook dev -p 3001",
|
||||||
"storybook:build": "TAMAGUI_TARGET='web' storybook build",
|
"storybook:build": "storybook build",
|
||||||
"clean": "rimraf node_modules dist .turbo storybook-static .tamagui"
|
"clean": "rimraf node_modules dist .turbo storybook-static .tamagui"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
|
|
|
@ -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"
|
||||||
|
}
|
|
@ -10,6 +10,10 @@
|
||||||
"env": ["TAMAGUI_TARGET", "TAMAGUI_DISABLE_WARN_DYNAMIC_LOAD"],
|
"env": ["TAMAGUI_TARGET", "TAMAGUI_DISABLE_WARN_DYNAMIC_LOAD"],
|
||||||
"outputs": [".next/**", "!.next/cache/**"]
|
"outputs": [".next/**", "!.next/cache/**"]
|
||||||
},
|
},
|
||||||
|
"components#build": {
|
||||||
|
"dependsOn": ["^build"],
|
||||||
|
"outputs": ["dist/**", "storybook-static/**"]
|
||||||
|
},
|
||||||
"dev": {
|
"dev": {
|
||||||
"cache": false
|
"cache": false
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue