Skip to content

Commit

Permalink
refactor(deno): Follow the Deno 2 (#81)
Browse files Browse the repository at this point in the history
Get the benefits of the Deno 2.
  • Loading branch information
5ouma committed Oct 11, 2024
1 parent 1bbd450 commit 68307ee
Show file tree
Hide file tree
Showing 9 changed files with 206 additions and 177 deletions.
4 changes: 1 addition & 3 deletions .github/actions/setup-deno-with-cache/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@ runs:

steps:
- name: 🦕 Setup Deno
uses: denoland/setup-deno@5e01c016a857a4dbb5afe9d0f9733cd472cba985 # v1.5.1
with:
deno-version: v1.x
uses: denoland/setup-deno@4606d5cc6fb3f673efd4f594850e3f4b3e9d29cd # v2.0.0

- name: 🫙 Cache Deno Dependencies
uses: actions/cache@3624ceb22c1c5a301c8db4169662070a689d9ea8 # v4.1.1
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ jobs:
uses: ./.github/actions/setup-deno-with-cache

- name: 🔍 Type Check
run: deno check ./src
run: deno check --doc ./src

test:
name: 🧪 Test
Expand Down
11 changes: 6 additions & 5 deletions deno.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,16 @@
},
"fmt": { "exclude": ["LICENSE", "README.md", ".github/**/*.md"] },
"tasks": {
"serve": "deno serve --env='.env' --allow-env --allow-net='api.github.com'",
"start": "deno task serve src/server.ts",
"dev": "deno task serve --watch src/server.ts",
"test": "deno test --allow-env --allow-net='api.github.com' --parallel --shuffle",
"run": "deno run --env-file='.env' -EN='api.github.com'",
"start": "deno task run src/server.ts",
"dev": "deno task run --watch src/server.ts",
"test": "deno test --doc -EN='api.github.com' --parallel --shuffle",
"cov": "deno task test --coverage && deno coverage --lcov > coverage.lcov"
},
"imports": {
"@octokit/rest": "npm:@octokit/[email protected]",
"@hono/hono": "jsr:@hono/[email protected]",
"@octokit/request-error": "npm:@octokit/[email protected]",
"@octokit/rest": "npm:@octokit/[email protected]",
"@std/assert": "jsr:@std/[email protected]",
"@std/http": "jsr:@std/[email protected]",
"@std/path": "jsr:@std/[email protected]"
Expand Down
327 changes: 161 additions & 166 deletions deno.lock

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

Loading

0 comments on commit 68307ee

Please sign in to comment.