Skip to content

Commit

Permalink
Merge pull request #1 from dldc-packages/ts-schema
Browse files Browse the repository at this point in the history
Ts schema
  • Loading branch information
etienne-dldc authored Jul 13, 2024
2 parents 9ec5ab8 + ba583c6 commit 1ecace7
Show file tree
Hide file tree
Showing 66 changed files with 2,984 additions and 7,418 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Publish

on:
push:
branches:
- main

jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write # The OIDC ID token is used for authentication with JSR.
steps:
- uses: actions/checkout@v4
- uses: denoland/setup-deno@v1
with:
deno-version: v1.x # Run with latest stable Deno.

- run: deno task check

- run: npx jsr publish
1 change: 0 additions & 1 deletion .node-version

This file was deleted.

1 change: 0 additions & 1 deletion .prettierignore

This file was deleted.

6 changes: 0 additions & 6 deletions .prettierrc.json

This file was deleted.

15 changes: 0 additions & 15 deletions .release-it.json

This file was deleted.

5 changes: 3 additions & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"typescript.tsdk": "node_modules/typescript/lib",
"eslint.useFlatConfig": true
"deno.enable": true,
"editor.defaultFormatter": "denoland.vscode-deno",
"npm.autoDetect": "off"
}
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# ZenAPI

> If [https://graphql.org/](GraphQL) and [https://github.com/trpc/trpc](tRPC) had a baby.
> If [https://graphql.org/](GraphQL) and [https://github.com/trpc/trpc](tRPC)
> had a baby.
3 changes: 3 additions & 0 deletions client.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export * from "./src/client/query.ts";
export * from "./src/client/query.types.ts";
export * from "./src/utils/types.ts";
33 changes: 33 additions & 0 deletions deno.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"name": "@dldc/zenapi",
"version": "4.0.0-0",
"exports": {
"./client": "./client.ts",
"./server": "./server.ts"
},
"imports": {
"@dldc/compose": "jsr:@dldc/compose@^6.0.2",
"@dldc/stack": "jsr:@dldc/stack@^6.0.2",
"@std/assert": "jsr:@std/assert@^0.225.3",
"@std/path": "jsr:@std/path@^0.225.1",
"@std/testing": "jsr:@std/testing@^0.225.3",
"@valibot/valibot": "jsr:@valibot/valibot@^0.31.1",
"ts_morph": "https://deno.land/x/[email protected]/mod.ts"
},
"tasks": {
"test:run": "deno test -A",
"test:watch": "deno test -A --watch",
"test:coverage": "deno test -A --coverage && deno coverage coverage --html",
"test:update-snapshots": "deno test -A -- --update",
"bump": "deno run -A jsr:@mys/bump@1",
"update": "deno run --allow-read=. --allow-write=. --allow-net https://deno.land/x/[email protected]/main.ts *.ts deno.jsonc",
"check": "deno fmt --check . && deno lint . && deno task test:run"
},
"lint": {
"rules": {
"exclude": [
"no-explicit-any"
]
}
}
}
201 changes: 201 additions & 0 deletions deno.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

41 changes: 0 additions & 41 deletions eslint.config.js

This file was deleted.

Loading

0 comments on commit 1ecace7

Please sign in to comment.