conventional-changelog-atom
Advanced tools
Comparing version 0.0.0 to 0.1.0
@@ -5,3 +5,2 @@ 'use strict'; | ||
var resolve = require('path').resolve; | ||
var semver = require('semver'); | ||
@@ -40,6 +39,3 @@ function presetOpts(cb) { | ||
commitGroupsSort: 'title', | ||
commitsSort: ['emoji', 'shortDesc'], | ||
generateOn: function(commit) { | ||
return semver.valid(commit.version); | ||
} | ||
commitsSort: ['emoji', 'shortDesc'] | ||
}; | ||
@@ -46,0 +42,0 @@ |
{ | ||
"name": "conventional-changelog-atom", | ||
"version": "0.0.0", | ||
"version": "0.1.0", | ||
"description": "conventional-changelog atom preset", | ||
@@ -27,8 +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", | ||
"git-dummy-commit": "^1.1.1", | ||
"jscs": "^2.7.0", | ||
"jshint": "^2.9.1-rc2", | ||
"istanbul": "^0.4.2", | ||
"jscs": "^2.9.0", | ||
"jshint": "^2.9.1", | ||
"mocha": "*", | ||
@@ -39,7 +39,4 @@ "shelljs": "^0.5.3", | ||
"dependencies": { | ||
"compare-func": "^1.3.1", | ||
"lodash": "^3.10.1", | ||
"q": "^1.4.1", | ||
"semver": "^5.1.0" | ||
"q": "^1.4.1" | ||
} | ||
} |
# [![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) atom preset | ||
> [conventional-changelog](https://github.com/ajoslin/conventional-changelog) [atom](https://github.com/atom/atom) preset | ||
@@ -5,0 +5,0 @@ |
70
test.js
@@ -9,45 +9,43 @@ 'use strict'; | ||
describe('presets', function() { | ||
describe('atom', function() { | ||
before(function() { | ||
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'); | ||
describe('atom preset', function() { | ||
before(function() { | ||
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'); | ||
writeFileSync('test1', ''); | ||
shell.exec('git add --all && git commit -m":arrow_down: exception-reporting"'); | ||
writeFileSync('test2', ''); | ||
shell.exec('git add --all && git commit -m\':bug: `updateContentDimensions` when model changes\''); | ||
writeFileSync('test3', ''); | ||
shell.exec('git add --all && git commit -m"Merge pull request #7881 from atom/bf-upgrade-babel-to-5.6.17"'); | ||
writeFileSync('test4', ''); | ||
shell.exec('git add --all && git commit -m":arrow_up: language-gfm@0.79.0"'); | ||
writeFileSync('test5', ''); | ||
shell.exec('git add --all && git commit -m":arrow_up: one-dark/light-ui@v1.0.1"'); | ||
}); | ||
writeFileSync('test1', ''); | ||
shell.exec('git add --all && git commit -m":arrow_down: exception-reporting"'); | ||
writeFileSync('test2', ''); | ||
shell.exec('git add --all && git commit -m\':bug: `updateContentDimensions` when model changes\''); | ||
writeFileSync('test3', ''); | ||
shell.exec('git add --all && git commit -m"Merge pull request #7881 from atom/bf-upgrade-babel-to-5.6.17"'); | ||
writeFileSync('test4', ''); | ||
shell.exec('git add --all && git commit -m":arrow_up: language-gfm@0.79.0"'); | ||
writeFileSync('test5', ''); | ||
shell.exec('git add --all && git commit -m":arrow_up: one-dark/light-ui@v1.0.1"'); | ||
}); | ||
it('should work if there is no semver tag', function(done) { | ||
conventionalChangelogCore({ | ||
config: config | ||
it('should work if there is no semver tag', function(done) { | ||
conventionalChangelogCore({ | ||
config: config | ||
}) | ||
.on('error', function(err) { | ||
done(err); | ||
}) | ||
.on('error', function(err) { | ||
done(err); | ||
}) | ||
.pipe(through(function(chunk) { | ||
chunk = chunk.toString(); | ||
.pipe(through(function(chunk) { | ||
chunk = chunk.toString(); | ||
expect(chunk).to.include(':arrow_down:'); | ||
expect(chunk).to.include('`updateContentDimensions` when model changes'); | ||
expect(chunk).to.include(':arrow_up:'); | ||
expect(chunk).to.include('one-dark/light-ui@v1.0.1'); | ||
expect(chunk).to.include(':arrow_down:'); | ||
expect(chunk).to.include('`updateContentDimensions` when model changes'); | ||
expect(chunk).to.include(':arrow_up:'); | ||
expect(chunk).to.include('one-dark/light-ui@v1.0.1'); | ||
expect(chunk).to.not.include('7881'); | ||
expect(chunk).to.not.include('7881'); | ||
done(); | ||
})); | ||
}); | ||
done(); | ||
})); | ||
}); | ||
}); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1
8467
92
- Removedcompare-func@^1.3.1
- Removedlodash@^3.10.1
- Removedsemver@^5.1.0
- Removedarray-ify@1.0.0(transitive)
- Removedcompare-func@1.3.4(transitive)
- Removeddot-prop@3.0.0(transitive)
- Removedis-obj@1.0.1(transitive)
- Removedlodash@3.10.1(transitive)
- Removedsemver@5.7.2(transitive)