1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-01-02 12:28:46 -05:00
denoland-deno/tools
David Sherret 9215aa60a6
refactor(node/npm): separate out permission check from npm resolvers (#27511)
Decouples permissions from the npm resolvers (towards moving the
resolvers out of the cli crate)
2025-01-02 10:05:52 -05:00
..
napi chore: Happy New Year 2025 (#27509) 2024-12-31 19:12:39 +00:00
release chore: Happy New Year 2025 (#27509) 2024-12-31 19:12:39 +00:00
build_bench.ts chore: Happy New Year 2025 (#27509) 2024-12-31 19:12:39 +00:00
build_benchmark_jsons.js chore: Happy New Year 2025 (#27509) 2024-12-31 19:12:39 +00:00
copyright_checker.js chore: Happy New Year 2025 (#27509) 2024-12-31 19:12:39 +00:00
core_import_map.json feat(unstable): support selectors in JS lint plugins (#27452) 2024-12-23 08:45:47 +01:00
cut_a_release.md docs: clarify release instructions (#24124) 2024-06-07 01:15:56 +00:00
deno.json chore: use @std prefix for internal module specifiers (#24543) 2024-07-25 10:26:54 +10:00
deno.lock.json chore: add npm distribution at deno package (#27346) 2024-12-12 23:43:43 +00:00
faster-rebuilds.md chore(build): document faster rebuilds with cargo plonk (#21823) 2024-01-06 16:27:04 +05:30
format.js chore: Happy New Year 2025 (#27509) 2024-12-31 19:12:39 +00:00
generate_types_deno.ts refactor(node/npm): separate out permission check from npm resolvers (#27511) 2025-01-02 10:05:52 -05:00
install_prebuilt.js chore: Happy New Year 2025 (#27509) 2024-12-31 19:12:39 +00:00
jsdoc_checker.js chore: Happy New Year 2025 (#27509) 2024-12-31 19:12:39 +00:00
lint.js chore: Happy New Year 2025 (#27509) 2024-12-31 19:12:39 +00:00
ops.d.ts chore: Happy New Year 2025 (#27509) 2024-12-31 19:12:39 +00: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: Happy New Year 2025 (#27509) 2024-12-31 19:12:39 +00:00
util.js chore: Happy New Year 2025 (#27509) 2024-12-31 19:12:39 +00:00
verify_pr_title.js chore: Happy New Year 2025 (#27509) 2024-12-31 19:12:39 +00:00
wgpu_sync.js chore: Happy New Year 2025 (#27509) 2024-12-31 19:12:39 +00: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.