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

Reorg: Move tools/ and gitignore to root.

This commit is contained in:
Ryan Dahl 2018-06-27 11:48:19 +02:00
parent c2deb54daf
commit 467408c6dc
6 changed files with 38 additions and 30 deletions

8
.gitignore vendored Normal file
View file

@ -0,0 +1,8 @@
/src/out/
node_modules
/src/v8/
/src/tools/protoc_wrapper/
/src/third_party/protobuf/
/src/third_party/zlib/
/src/third_party/rust_crates/libc/
/src/.gclient_entries

9
src/.gitignore vendored
View file

@ -1,9 +0,0 @@
out/
js/.cache/
js/node_modules/
v8/
tools/protoc_wrapper/
third_party/protobuf/
third_party/zlib/
third_party/rust_crates/libc/
.gclient_entries

View file

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

View file

@ -1,4 +0,0 @@
#!/bin/sh
cd `dirname "$0"`/..
set -e -v
cpplint --filter=-build/include_subdir --repository=. *.cc *.h include/*.h

23
tools/format.sh Executable file
View file

@ -0,0 +1,23 @@
#!/bin/sh
set -e
cd `dirname "$0"`/..
clang-format -i -style Google src/*.cc src/*.h src/include/*.h
# TODO(ry) Remove pushd/popd once .gn is moved to root.
pushd src/
gn format BUILD.gn
gn format deno.gni
gn format .gn
popd
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

7
tools/lint.sh Executable file
View file

@ -0,0 +1,7 @@
#!/bin/sh
set -e
cd `dirname "$0"`/..
cpplint --filter=-build/include_subdir --repository=src \
src/*.cc \
src/*.h \
src/include/*.h