<p align="center" <a href="https://github.com/Kibibit/dev-tools" target="blank"<img src="logo.png" width="150" </a <h2 align="center" @kibibit/dev-tools </h2 </p <p align="center" <a href="https://www.npmjs.com/package/@kibibit/dev-tools"<img src="https://img.shields.io/npm/v/@kibibit/dev-tools/latest.svg?style=for-the-badge&logo=npm&color=CB3837"</a </p <p align="center" <a href="https://www.npmjs.com/package/@kibibit/dev-tools"<img src="https://img.shields.io/npm/v/@kibibit/dev-tools/beta.svg?logo=npm&color=CB3837"</a <a href="https://codecov.io/gh/Kibibit/dev-tools" <img src="https://codecov.io/gh/Kibibit/dev-tools/branch/beta/graph/badge.svg?token=DrXLrpuExK" </a <a href="https://github.com/Kibibit/dev-tools/actions/workflows/build.yml" <img src="https://github.com/Kibibit/dev-tools/actions/workflows/build.yml/badge.svg?style=flat-square&branch=beta" alt="Build" </a <a href="https://github.com/Kibibit/dev-tools/actions/workflows/tests.yml" <img src="https://github.com/Kibibit/dev-tools/actions/workflows/tests.yml/badge.svg?style=flat-square&branch=beta" alt="Tests" </a <a href="https://github.com/semantic-release/semantic-release"<img src="https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg"</a <!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -- <a href="#contributors-"<img src="https://img.shields.io/badge/allcontributors-1-orange.svg?style=flat-square" alt="All Contributors"</a <!-- ALL-CONTRIBUTORS-BADGE:END -- </p <p align="center" Scripts to make development easier </p <hr
Usage
Install globally
npm install --global @kibibit/dev-toolsor locally
npm install --save-dev @kibibit/dev-toolsThen, go into a git project folder and run
kb-prune-mergedto prune local branches that merged and deleted on cloud
Or use this command in your git hooks to prevent accidental commits to protected branches:
kb-disallow-master-commitsfor example, husky
package.json
/* ... */
"scripts": {
"disallow-master-commits": "kb-disallow-master-commits"
}Then, add it as a pre-commit git hook:
npx husky add .husky/pre-commit "npm run disallow-master-commits"
git add .husky/pre-commit- Supports JSON\YAML files\env variables\cli flags as configuration inputs. See yaml-config in the examples folder
- Supports shared configuration files (same file shared for multiple projects)
- initialize a configuration file with --saveToFile or --init
- save configuration files anywhere above your project's package.json
- forced singleton for a single installation (reuse same class)
- testable
- The ability to create json schemas automatically and add descriptions