Skip to content

Commit

Permalink
Migrate to Deno and JSR
Browse files Browse the repository at this point in the history
  • Loading branch information
etienne-dldc committed May 18, 2024
1 parent a25cbc2 commit 1b27721
Show file tree
Hide file tree
Showing 94 changed files with 2,629 additions and 7,655 deletions.
3 changes: 0 additions & 3 deletions .dldc.json

This file was deleted.

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"
}
25 changes: 25 additions & 0 deletions deno.jsonc
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"name": "@dldc/serve",
"version": "3.0.0",
"exports": "./mod.ts",
"imports": {
"@dldc/chemin": "jsr:@dldc/chemin@^12.0.0",
"@dldc/compose": "jsr:@dldc/compose@^6.0.2",
"@dldc/erreur": "jsr:@dldc/erreur@^7.1.1",
"@dldc/stack": "jsr:@dldc/stack@^6.0.2",
"@dldc/zenjson": "jsr:@dldc/zenjson@^3.0.1",
"@std/assert": "jsr:@std/assert@^0.225.1",
"@std/expect": "jsr:@std/expect@^0.224.0",
"@std/http": "jsr:@std/http@^0.224.0"
},
"tasks": {
"test": "deno test -A",
"test:watch": "deno test -A --watch",
"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"
},
"lint": {
"rules": { "exclude": ["no-explicit-any"] }
}
}
290 changes: 290 additions & 0 deletions deno.lock

Large diffs are not rendered by default.

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

This file was deleted.

11 changes: 11 additions & 0 deletions mod.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
export * from "./src/compression/mod.ts";
export * from "./src/content-type/mod.ts";
export * from "./src/cookie/mod.ts";
export * from "./src/core/mod.ts";
export * from "./src/cors/mod.ts";
export * from "./src/errors/mod.ts";
export * from "./src/json/mod.ts";
export * from "./src/logger/mod.ts";
export * from "./src/rate-limit/mod.ts";
export * from "./src/router/mod.ts";
export * from "./src/zenjson/mod.ts";
71 changes: 0 additions & 71 deletions package.json

This file was deleted.

Loading

0 comments on commit 1b27721

Please sign in to comment.