Skip to content

Commit

Permalink
V2 (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
axetroy committed Mar 7, 2024
1 parent 3b4ab97 commit ae35212
Show file tree
Hide file tree
Showing 42 changed files with 12,478 additions and 2,390 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Expand Up @@ -4,4 +4,5 @@ swagger.json
.DS_Store
swagger
swagger.exe
dist/*.js
dist/*.js
dist/*.mjs
2 changes: 1 addition & 1 deletion .vscode/settings.json
@@ -1,7 +1,7 @@
{
"deno.enable": true,
"deno.unstable": true,
"deno.lint": false,
"deno.lint": true,
"deno.suggest.imports.hosts": {
"https://deno.land": false
}
Expand Down
10 changes: 5 additions & 5 deletions Makefile
@@ -1,11 +1,11 @@
default:
@deno compile --unstable --lite --target x86_64-pc-windows-msvc -A mod.ts
@deno compile --unstable --lite --target x86_64-unknown-linux-gnu -A mod.ts
@deno compile --unstable --lite --target x86_64-apple-darwin -A mod.ts
@deno compile --unstable --lite --target aarch64-apple-darwin -A mod.ts
@deno compile --unstable --target x86_64-pc-windows-msvc -A mod.ts
@deno compile --unstable --target x86_64-unknown-linux-gnu -A mod.ts
@deno compile --unstable --target x86_64-apple-darwin -A mod.ts
@deno compile --unstable --target aarch64-apple-darwin -A mod.ts

bundle:
@deno bundle ./v3/index.ts ./dist/v3.mjs
@deno bundle ./v3/mod.ts ./dist/v3.mjs

format-ceck:
@deno fmt --check
Expand Down
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -20,7 +20,7 @@ deno install \
--no-check \
--reload \
-f \
https://github.com/axetroy/swagger2ts/raw/v0.2.24/swagger2ts.ts
https://github.com/axetroy/swagger2ts/raw/v0.2.26/swagger2ts.ts
```

或者通过 [npm](https://npmjs.com) 安装
Expand Down Expand Up @@ -52,7 +52,7 @@ console.log(output);
#### 通过 Deno 函数调用

```ts
import { generate } from "https://github.com/axetroy/swagger2ts/raw/v0.2.24/generate.ts";
import { generate } from "https://github.com/axetroy/swagger2ts/raw/v0.2.26/generate.ts";

const output = await generate("/path/to/swagger.json");
// const output = await generate("https://example.com/swagger.json");
Expand Down
4 changes: 2 additions & 2 deletions README_en-US.md
Expand Up @@ -20,7 +20,7 @@ deno install \
--no-check \
--reload \
-f \
https://github.com/axetroy/swagger2ts/raw/v0.2.24/swagger2ts.ts
https://github.com/axetroy/swagger2ts/raw/v0.2.26/swagger2ts.ts
```

or install via [npm](https://npmjs.com)
Expand Down Expand Up @@ -52,7 +52,7 @@ console.log(output);
#### Use it in Deno api

```ts
import { generate } from "https://github.com/axetroy/swagger2ts/raw/v0.2.24/generate.ts";
import { generate } from "https://github.com/axetroy/swagger2ts/raw/v0.2.26/generate.ts";

const output = await generate("/path/to/swagger.json");
// const output = await generate("https://example.com/swagger.json");
Expand Down

0 comments on commit ae35212

Please sign in to comment.