1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-22 15:24:46 -05:00
denoland-deno/tools/format.sh

25 lines
457 B
Bash
Raw Normal View History

#!/bin/sh
set -e
cd `dirname "$0"`/..
clang-format -i -style Google src/*.cc src/*.h
gn format BUILD.gn
gn format build_extra/deno.gni
gn format build_extra/rust/rust.gni
gn format build_extra/rust/BUILD.gn
gn format .gn
yapf -i js/*.py
2018-07-05 20:25:38 -04:00
yapf -i tools/*.py
prettier --write \
js/deno.d.ts \
js/main.ts \
js/mock_runtime.js \
tsconfig.json
# Do not format these.
2018-07-04 14:50:28 -04:00
# js/msg_generated.ts
# js/flatbuffers.js
rustfmt --write-mode overwrite src/*.rs