Socket
Book a DemoInstallSign in
Socket

@vue/conventional-changelog

Package Overview
Dependencies
Maintainers
9
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vue/conventional-changelog

conventional-changelog vue preset

latest
Source
npmnpm
Version
0.1.1
Version published
Weekly downloads
43
-63.87%
Maintainers
9
Weekly downloads
 
Created
Source

@vue/conventional-changelog

Custom preset for conventional-changelog which groups changes by package (packages/@vue/xxx). It works by getting the package which has the highest number of changed files in each commit.

yarn add -D @vue/conventional-changelog

Example usage:

const execa = require('execa')
const cc = require('conventional-changelog')
const config = require('@vue/conventional-changelog')

const gen = module.exports = version => {
  const fileStream = require('fs').createWriteStream(`CHANGELOG.md`)

  cc({
    config,
    releaseCount: 0,
    pkg: {
      transform (pkg) {
        pkg.version = `v${version}`
        return pkg
      }
    }
  }).pipe(fileStream).on('close', async () => {
    delete process.env.PREFIX
    await execa('git', ['add', '-A'], { stdio: 'inherit' })
    await execa('git', ['commit', '-m', `chore: ${version} changelog [ci skip]`], { stdio: 'inherit' })
  })
}

if (process.argv[2] === 'run') {
  const version = require('../lerna.json').version
  gen(version)
}

Result example

Keywords

conventional-changelog

FAQs

Package last updated on 13 Jul 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts