Skip to content

Commit

Permalink
chore: misc updates
Browse files Browse the repository at this point in the history
  • Loading branch information
kt3k committed Jun 17, 2024
1 parent 66824c0 commit 45b5e04
Show file tree
Hide file tree
Showing 5 changed files with 232 additions and 202 deletions.
4 changes: 1 addition & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/cov
/html_cov
/coverage
/lcov.info
/.vscode
/node
5 changes: 5 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"deno.enable": true,
"editor.formatOnSave": true,
"editor.defaultFormatter": "denoland.vscode-deno"
}
11 changes: 7 additions & 4 deletions deno.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,20 @@
},
"exclude": ["node", "dist.js", "dist.min.js"],
"tasks": {
"test": "deno test --config deno.json -A --unstable --ignore=node",
"cov": "deno test --config deno.json --coverage=cov -A --unstable --no-check --ignore=node",
"test": "deno test -A",
"cov": "deno test --coverage -A",
"lcov": "deno coverage --lcov cov > lcov.info",
"html_cov": "genhtml -o html_cov lcov.info",
"dist": "deno bundle --config deno.json mod.ts > dist.js",
"html_cov": "deno coverage --html",
"dist": "deno run -A jsr:@kt3k/pack mod.ts > dist.js",
"min": "deno run -A npm:terser --compress --mangle --toplevel -o dist.min.js -- dist.js",
"size": "deno run --allow-read https://deno.land/x/[email protected]/cli.ts --include-original dist.min.js",
"dnt": "deno run -A dnt.ts",
"twd": "deno run -A --allow-read=. --allow-write=style.css --allow-net=deno.land,esm.sh,cdn.esm.sh https://deno.land/x/[email protected]/cli.ts -o style.css index.html",
"twd-w": "deno task twd -- -w",
"npm-publish": "rm -rf node && deno task dnt && cd node && npm publish",
"start": "deno run --allow-read=. --allow-net=0.0.0.0:8000 deploy.ts"
},
"imports": {
"@std/assert": "jsr:@std/assert@^0.226.0"
}
}
Loading

0 comments on commit 45b5e04

Please sign in to comment.