@choose/make-badges
Advanced tools
Comparing version 0.0.1 to 0.0.2
@@ -69,3 +69,3 @@ "use strict"; | ||
if (hashKey === "tests") { | ||
message = `${parsedTests.numPassedTestSuites} passed, ${parsedTests.numFailedTestSuites} failed`; | ||
message = `${parsedTests.numPassedTests} passed, ${parsedTests.numFailedTests} failed`; | ||
color = (parsedTests.success) ? "brightgreen" : "red"; | ||
@@ -72,0 +72,0 @@ customLabel = arguments_1.getArgumentValue(`${hashKey}Label`); |
{ | ||
"name": "@choose/make-badges", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"main": "dist/index.js", | ||
@@ -16,6 +16,6 @@ "typings": "dist/index.d.ts", | ||
"compile": "tsc", | ||
"test": "jest --config jestconfig.json --passWithNoTests", | ||
"make-badges": "node dist/index.js", | ||
"test": "jest --config jestconfig.json --passWithNoTests --json", | ||
"make-badges": "yarn run build && node dist/index.js", | ||
"prepublishOnly": "yarn run build", | ||
"precommit": "yarn run test && yarn run make-badges && git add 'README.md'" | ||
"precommit": "(yarn run test || true) && yarn run make-badges && git add 'README.md'" | ||
}, | ||
@@ -22,0 +22,0 @@ "devDependencies": { |
@@ -5,3 +5,4 @@ # Choose Badges Readme | ||
![Tests](https://img.shields.io/badge/tests-1%20passed%2C%202%20failed-brightgreen.svg) ![Statements](https://img.shields.io/badge/coverage:statements-65.08%25-red.svg) ![Branches](https://img.shields.io/badge/coverage:branches-10%25-red.svg) ![Functions](https://img.shields.io/badge/coverage:functions-41.67%25-red.svg) ![Lines](https://img.shields.io/badge/coverage:lines-68.33%25-red.svg) | ||
![Tests](https://img.shields.io/badge/tests-1%20passed,%200%20failed-brightgreen.svg) | ||
![Statements](https://img.shields.io/badge/statements-Unknown%25-brightgreen.svg) ![Branches](https://img.shields.io/badge/branches-Unknown%25-brightgreen.svg) ![Functions](https://img.shields.io/badge/functions-Unknown%25-brightgreen.svg) ![Lines](https://img.shields.io/badge/lines-Unknown%25-brightgreen.svg) | ||
@@ -66,3 +67,3 @@ ## Table of Contents | ||
```bash | ||
yarn run @choose/make-badges | ||
yarn run choose-make-badges | ||
``` | ||
@@ -74,3 +75,3 @@ | ||
"scripts": { | ||
"make-badges": "@choose/make-badges", | ||
"make-badges": "choose-make-badges", | ||
} | ||
@@ -86,3 +87,3 @@ ``` | ||
```bash | ||
yarn run @choose/make-badges --coverageDir="./my-custom-coverage-directory" | ||
yarn run choose-make-badges --coverageDir="./my-custom-coverage-directory" | ||
``` | ||
@@ -93,3 +94,3 @@ | ||
```bash | ||
yarn run @choose/make-badges --readmeDir="./my-custom-readme-directory" | ||
yarn run choose-make-badges --readmeDir="./my-custom-readme-directory" | ||
``` | ||
@@ -100,3 +101,3 @@ | ||
```bash | ||
yarn run @choose/make-badges --silent | ||
yarn run choose-make-badges --silent | ||
``` | ||
@@ -107,3 +108,3 @@ | ||
```bash | ||
yarn run @choose/make-badges --functionsLabel='Mis funciones!' --branchesLabel='Branches are troublesome!' | ||
yarn run choose-make-badges --functionsLabel='Mis funciones!' --branchesLabel='Branches are troublesome!' | ||
``` | ||
@@ -110,0 +111,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
25373
110