1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-24 08:09:08 -05:00
denoland-deno/tools
2024-07-12 18:44:55 -04:00
..
napi FUTURE: remove import assertions support for JavaScript (#23541) 2024-04-29 22:43:05 +02:00
release chore: include current versions more in release checklist (#24562) 2024-07-12 18:44:55 -04:00
build_bench.ts chore: use granular unstable flags in tools/ (#22138) 2024-01-26 22:35:43 +00:00
build_benchmark_jsons.js chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
copyright_checker.js feat(node): buffer isUtf8/isAscii (#23928) 2024-05-21 15:50:59 -07:00
core_import_map.json chore: add std import mapping for tests (#24521) 2024-07-11 10:03:29 +02:00
cut_a_release.md docs: clarify release instructions (#24124) 2024-06-07 01:15:56 +00:00
deno.lock.json chore: forward v1.42.2 release commit to main (#23315) 2024-04-11 13:37:24 +05:30
faster-rebuilds.md chore(build): document faster rebuilds with cargo plonk (#21823) 2024-01-06 16:27:04 +05:30
format.js chore: format yaml internally (#24520) 2024-07-10 23:59:57 -04:00
install_prebuilt.js chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
jsdoc_checker.js refactor(docs): use @experimental instead of @tags unstable (#23884) 2024-05-22 04:31:51 -07:00
lint.js chore: upgrade dlint to 0.60.0 (#24041) 2024-06-05 01:09:29 +02:00
README.md chore: use granular unstable flags in tools/ (#22138) 2024-01-26 22:35:43 +00:00
update_typescript.md fix: update to TypeScript 4.7.4 (#15022) 2022-07-04 15:13:50 +10:00
upload_wptfyi.js chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
util.js fix: Rewrite Node-API (#24101) 2024-06-10 16:20:44 +00:00
verify_pr_title.js build: fix 'deno_core' PR title lint (#24183) 2024-06-11 19:50:02 -04:00
wgpu_sync.js chore: cleanup unused dependencies (#23787) 2024-05-13 14:23:39 -07:00

Tools

Documentation for various tooling in support of Deno development.

format.js

This script will format the code (currently using dprint, rustfmt). It is a prerequisite to run this before code check in.

To run formatting:

deno run --allow-read --allow-write --allow-run ./tools/format.js

lint.js

This script will lint the code base (currently using dlint, clippy). It is a prerequisite to run this before code check in.

To run linting:

deno run --allow-read --allow-write --allow-run ./tools/lint.js

Tip: You can also use cargo to run the current or pending build of the deno executable

cargo run -- run --allow-read --allow-write --allow-run ./tools/<script>

wgpu_sync.js

wgpu_sync.js streamlines updating deno_webgpu from gfx-rs/wgpu.

It essentially vendors the deno_webgpu tree with a few minor patches applied on top, somewhat similar to git subtree.

  1. Update COMMIT or V_WGPU in ./tools/wgpu_sync.js
  2. Run ./tools/wgpu_sync.js
  3. Double check changes, possibly patch
  4. Commit & send a PR with the updates

copyright_checker.js is used to check copyright headers in the codebase.

To run the copyright checker:

deno run --allow-read --allow-run  ./tools/copyright_checker.js

Then it will check all code files in the repository and report any files that are not properly licensed.