mirror of
https://github.com/denoland/deno.git
synced 2024-12-22 07:14:47 -05:00
d30664958e
Move rust.gni and deno.gni into build_extra/ Removes rust_library which was only an action. This instead defines rust_component, which is an action plus a gn "component" target to expose the resulting object file. This simplifies link code in rust.gni. Support rust modules that can be linked into C++.
24 lines
457 B
Bash
Executable file
24 lines
457 B
Bash
Executable file
#!/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
|
|
yapf -i tools/*.py
|
|
|
|
prettier --write \
|
|
js/deno.d.ts \
|
|
js/main.ts \
|
|
js/mock_runtime.js \
|
|
tsconfig.json
|
|
# Do not format these.
|
|
# js/msg_generated.ts
|
|
# js/flatbuffers.js
|
|
|
|
rustfmt --write-mode overwrite src/*.rs
|