Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -422,3 +422,4 @@ terrabuild-debug.md
*.fsyacc.output

!**/results/terrabuild-debug.*
.pnpm-store
9 changes: 8 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,13 @@ current_dir = $(shell pwd)
# |_______/ |_______| \__/
#

build:
build: webui
dotnet build -c $(config) terrabuild.slnx

webui:
cd src/Terrabuild.UI && pnpm install
cd src/Terrabuild.UI && pnpm build

test:
dotnet test -c $(config) terrabuild.slnx

Expand Down Expand Up @@ -100,6 +104,9 @@ terrabuild:
# |__| |_______|_______/ |__| |_______/
#

ui: webui
$(terrabuild) graph --no-open --port 5179

test-scaffold:
$(terrabuild) scaffold --workspace tests/scaffold --debug --log

Expand Down
11 changes: 11 additions & 0 deletions WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ locals {

versions = {
dotnet_sdk: "10.0.100" # https://mcr.microsoft.com/artifact/mar/dotnet/sdk/tags
pnpm: "22-10" # https://hub.docker.com/r/guergeiro/pnpm/tags
}
}

Expand Down Expand Up @@ -53,3 +54,13 @@ extension @dotnet {
evaluate = local.dotnet.evaluate
}
}

extension @pnpm {
image = local.is_local_build ? nothing : "docker.io/guergeiro/pnpm:${local.versions.pnpm}"
defaults {
frozen = true
}
env {
CI = true
}
}
11 changes: 11 additions & 0 deletions src/Terrabuild.UI/PROJECT
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
project terrabuild_ui {
@pnpm { }
}

target install {
@pnpm install { }
}

target build {
@pnpm build { }
}
12 changes: 12 additions & 0 deletions src/Terrabuild.UI/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Terrabuild Graph</title>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>
32 changes: 32 additions & 0 deletions src/Terrabuild.UI/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"name": "terrabuild-ui",
"private": true,
"version": "0.1.0",
"type": "module",
"packageManager": "pnpm@9.15.0",
"scripts": {
"dev": "vite",
"build": "vite build",
"preview": "vite preview"
},
"dependencies": {
"@emotion/react": "^11.11.4",
"@emotion/styled": "^11.11.5",
"@mantine/core": "^6.0.0",
"@mantine/hooks": "^6.0.0",
"@tabler/icons-react": "^3.19.0",
"dagre": "^0.8.5",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"reactflow": "^11.11.3",
"xterm": "^5.3.0",
"xterm-addon-fit": "^0.8.0"
},
"devDependencies": {
"@types/react": "^18.3.12",
"@types/react-dom": "^18.3.1",
"@vitejs/plugin-react": "^4.3.3",
"typescript": "^5.6.3",
"vite": "^5.4.11"
}
}
Loading