Skip to content

Commit 7b52ce2

Browse files
authored
Merge pull request #38 from thefrontside/pc/react-app
react app that will run from the graphgen executable
2 parents 163c235 + 926f14c commit 7b52ce2

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+5211
-14
lines changed

.github/workflows/cli-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
# note you'll typically need to create a personal access token
4848
# with permissions to create releases in the other repo
4949
token: ${{ secrets.FRONTSIDEJACK_GITHUB_TOKEN }}
50-
files: build/cli/*
50+
files: cli/build/*
5151
fail_on_unmatched_files: true
5252
env:
5353
GITHUB_REPOSITORY: thefrontside/graphgen

.github/workflows/verify.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,4 @@ jobs:
3838
run: deno lint
3939

4040
- name: test
41-
run: deno test
41+
run: deno task test

.vscode/extensions.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"recommendations": [
3+
"denoland.vscode-deno"
4+
]
5+
}

.vscode/settings.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
{
2-
"deno.enable": true
2+
"deno.enable": true,
3+
"deno.lint": true,
4+
"editor.defaultFormatter": "denoland.vscode-deno"
35
}

cli/.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
/bundled-assets.js
2+
node_modules
3+
build
4+
graphgen
5+
example/package-lock.json

cli/.vscode/settings.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"deno.enable": true
3+
}

cli/README.md

Whitespace-only changes.

cli/app/favicon.ico

198 Bytes
Binary file not shown.

cli/app/index.html

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head lang="en">
4+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
5+
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
6+
<meta charset="utf-8">
7+
<meta name="viewport" content="width=device-width, height=device-height, initial-scale=1.0, maximum-scale=5.0, minimum-scale=1.0">
8+
<title>Graphgen Inspector</title>
9+
<link rel="icon" href="favicon.ico" />
10+
</head>
11+
<body>
12+
<div id="main"></div>
13+
<script type="module" src="src/index.tsx"></script>
14+
</body>
15+
</html>

cli/app/src/assert/assert.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
export function assert(
2+
condition: boolean,
3+
message?: string,
4+
): asserts condition {
5+
if (!condition) {
6+
const errorMessage = message ?? "Assertion failed";
7+
8+
throw new Error(errorMessage);
9+
}
10+
}

0 commit comments

Comments
 (0)