Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

conventional-changelog-express

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

conventional-changelog-express - npm Package Compare versions

Comparing version 0.0.0 to 0.1.0

12

index.js

@@ -5,3 +5,2 @@ 'use strict';

var resolve = require('path').resolve;
var semver = require('semver');

@@ -31,12 +30,9 @@ function presetOpts(cb) {

commitGroupsSort: 'title',
commitsSort: ['component', 'shortDesc'],
generateOn: function(commit) {
return semver.valid(commit.version);
}
commitsSort: ['component', 'shortDesc']
};
Q.all([
readFile(resolve(__dirname, '../templates/express/template.hbs'), 'utf-8'),
readFile(resolve(__dirname, '../templates/express/header.hbs'), 'utf-8'),
readFile(resolve(__dirname, '../templates/express/commit.hbs'), 'utf-8')
readFile(resolve(__dirname, 'templates/template.hbs'), 'utf-8'),
readFile(resolve(__dirname, 'templates/header.hbs'), 'utf-8'),
readFile(resolve(__dirname, 'templates/commit.hbs'), 'utf-8')
])

@@ -43,0 +39,0 @@ .spread(function(template, header, commit) {

{
"name": "conventional-changelog-express",
"version": "0.0.0",
"version": "0.1.0",
"description": "conventional-changelog express preset",

@@ -27,7 +27,8 @@ "main": "index.js",

"devDependencies": {
"chai": "^3.4.1",
"conventional-changelog-core": "0.0.1",
"chai": "^3.5.0",
"conventional-changelog-core": "0.0.2",
"coveralls": "^2.11.6",
"jscs": "^2.7.0",
"jshint": "^2.9.1-rc2",
"istanbul": "^0.4.2",
"jscs": "^2.9.0",
"jshint": "^2.9.1",
"mocha": "*",

@@ -34,0 +35,0 @@ "shelljs": "^0.5.3",

# [![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Dependency Status][daviddm-image]][daviddm-url] [![Coverage Status][coveralls-image]][coveralls-url]
> [conventional-changelog](https://github.com/ajoslin/conventional-changelog) [express](https://github.com/express/express) preset
> [conventional-changelog](https://github.com/ajoslin/conventional-changelog) [express](https://github.com/strongloop/express) preset
See [convention](convention.md)
[npm-image]: https://badge.fury.io/js/conventional-changelog-express.svg

@@ -10,0 +7,0 @@ [npm-url]: https://npmjs.org/package/conventional-changelog-express

'use strict';
var child = require('child_process');
var conventionalChangelog = require('../');
var conventionalChangelogCore = require('conventional-changelog-core');
var config = require('./');
var expect = require('chai').expect;

@@ -9,52 +10,51 @@ var shell = require('shelljs');

describe('presets', function() {
describe('express', function() {
before(function(done) {
shell.cd('express');
shell.exec('git init --template=../git-templates');
writeFileSync('test1', '');
child.exec('git add --all && git commit -m"deps: type-is@~1.6.3\n\n - deps: mime-types@~2.1.1\n - perf: reduce try block size\n - perf: remove bitwise operations"', function() {
writeFileSync('test2', '');
child.exec('git add --all && git commit -m"perf: use saved reference to http.STATUS_CODES\n\ncloses #2602"', function() {
writeFileSync('test3', '');
shell.exec('git add --all && git commit -m"docs: add license comments"');
writeFileSync('test4', '');
child.exec('git add --all && git commit -m"deps: path-to-regexp@0.1.4"', function() {
writeFileSync('test5', '');
shell.exec('git add --all && git commit -m"Bad commit"');
describe('express preset', function() {
before(function(done) {
shell.config.silent = true;
shell.rm('-rf', 'tmp');
shell.mkdir('tmp');
shell.cd('tmp');
shell.mkdir('git-templates');
shell.exec('git init --template=./git-templates');
done();
});
writeFileSync('test1', '');
child.exec('git add --all && git commit -m"deps: type-is@~1.6.3\n\n - deps: mime-types@~2.1.1\n - perf: reduce try block size\n - perf: remove bitwise operations"', function() {
writeFileSync('test2', '');
child.exec('git add --all && git commit -m"perf: use saved reference to http.STATUS_CODES\n\ncloses #2602"', function() {
writeFileSync('test3', '');
shell.exec('git add --all && git commit -m"docs: add license comments"');
writeFileSync('test4', '');
child.exec('git add --all && git commit -m"deps: path-to-regexp@0.1.4"', function() {
writeFileSync('test5', '');
shell.exec('git add --all && git commit -m"Bad commit"');
done();
});
});
});
});
after(function() {
shell.cd('../');
});
it('should work if there is no semver tag', function(done) {
conventionalChangelog({
preset: 'express',
pkg: {
path: __dirname + '/fixtures/_express.json'
}
it('should work if there is no semver tag', function(done) {
conventionalChangelogCore({
config: config
})
.on('error', function(err) {
done(err);
})
.pipe(through(function(chunk) {
chunk = chunk.toString();
.pipe(through(function(chunk) {
chunk = chunk.toString();
expect(chunk).to.include('### Dependencies');
expect(chunk).to.include('type-is@~1.6.3');
expect(chunk).to.include(' - deps: mime-types@~2.1.1\n');
expect(chunk).to.include('path-to-regexp@0.1.4');
expect(chunk).to.include('### Performance');
expect(chunk).to.include('use saved reference to http.STATUS_CODES');
expect(chunk).to.include('### Dependencies');
expect(chunk).to.include('type-is@~1.6.3');
expect(chunk).to.include(' - deps: mime-types@~2.1.1\n');
expect(chunk).to.include('path-to-regexp@0.1.4');
expect(chunk).to.include('### Performance');
expect(chunk).to.include('use saved reference to http.STATUS_CODES');
expect(chunk).to.not.include('license');
expect(chunk).to.not.include('Bad');
expect(chunk).to.not.include('license');
expect(chunk).to.not.include('Bad');
done();
}));
});
done();
}));
});
});
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc