add yarn format

This commit is contained in:
vsavkin 2017-08-24 20:59:53 -04:00
parent 2f118f0dc6
commit 20d7a1b8d9
2 changed files with 5 additions and 0 deletions

View File

@ -6,6 +6,7 @@
"scripts": {
"build": "./scripts/build.sh",
"e2e": "yarn build && ./scripts/e2e.sh",
"format": "./scripts/format.sh",
"package": "./scripts/package.sh",
"release": "./scripts/release.sh",
"test": "yarn build && ./scripts/test.sh"

4
scripts/format.sh Executable file
View File

@ -0,0 +1,4 @@
#!/usr/bin/env bash
find src/ -iname *.ts| xargs clang-format -i
find e2e/ -iname *.ts| xargs clang-format -i