diff --git a/.kokoro/test.sh b/.kokoro/test.sh index eb25b89b9..4d6c3f831 100755 --- a/.kokoro/test.sh +++ b/.kokoro/test.sh @@ -22,5 +22,6 @@ cd $(dirname $0)/.. npm install npm test +./node_modules/nyc/bin/nyc.js report bash $KOKORO_GFILE_DIR/codecov.sh diff --git a/.nycrc b/.nycrc index a1a8e6920..feb032400 100644 --- a/.nycrc +++ b/.nycrc @@ -3,7 +3,8 @@ "exclude": [ "src/*{/*,/**/*}.js", "src/*/v*/*.js", - "test/**/*.js" + "test/**/*.js", + "build/test" ], "watermarks": { "branches": [ diff --git a/.prettierignore b/.prettierignore new file mode 100644 index 000000000..f6fac98b0 --- /dev/null +++ b/.prettierignore @@ -0,0 +1,3 @@ +node_modules/* +samples/node_modules/* +src/**/doc/* diff --git a/.prettierrc b/.prettierrc new file mode 100644 index 000000000..df6eac074 --- /dev/null +++ b/.prettierrc @@ -0,0 +1,8 @@ +--- +bracketSpacing: false +printWidth: 80 +semi: true +singleQuote: true +tabWidth: 2 +trailingComma: es5 +useTabs: false diff --git a/package.json b/package.json index 379ec724b..91b79bad1 100644 --- a/package.json +++ b/package.json @@ -28,7 +28,6 @@ "firestore" ], "scripts": { - "codecov": "nyc report --reporter=json && codecov -f .coverage/*.json", "predocs": "npm run compile", "docs": "jsdoc -c .jsdoc.js", "generate-scaffolding": "repo-tools generate all",