Skip to content

Commit c95379a

Browse files
committed
feat: valiubot schemas and hono-valibot middleware generation
1 parent 991536e commit c95379a

43 files changed

Lines changed: 47248 additions & 58857 deletions

Some content is hidden

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

.eslintrc.cjs

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
module.exports = {
2-
root: true,
3-
extends: ['@block65/eslint-config/typescript'],
4-
parserOptions: {
5-
tsconfigRootDir: __dirname,
6-
project: true,
7-
},
2+
root: true,
3+
extends: ["@block65/eslint-config/typescript"],
4+
parserOptions: {
5+
tsconfigRootDir: __dirname,
6+
project: true,
7+
},
88

9-
overrides: [
10-
{
11-
files: ['**/fixtures/**/*.ts'],
12-
rules: {
13-
'max-classes-per-file': 'off',
14-
quotes: 'off',
15-
'@typescript-eslint/no-unused-vars': 'off',
16-
},
17-
},
18-
],
9+
overrides: [
10+
{
11+
files: ["**/fixtures/**/*.ts"],
12+
rules: {
13+
"max-classes-per-file": "off",
14+
quotes: "off",
15+
"@typescript-eslint/no-unused-vars": "off",
16+
},
17+
},
18+
],
1919
};

.prettierignore

Lines changed: 0 additions & 7 deletions
This file was deleted.

Makefile

Lines changed: 18 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
SRCS = $(wildcard lib/**)
33

4-
all: dist
4+
all: test
55

66
.PHONY: deps
77
deps: node_modules
@@ -21,30 +21,27 @@ test: node_modules
2121
node_modules: package.json
2222
pnpm install
2323

24-
dist: node_modules tsconfig.json $(SRCS)
25-
pnpm exec tsc
26-
2724
.PHONY: dev
2825
dev:
2926
pnpm tsc -b -w
3027

3128
.PHONY: fixtures
32-
fixtures: dist
33-
$(MAKE) petstore test1 openai
29+
fixtures:
30+
$(MAKE) petstore test1 openai docker
3431

3532
.PHONY: petstore
36-
petstore: __tests__/fixtures/petstore.json dist
37-
node --enable-source-maps dist/bin/index.js \
33+
petstore: __tests__/fixtures/petstore.json
34+
node --enable-source-maps bin/index.ts \
3835
-i $< \
3936
-o __tests__/fixtures/petstore
40-
pnpm exec prettier --write __tests__/fixtures/petstore
37+
pnpm exec biome format --write __tests__/fixtures/petstore
4138

4239
.PHONY: test1
43-
test1: __tests__/fixtures/test1.json dist
44-
node --enable-source-maps dist/bin/index.js \
40+
test1: __tests__/fixtures/test1.json
41+
node --enable-source-maps bin/index.ts \
4542
-i $< \
4643
-o __tests__/fixtures/test1
47-
pnpm exec prettier --write __tests__/fixtures/test1
44+
pnpm exec biome format --write __tests__/fixtures/test1
4845

4946

5047
__tests__/fixtures/openai.json: __tests__/fixtures/openai.yaml
@@ -55,28 +52,28 @@ __tests__/fixtures/openai.yaml: __tests__/fixtures/openai.yaml
5552
curl https://raw.githubusercontent.com/openai/openai-openapi/refs/heads/master/openapi.yaml --output $@
5653

5754
.PHONY: openai
58-
openai: __tests__/fixtures/openai.json dist
59-
node --enable-source-maps dist/bin/index.js \
55+
openai: __tests__/fixtures/openai.json
56+
node --enable-source-maps bin/index.ts \
6057
-i $< \
6158
-o __tests__/fixtures/openai
62-
pnpm exec prettier --write __tests__/fixtures/openai
59+
pnpm exec biome format --write __tests__/fixtures/openai
6360

6461
.PHONY: docker
65-
docker: __tests__/fixtures/docker.json dist
66-
node --enable-source-maps dist/bin/index.js \
62+
docker: __tests__/fixtures/docker.json
63+
node --enable-source-maps bin/index.ts \
6764
-i $< \
6865
-o __tests__/fixtures/docker
69-
pnpm exec prettier --write __tests__/fixtures/docker
66+
pnpm exec biome format --write __tests__/fixtures/docker
7067

7168

7269
# .PHONY: cloudflare
73-
# cloudflare: __tests__/fixtures/cloudflare/openapi.json dist
74-
# node --enable-source-maps dist/bin/index.js \
70+
# cloudflare: __tests__/fixtures/cloudflare/openapi.json
71+
# node --enable-source-maps bin/index.js \
7572
# -i __tests__/fixtures/cloudflare/openapi.json \
7673
# -o __tests__/fixtures/cloudflare
7774
# pnpm prettier --write __tests__/fixtures/cloudflare
7875

7976
.PHONY: pretty
8077
pretty: node_modules
8178
pnpm exec eslint --fix . || true
82-
pnpm exec prettier --write .
79+
pnpm exec biome format --write .

0 commit comments

Comments
 (0)