Skip to content

Commit

Permalink
Follow the Deno 2 (#81)
Browse files Browse the repository at this point in the history
<!-- markdownlint-disable MD041 -->

### ⚠️ Issue

close #

<br />

### πŸ”„ Type of the Change

- [ ] πŸŽ‰ New Feature
- [ ] 🧰 Bug
- [ ] πŸ›‘οΈ Security
- [ ] πŸ“– Documentation
- [ ] 🏎️ Performance
- [x] 🧹 Refactoring
- [ ] πŸ§ͺ Testing
- [ ] πŸ”§ Maintenance
- [ ] 🎽 CI
- [ ] ⛓️ Dependencies
- [ ] 🧠 Meta

<br />

### ✏️ Description

Get the benefits of the Deno 2.

<!--
A clear and concise description
  - Why did you make this change?
  - Please describe how this method is better than others.
-->

<br />

- [x] I agree to follow the [Code of
Conduct](https://github.com/5ouma/reproxy/blob/main/.github/CODE_OF_CONDUCT.md).

---------

Signed-off-by: Souma <[email protected]>
  • Loading branch information
5ouma authored Oct 11, 2024
1 parent 1bbd450 commit 66773fb
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 66773fb

Please sign in to comment.