@beuluis/hook-cli
Advanced tools
Comparing version 1.0.4 to 1.0.5
{ | ||
"name": "@beuluis/hook-cli", | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"description": "A small hook cli that can be used with for example husky", | ||
@@ -5,0 +5,0 @@ "bin": { |
@@ -43,16 +43,6 @@ [![Contributors][contributors-shield]][contributors-url] | ||
1. Add script to `package.json` | ||
Run commands. For example using the hooks in `.husky` | ||
```json | ||
{ | ||
"scripts": { | ||
"hook-cli": "hook-cli" | ||
} | ||
} | ||
``` | ||
2. start using the hooks in `.husky` | ||
```bash | ||
npm run hook-cli -- [command] [...] | ||
npx hook-cli [command] [...] | ||
``` | ||
@@ -76,23 +66,23 @@ | ||
```bash | ||
npm run hook-cli -- checkForVulnerabilities | ||
npx hook-cli checkForVulnerabilities | ||
``` | ||
```bash | ||
npm run hook-cli -- checkForVulnerabilities --package-manager yarn | ||
npx hook-cli checkForVulnerabilities --package-manager yarn | ||
``` | ||
```bash | ||
npm run hook-cli -- checkForVulnerabilities --audit-level low | ||
npx hook-cli checkForVulnerabilities --audit-level low | ||
``` | ||
```bash | ||
npm run hook-cli -- checkForVulnerabilities --no-fail | ||
npx hook-cli checkForVulnerabilities --no-fail | ||
``` | ||
```bash | ||
npm run hook-cli -- checkForVulnerabilities --prod | ||
npx hook-clicheckForVulnerabilities --prod | ||
``` | ||
```bash | ||
npm run hook-cli -- checkForVulnerabilities -l high -m yarn -n -p | ||
npx hook-cli checkForVulnerabilities -l high -m yarn -n -p | ||
``` | ||
@@ -104,5 +94,11 @@ | ||
Print help page for command | ||
- Print help page for command | ||
```bash | ||
npx hook-cli [command] --help | ||
``` | ||
- Test command during development | ||
```bash | ||
npm run hook-cli -- [command] --help | ||
@@ -109,0 +105,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
50789
134