fix build script of the dashboard

This commit is contained in:
Szilárd Dóró
2022-11-08 16:40:42 +01:00
parent 02ba6ef652
commit ff38e574d9
3 changed files with 23 additions and 44 deletions

View File

@@ -16,6 +16,10 @@
"storybook": "start-storybook -p 6006",
"build-storybook": "build-storybook"
},
"resolutions": {
"@types/react": "17.0.2",
"@types/react-dom": "17.0.2"
},
"dependencies": {
"@apollo/client": "^3.6.2",
"@codemirror/language": "^6.3.0",

View File

@@ -17,9 +17,9 @@
"preinstall": "npx only-allow pnpm",
"prepare": "husky install config/.husky",
"build": "pnpm run build:all --filter=!@nhost/dashboard --filter=!@nhost/docs --filter=!@nhost-examples/*",
"build:dashboard": "pnpm run build:all --filter=@nhost/dashboard",
"build:docs": "pnpm run build:all --filter=@nhost/docs",
"build:all": "turbo run build --include-dependencies",
"build:dashboard": "turbo run build --filter=@nhost/dashboard",
"build:docs": "turbo run build --filter=@nhost/docs",
"build:all": "turbo run build --include-dependencies",
"dev": "turbo run dev --filter=!@nhost/dashboard --filter=!@nhost/docs --filter=!@nhost-examples/* --filter=!@nhost/docgen --no-deps --include-dependencies",
"clean:all": "pnpm clean && rm -rf ./{{packages,examples}/*,docs}/{.nhost,node_modules} node_modules",
"clean": "rm -rf ./{{packages,examples}/*,docs}/{dist,umd,.next,.turbo,coverage}",

View File

@@ -3,55 +3,32 @@
"baseBranch": "origin/main",
"pipeline": {
"build": {
"dependsOn": [
"^build"
],
"outputs": [
"dist/**",
"umd/**",
"build/**",
".next"
]
"dependsOn": ["^build"],
"outputs": ["dist/**", "umd/**", "build/**", ".next"]
},
"@nhost/dashboard#build": {
"dependsOn": [],
"outputs": [".next"]
},
"@nhost-examples/react-apollo#build": {
"dependsOn": [
"^build"
],
"outputs": [
"dist/**"
],
"env": [
"VITE_NHOST_SUBDOMAIN",
"VITE_NHOST_REGION"
]
"dependsOn": ["^build"],
"outputs": ["dist/**"],
"env": ["VITE_NHOST_SUBDOMAIN", "VITE_NHOST_REGION"]
},
"@nhost-examples/vue-apollo#build": {
"dependsOn": [
"^build"
],
"outputs": [
"dist/**"
],
"env": [
"VITE_NHOST_SUBDOMAIN",
"VITE_NHOST_REGION"
]
"dependsOn": ["^build"],
"outputs": ["dist/**"],
"env": ["VITE_NHOST_SUBDOMAIN", "VITE_NHOST_REGION"]
},
"@nhost/sync-versions#start": {
"cache": false
},
"test": {
"dependsOn": [
"^build"
],
"outputs": [
"coverage/**"
]
"dependsOn": ["^build"],
"outputs": ["coverage/**"]
},
"e2e": {
"dependsOn": [
"^build"
],
"dependsOn": ["^build"],
"outputs": []
},
"dev": {
@@ -61,9 +38,7 @@
"cache": false
},
"lint": {
"dependsOn": [
"^build"
],
"dependsOn": ["^build"],
"outputs": []
},
"lint:fix": {