chore(coverage): move generate badge to pre-commit

This commit is contained in:
George Lima 2019-01-29 21:00:08 -03:00
parent 2303a0ea38
commit 2d7fc363b2
3 changed files with 2 additions and 16 deletions

View File

@ -77,7 +77,6 @@
"node-sass": "^4.8.3", "node-sass": "^4.8.3",
"postcss-loader": "^3.0.0", "postcss-loader": "^3.0.0",
"pre-commit": "^1.2.2", "pre-commit": "^1.2.2",
"pre-push": "^0.1.1",
"react-testing-library": "^5.3.1", "react-testing-library": "^5.3.1",
"redux-logger": "^3.0.6", "redux-logger": "^3.0.6",
"redux-mock-store": "^1.5.3", "redux-mock-store": "^1.5.3",
@ -127,12 +126,10 @@
"uuid": "^3.3.2" "uuid": "^3.3.2"
}, },
"pre-commit": [ "pre-commit": [
"flow:generate-coverage-badge",
"lint:precommit", "lint:precommit",
"flow:precommit" "flow:precommit"
], ],
"pre-push": [
"flow:generate-coverage-badge"
],
"build": { "build": {
"appId": "com.zcashfoundation", "appId": "com.zcashfoundation",
"productName": "ZEC Wallet", "productName": "ZEC Wallet",

1
public/flow-badge.svg Normal file
View File

@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" width="88" height="20"><linearGradient id="b" x2="0" y2="100%"><stop offset="0" stop-color="#bbb" stop-opacity=".1"/><stop offset="1" stop-opacity=".1"/></linearGradient><mask id="a"><rect width="88" height="20" rx="3" fill="#fff"/></mask><g mask="url(#a)"><path fill="#555" d="M0 0h34v20H0z"/><path fill="#4C1" d="M34 0h54v20H34z"/><path fill="url(#b)" d="M0 0h88v20H0z"/></g><g fill="#fff" text-anchor="middle" font-family="Verdana,DejaVu Sans,Geneva,sans-serif" font-size="11"><text x="17" y="15" fill="#010101" fill-opacity=".3">flow</text><text x="17" y="14">flow</text><text x="60" y="15" fill="#010101" fill-opacity=".3">passing</text><text x="60" y="14">passing</text></g></svg>

After

Width:  |  Height:  |  Size: 726 B

View File

@ -13039,13 +13039,6 @@ pre-commit@^1.2.2:
spawn-sync "^1.0.15" spawn-sync "^1.0.15"
which "1.2.x" which "1.2.x"
pre-push@^0.1.1:
version "0.1.1"
resolved "https://registry.yarnpkg.com/pre-push/-/pre-push-0.1.1.tgz#2a2a79827d243a76c91089897ac707f45e716aac"
integrity sha1-Kip5gn0kOnbJEImJescH9F5xaqw=
dependencies:
shelljs "0.3.x"
prelude-ls@~1.1.2: prelude-ls@~1.1.2:
version "1.1.2" version "1.1.2"
resolved "https://registry.yarnpkg.com/prelude-ls/-/prelude-ls-1.1.2.tgz#21932a549f5e52ffd9a827f570e04be62a97da54" resolved "https://registry.yarnpkg.com/prelude-ls/-/prelude-ls-1.1.2.tgz#21932a549f5e52ffd9a827f570e04be62a97da54"
@ -15029,11 +15022,6 @@ shell-quote@1.6.1:
array-reduce "~0.0.0" array-reduce "~0.0.0"
jsonify "~0.0.0" jsonify "~0.0.0"
shelljs@0.3.x:
version "0.3.0"
resolved "https://registry.yarnpkg.com/shelljs/-/shelljs-0.3.0.tgz#3596e6307a781544f591f37da618360f31db57b1"
integrity sha1-NZbmMHp4FUT1kfN9phg2DzHbV7E=
shellwords@^0.1.1: shellwords@^0.1.1:
version "0.1.1" version "0.1.1"
resolved "https://registry.yarnpkg.com/shellwords/-/shellwords-0.1.1.tgz#d6b9181c1a48d397324c84871efbcfc73fc0654b" resolved "https://registry.yarnpkg.com/shellwords/-/shellwords-0.1.1.tgz#d6b9181c1a48d397324c84871efbcfc73fc0654b"