npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@interaktiv/conventional-changelog-dia

v1.0.2

Published

conventional-changelog conventionalcommits.org preset with slightly adjustments for projects at DIA

Downloads

5

Readme

@interaktiv/conventional-changelog-dia

conventional-changelog conventionalcommits.org preset with slightly adjustments for projects at DIA.

Commitizen friendly Conventional Commits Semantic Release Code of Conduct MIT License

npm latest version npm next version

Table of Contents

conventionalcommits.org convention

A concrete implementation of the specification described at conventionalcommits.org for automated CHANGELOG generation and version management.

See conventional-changelog-config-spec for available configuration options.

This is a extended version of the conventional-changelog-conventionalcommits preset with following differences:

  • Issue links are highlighted automatically by BitBucket e.g. #12345. But if there is a JIRA ticket reference like #EXM-123, then JIRA links will be generated - if configured see Configuration

  • Pull Requests and issues can have the same number on Bitbucket e.g. 1234.

    Therefore referencing a pull request should be done like this:

    pull request #1234 or pr #5678

    The pull request|pr part will be omitted and a link generated e.g.

    [#1234](https://github.com/MY-USER/MY-REPO/pulls/1234)

    or

    [#5678](https://github.com/MY-USER/MY-REPO/pulls/1234)

    By default this will create a Github Pull Requests url format. See Configuration for how to adjust the pull request url format.

Issues with the convention itself should be reported on the conventional-changelog-config-spec or conventional-changelog issue trackers.

Prerequisites

Installation

npm install @interaktiv/conventional-changelog-dia --save-dev

Usage

  1. Install the package in the project which will use it
  2. Set the preset to dia:
const changelog = require('conventional-changelog');
changelog({ preset: 'dia' });

Usage with semantic-release

.releaserc.js:

module.exports = {
  branch: 'master',
  plugins: [
    '@semantic-release/commit-analyzer',
    [
      '@semantic-release/release-notes-generator',
      {
        preset: 'dia',
      },
    ],
    '@semantic-release/changelog',
    '@semantic-release/npm',
    '@semantic-release/git',
  ],
};

Usage with corp-semantic-release

{
  "repository": {
    "type": "git",
    "url": "https://bitbucket.host.com/org/repo.git"
  },
  "bugs": {
    "url": "https://some.url/issues"
  },
  "scripts": {
    "semantic-release": "corp-semantic-release --changelogpreset dia"
  },
  "devDependencies": {
    "conventional-changelog-dia": "*",
    "corp-semantic-release": "6.2.0"
  }
}

Configuration

Options

| Options | Description | Default | | ---------------------- | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------ | | pullRequestUrlFormat | A url representing the pull requests format (allowing a different URL to be swapped in for Gitlab, Bitbucket etc.): | {{host}}/{{owner}}/{{repository}}/pulls/{{id}} | | jiraUrlFormat | A url representing the JIRA host format. | - |

Examples

The plugin can be configured in the semantic-release configuration file:

{
  plugins: [
    ['semantic-release/commit-analyzer', {
      preset: 'dia',
    }],
    ['semantic-release/release-notes-generator', {
      preset: 'dia',
      writerOpts: {
        // E.g. for Bitbucket repos
        pullRequestUrlFormat: '{{host}}/{{owner}}/{{repository}}/pull-requests/{{id}}',
        jiraUrlFormat: 'https://myinstance.jira.com/browse/{{id}}',
      },
    }],
  ],
}

Contributing

See CONTRIBUTING.md.

Acknowledgements

Big thanks to the conventional-changelog team for the original conventional-changelog-conventionalcommits preset implementation.

License

ISC Copyright © 2019-present die.interaktiven GmbH & Co. KG