mirror of
https://github.com/status-im/status-web.git
synced 2025-02-19 16:04:25 +00:00
Set up storybook deployment (#398)
* env * vercel * turbo * move storybook build
This commit is contained in:
parent
8bae5fa3f5
commit
539eb6f35d
3
packages/components/.env
Normal file
3
packages/components/.env
Normal file
@ -0,0 +1,3 @@
|
||||
TAMAGUI_TARGET=web
|
||||
STORYBOOK_DISABLE_TELEMETRY=1
|
||||
STORYBOOK_ENABLE_CRASH_REPORTS=0
|
3
packages/components/.env.development
Normal file
3
packages/components/.env.development
Normal file
@ -0,0 +1,3 @@
|
||||
TAMAGUI_TARGET=web
|
||||
STORYBOOK_DISABLE_TELEMETRY=1
|
||||
STORYBOOK_ENABLE_CRASH_REPORTS=0
|
3
packages/components/.env.production
Normal file
3
packages/components/.env.production
Normal file
@ -0,0 +1,3 @@
|
||||
TAMAGUI_TARGET=web
|
||||
STORYBOOK_DISABLE_TELEMETRY=1
|
||||
STORYBOOK_ENABLE_CRASH_REPORTS=0
|
4
packages/components/.gitignore
vendored
4
packages/components/.gitignore
vendored
@ -3,3 +3,7 @@ dist/
|
||||
THUMBS_DB
|
||||
node_modules/
|
||||
types/
|
||||
|
||||
# local env files
|
||||
!.env.*
|
||||
.env*.local
|
||||
|
@ -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": {
|
||||
|
11
packages/components/vercel.json
Normal file
11
packages/components/vercel.json
Normal 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"
|
||||
}
|
@ -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
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user