Skip to content

Commit

Permalink
H-3569: Create project structure for typescript harpc client (#5620)
Browse files Browse the repository at this point in the history
Co-authored-by: Ciaran Morinan <[email protected]>
  • Loading branch information
indietyp and CiaranMn authored Nov 13, 2024
1 parent 97cc601 commit c8af8dd
Show file tree
Hide file tree
Showing 19 changed files with 670 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ members = [
"libs/@local/graph/type-fetcher",
"libs/@local/graph/types/rust",
"libs/@local/graph/validation",
"libs/@local/harpc/client",
"libs/@local/harpc/client/rust",
"libs/@local/harpc/codec",
"libs/@local/harpc/net",
"libs/@local/harpc/server",
Expand Down Expand Up @@ -56,7 +56,7 @@ version = "0.0.0"
[workspace.dependencies]
# Workspace members
error-stack = { path = "./libs/error-stack", default-features = false }
harpc-client.path = "libs/@local/harpc/client"
harpc-client.path = "libs/@local/harpc/client/rust"
harpc-codec.path = "libs/@local/harpc/codec"
harpc-net.path = "libs/@local/harpc/net"
harpc-server.path = "libs/@local/harpc/server"
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
7 changes: 7 additions & 0 deletions libs/@local/harpc/client/typescript/.eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/** @type {import("eslint").Linter.Config} */
module.exports = {
...require("@local/eslint-config/generate-workspace-config.cjs")(__dirname),
ignorePatterns: require("@local/eslint-config/generate-ignore-patterns.cjs")(
__dirname,
),
};
606 changes: 606 additions & 0 deletions libs/@local/harpc/client/typescript/LICENSE.md

Large diffs are not rendered by default.

27 changes: 27 additions & 0 deletions libs/@local/harpc/client/typescript/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"name": "@local/harpc-client",
"version": "0.0.0-private",
"private": true,
"description": "Client for the HaRPC system",
"license": "AGPL-3",
"type": "module",
"exports": {
".": {
"import": "./dist/index.js",
"types": "./dist/index.d.ts"
}
},
"scripts": {
"build": "rimraf dist && tsc --build tsconfig.build.json",
"fix:eslint": "eslint --fix .",
"lint:eslint": "eslint --report-unused-disable-directives .",
"lint:tsc": "tsc --noEmit"
},
"dependencies": {},
"devDependencies": {
"@local/eslint-config": "0.0.0-private",
"@local/tsconfig": "0.0.0-private",
"rimraf": "6.0.1",
"typescript": "5.6.3"
}
}
1 change: 1 addition & 0 deletions libs/@local/harpc/client/typescript/src/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/* eslint-disable canonical/filename-no-index */
8 changes: 8 additions & 0 deletions libs/@local/harpc/client/typescript/tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"declaration": true,
"outDir": "dist",
"paths": {}
}
}
9 changes: 9 additions & 0 deletions libs/@local/harpc/client/typescript/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"extends": "@local/tsconfig/legacy-base-tsconfig-to-refactor.json",
"compilerOptions": {
"lib": ["dom", "dom.iterable", "ES2023"],
"module": "NodeNext",
"moduleResolution": "NodeNext"
},
"include": ["src"]
}
8 changes: 8 additions & 0 deletions libs/@local/harpc/client/typescript/turbo.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"extends": ["//"],
"tasks": {
"build": {
"outputs": ["./dist/**"]
}
}
}
3 changes: 2 additions & 1 deletion libs/@local/tsconfig/legacy-base-tsconfig-to-refactor.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@
"@local/hash-isomorphic-utils/*": ["../hash-isomorphic-utils/src/*.ts"],
"@local/status": ["../status/typescript/pkg/src/main.ts"],
"@local/hash-subgraph": ["../hash-subgraph/src/main.ts"],
"@local/hash-subgraph/*": ["../hash-subgraph/src/*.ts"]
"@local/hash-subgraph/*": ["../hash-subgraph/src/*.ts"],
"@local/harpc-client": ["../harpc/client/typescript/src/index.ts"]
},
"outDir": "./dist"
},
Expand Down

0 comments on commit c8af8dd

Please sign in to comment.