# dv-plugin-analyze-commits

> A plugin for semantic release to configure semver bumping behavior

Latest version **1.0.1** (published 2017-08-19) · MIT license · 0 weekly downloads

## Install

```sh
npm install dv-plugin-analyze-commits
pnpm add dv-plugin-analyze-commits
yarn add dv-plugin-analyze-commits
bun add dv-plugin-analyze-commits
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2017-08-19 |
| First published | 2017-08-18 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Dexter Vu |
| Maintainers | rantrix |
| Keywords | dv analyze commits, analyze commits, semantic release, plugin |

## Links

- npm: https://www.npmjs.com/package/dv-plugin-analyze-commits
- Repository: https://github.com/rantrix/dv-plugin-analyze-commits
- Homepage: https://github.com/rantrix/dv-plugin-analyze-commits/#readme
- Issues: https://github.com/rantrix/dv-plugin-analyze-commits/issues
- npm.io page: https://npm.io/package/dv-plugin-analyze-commits

## Dependencies (3)

- [lodash.get](https://npm.io/package/lodash.get.md) ^4.4.2
- [findup-sync](https://npm.io/package/findup-sync.md) ^2.0.0
- [conventional-commits-parser](https://npm.io/package/conventional-commits-parser.md) ^1.3.0

## Recent versions

- 1.0.1 (latest) — 2017-08-19
- 1.0.0 — 2017-08-18

## README

# Semantic Release Analyze Commits Plugin!

[![MIT License][npm-license-badge]][npm-license-link]
[![Version][npm-version-badge]][npm-version-link]
[![Travis Build Status][travis-badge]][travis-link]
[![Code Coverage][codecov-badge]][codecov-link]

A [semantic-release][semantic-release] plugin to configure the logic of analyzing
commits for bumping the package semver by major, minor, or patch release.

[![Watch on GitHub][github-watch-badge]][github-watch-link]
[![Star on GitHub][github-star-badge]][github-star-link]
[![Tweet][twitter-badge]][twitter-link]

# Getting Started

This is a plugin for [semantic-release][semantic-release] so you'll need to have
it already installed.

```
npm install -D dv-plugin-analyze-commits
// or
yarn add -D dv-plugin-analyze-commits
```

Configure `semantic-release` to use the plugin for analyzing commits in your
`package.json`:

```
{
  "release": {
    "analyzeCommits": "node_modules/dv-plugin-analyze-commits/src/index.js"
  }
}
```

The plugin uses this default [config file](src/defaultConfig/index.js) to
determine how to bump the semver.

# Configuration

#### `.acrc.js` or `.acrc.json` config file

To configure the behavior yourself, create a `.acrc.js` file at the root of your
project and the plugin will pick it up.

```
// .acrc.js
module.exports = {
  major: {
    types: [...],
    notes: [...]
  },
  minor: {
    types: [...],
    notes: [...]
  },
  patch: {
    types: [...],
    notes: [...]
  }
};
```

#### config from `package.json`

You can also add the same configuration inside your `package.json` as well:

```
// package.json
{
  ...
  "config": {
    "dvAnalyzeCommits": {
      major: {
        types: [...],
        notes: [...]
      },
      minor: {
        types: [...],
        notes: [...]
      },
      patch: {
        types: [...],
        notes: [...]
      }
    }
  }
  ...
}
```

`.acrc.js` has priority over the config in `package.json`.

#### Specifying a config filepath

You can also specify a specific path for the config inside your `package.json`
and it'll look for it instead of `.acrc.js`.

```
// package.json
{
  ...
  "config": {
    "dvAnalyzeCommits": {
      "configFilepath": 'config/dvAnalyzeCommits.js'
    }
  }
  ...
}
```

#### **All `notes` and `types` are case sensitive**

# Analyzing Commit Messages

`type` and `note` are all case sensitive based on the configuration.

#### Type

```
feat: add a new feature

Add the new feature
```

`feat` is the type.

#### Note

```
feat: add a new feature

BUMP MAJOR: Will need
```

`BUMP MAJOR` is the note.

# License

[MIT](LICENSE). Copyright (c) 2017 Dexter Vu.

[codecov-badge]: https://img.shields.io/codecov/c/github/rantrix/dv-plugin-analyze-commits.svg?style=flat-square
[codecov-link]: https://codecov.io/github/rantrix/dv-plugin-analyze-commits
[github-watch-badge]: https://img.shields.io/github/watchers/rantrix/dv-plugin-analyze-commits.svg?style=social
[github-watch-link]: https://github.com/rantrix/dv-plugin-analyze-commits/watchers
[github-star-badge]: https://img.shields.io/github/stars/rantrix/dv-plugin-analyze-commits.svg?style=social
[github-star-link]: https://github.com/rantrix/dv-plugin-analyze-commits/stargazers
[npm-license-badge]: https://img.shields.io/npm/l/dv-plugin-analyze-commits.svg?style=flat-square
[npm-license-link]: https://github.com/rantrix/dv-plugin-analyze-commits/blob/master/LICENSE
[npm-version-badge]: https://img.shields.io/npm/v/dv-plugin-analyze-commits.svg?style=flat-square
[npm-version-link]: https://www.npmjs.com/package/dv-plugin-analyze-commits
[semantic-release]: https://github.com/semantic-release/semantic-release
[travis-badge]: https://img.shields.io/travis/rantrix/dv-plugin-analyze-commits.svg?style=flat-square
[travis-link]: https://travis-ci.org/rantrix/dv-plugin-analyze-commits
[twitter-badge]: https://img.shields.io/twitter/url/https/github.com/rantrix/dv-plugin-analyze-commits.svg?style=social
[twitter-link]: https://twitter.com/intent/tweet?text=Check%20out%20the%20dv-plugin-analyze-commits!%20https://github.com/rantrix/dv-plugin-analyze-commits%20%F0%9F%91%8D

---
_Source: https://npm.io/package/dv-plugin-analyze-commits · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
