-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Uncover and Fix Cyclic Dependency, Version-Control Vercel Configs, Fi…
…x Turbo Graph. (#2502) * Driveby: Update requirements within README * Fix cyclic dependency in GraphQL definitions * Remove outdated `index.ts` pattern * Add turbo artifacts to ignores * Update PR template to refer to turbo graph * Fix turbo graph of design packages * Version-Control Vercel build configuration * Add pipefail to scripts Co-authored-by: Ahmad Sattar <thehabbos007@gmail.com> --------- Co-authored-by: Ahmad Sattar <thehabbos007@gmail.com>
- Loading branch information
1 parent
eb09d7b
commit 45acb52
Showing
45 changed files
with
174 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -153,3 +153,7 @@ seed-users.json | |
|
||
# SARIF files | ||
*.sarif | ||
|
||
# Turbo | ||
.turbo/ | ||
out/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -137,3 +137,7 @@ seed-users.json | |
|
||
# SARIF files | ||
*.sarif | ||
|
||
# Turborepo | ||
.turbo/ | ||
out/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -155,3 +155,7 @@ seed-users.json | |
# Keep license files as is | ||
LICENSE.md | ||
LICENSE-*.md | ||
|
||
# Turborepo | ||
.turbo/ | ||
out/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -175,3 +175,7 @@ seed-users.json | |
# Keep license files as is | ||
LICENSE.md | ||
LICENSE-*.md | ||
|
||
# Turborepo | ||
.turbo/ | ||
out/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/usr/bin/env bash | ||
|
||
# shellcheck disable=SC1090 | ||
source ~/.bashrc | ||
|
||
set -euo pipefail | ||
|
||
echo "Changing dir to root" | ||
cd ../.. | ||
|
||
echo "Building frontend" | ||
turbo build --filter='@apps/hash-frontend' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -euo pipefail | ||
|
||
# Setup TurboRepo and get a pruned src folder and lockfile | ||
|
||
echo "Installing turbo" | ||
yarn global add turbo | ||
|
||
# TODO: investigate why producing a pruned repo results in a broken Vercel build | ||
|
||
#echo "Producing pruned repo" | ||
#turbo prune --scope='@apps/hash-frontend' | ||
# | ||
#echo "Deleting contents of non-pruned dir to save space" | ||
#git ls-files -z | xargs -0 rm -f | ||
#git ls-tree --name-only -d -r -z HEAD | sort -rz | xargs -0 rm -rf | ||
# | ||
#echo "Moving pruned repo back to root" | ||
#mv out/* . | ||
#rm out -r | ||
|
||
# Install the pruned dependencies | ||
|
||
echo "Installing yarn dependencies" | ||
HUSKY=0 yarn install --frozen-lockfile --prefer-offline --force --build-from-source |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"github": { | ||
"silent": true, | ||
"autoJobCancelation": true | ||
}, | ||
"installCommand": "./vercel-install.sh", | ||
"buildCommand": "./vercel-build.sh", | ||
"outputDirectory": "./.next" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"extends": ["//"], | ||
"pipeline": { | ||
"build": { | ||
// Outputs of the build | ||
"outputs": ["./storybook-static/**/*"] | ||
}, | ||
"storybook": { | ||
"persistent": true | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"github": { | ||
"silent": true, | ||
"autoJobCancelation": true | ||
}, | ||
"installCommand": "cd ../.. && yarn install", | ||
"buildCommand": "turbo --filter '@apps/hashdotdesign' build", | ||
"outputDirectory": "storybook-static" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
"pipeline": { | ||
"build": { | ||
// Outputs of the build | ||
"outputs": ["./dist/**/*"] | ||
"outputs": ["./.next/**/*"] | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"github": { | ||
"silent": true, | ||
"autoJobCancelation": true | ||
}, | ||
"buildCommand": "turbo --filter '@apps/hashdotdev' build", | ||
"installCommand": "cd ../.. && yarn install" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,11 @@ | ||
# Block Design System | ||
|
||
Components for specific use in blocks. | ||
|
||
## Running Storybook | ||
|
||
The Block Design System can be viewed locally (alongside the [HASH Design System](../design-system)) by running the following command: | ||
|
||
```bash | ||
turbo --filter '@apps/hashdotdesign' storybook | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.