1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-22 07:14:47 -05:00
denoland-deno/tools/format.sh
Ryan Dahl 15d6541d4d Separate deno.gni and rust.gni and clean up.
Put rust depfile in target_out_dir because the depfile isn't in the
outputs, the gen directory doesn't get created.

Prefix rlib files with lib.
2018-07-04 14:24:25 +02:00

21 lines
378 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 rust.gni
gn format .gn
yapf -i js/*.py
prettier --write \
js/deno.d.ts \
js/main.ts \
js/mock_runtime.js \
tsconfig.json
# Do not format these.
# js/msg.pb.js
# js/msg.pb.d.ts
rustfmt --write-mode overwrite src/*.rs