1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-11 01:58:05 -05:00
denoland-deno/tools/format.sh
2018-07-01 13:47:28 +02:00

20 lines
390 B
Bash
Executable file

#!/bin/sh
set -e
cd `dirname "$0"`/..
clang-format -i -style Google src/*.cc src/*.h src/include/*.h
gn format BUILD.gn
gn format deno.gni
gn format .gn
yapf -i src/js/*.py
prettier --write \
src/js/deno.d.ts \
src/js/main.ts \
src/js/mock_runtime.js \
src/js/tsconfig.json
# Do not format these.
# src/js/msg.pb.js
# src/js/msg.pb.d.ts
rustfmt --write-mode overwrite src/*.rs