Skip to content

Commit

Permalink
Reorg: Move tools/ and gitignore to root.
Browse files Browse the repository at this point in the history
  • Loading branch information
ry committed Jun 28, 2018
1 parent c2deb54 commit 467408c
Show file tree
Hide file tree
Showing 6 changed files with 38 additions and 30 deletions.
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -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 changes: 0 additions & 9 deletions src/.gitignore

This file was deleted.

17 changes: 0 additions & 17 deletions src/tools/format.sh

This file was deleted.

4 changes: 0 additions & 4 deletions src/tools/lint.sh

This file was deleted.

23 changes: 23 additions & 0 deletions tools/format.sh
Original file line number Diff line number Diff line change
@@ -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 changes: 7 additions & 0 deletions tools/lint.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 467408c

Please sign in to comment.