0
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-03-04 09:57:11 -05:00
deno/tools
2024-08-22 15:29:42 +02:00
..
napi
release chore: enable no-console dlint rule (#25113) 2024-08-20 15:14:37 -04:00
build_bench.ts
build_benchmark_jsons.js
copyright_checker.js chore: enable no-console dlint rule (#25113) 2024-08-20 15:14:37 -04:00
core_import_map.json fix(ext/node): register node:wasi built-in (#25134) 2024-08-22 15:29:42 +02:00
cut_a_release.md
deno.json
deno.lock.json ci: add script to promote to RC release (#25072) 2024-08-16 23:59:10 +02:00
faster-rebuilds.md
format.js
install_prebuilt.js
jsdoc_checker.js
lint.js chore: enable no-console dlint rule (#25113) 2024-08-20 15:14:37 -04:00
ops.d.ts
README.md
update_typescript.md
upload_wptfyi.js chore: enable no-console dlint rule (#25113) 2024-08-20 15:14:37 -04:00
util.js chore: enable no-console dlint rule (#25113) 2024-08-20 15:14:37 -04:00
verify_pr_title.js chore: enable no-console dlint rule (#25113) 2024-08-20 15:14:37 -04:00
wgpu_sync.js

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.