Skip to content

Commit

Permalink
Add deno tasks and vscode settings
Browse files Browse the repository at this point in the history
  • Loading branch information
ejsmith committed Dec 15, 2024
1 parent 4ceeb33 commit cf10ce0
Show file tree
Hide file tree
Showing 4 changed files with 190 additions and 25 deletions.
7 changes: 5 additions & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
{
"deno.enable": true,
"editor.formatOnSave": true
}
"deno.lint": true,
"deno.cacheOnSave": true,
"editor.formatOnSave": true,
"editor.defaultFormatter": "denoland.vscode-deno"
}
50 changes: 50 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
{
"version": "2.0.0",
"tasks": [
{
"type": "deno",
"command": "lint",
"problemMatcher": [
"$deno-lint"
],
"group": "test",
"label": "deno: lint"
},
{
"type": "deno",
"command": "task",
"args": [
"check"
],
"problemMatcher": [
"$deno"
],
"label": "deno: check",
"detail": "$ deno check scripts/*.ts *.ts src/*.ts"
},
{
"type": "deno",
"command": "task",
"args": [
"build"
],
"problemMatcher": [
"$deno"
],
"label": "deno: build",
"detail": "$ deno task build"
},
{
"type": "deno",
"command": "test",
"args": [
"--allow-net"
],
"problemMatcher": [
"$deno-test"
],
"group": "test",
"label": "deno: test"
}
]
}
12 changes: 8 additions & 4 deletions deno.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,16 @@
"exports": "./mod.ts",
"name": "@exceptionless/fetchclient",
"tasks": {
"build": "deno run -A scripts/build.ts"
"build": "deno run -A scripts/build.ts",
"check": "deno check scripts/*.ts *.ts src/*.ts",
"format-check": "deno fmt --check",
"lint": "deno lint",
"test": "deno test --allow-net"
},
"imports": {
"@deno/dnt": "jsr:@deno/dnt@^0.41.2",
"@std/assert": "jsr:@std/assert@0.225.3",
"@std/path": "jsr:@std/path@^0.225.1"
"@deno/dnt": "jsr:@deno/dnt@^0.41.3",
"@std/assert": "jsr:@std/assert@^1.0.9",
"@std/path": "jsr:@std/path@^1.0.8"
},
"exclude": ["npm"]
}
146 changes: 127 additions & 19 deletions deno.lock

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

0 comments on commit cf10ce0

Please sign in to comment.