mirror of
https://github.com/morhetz/gruvbox.git
synced 2025-11-18 16:47:23 -05:00
chore(package): re-init package with commitizen and standard-release
This commit is contained in:
37
node_modules/conventional-recommended-bump/presets/angular.js
generated
vendored
Normal file
37
node_modules/conventional-recommended-bump/presets/angular.js
generated
vendored
Normal file
@@ -0,0 +1,37 @@
|
||||
var presetOpts = {
|
||||
whatBump: function(commits) {
|
||||
var level = 2;
|
||||
var breakings = 0;
|
||||
var features = 0;
|
||||
|
||||
commits.forEach(function(commit) {
|
||||
if (commit.notes.length > 0) {
|
||||
breakings += commit.notes.length;
|
||||
level = 0;
|
||||
} else if (commit.type === 'feat') {
|
||||
features += 1;
|
||||
if (level === 2) {
|
||||
level = 1;
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
return {
|
||||
level: level,
|
||||
reason: 'There are ' + breakings + ' BREAKING CHANGES and ' + features + ' features'
|
||||
};
|
||||
},
|
||||
parserOpts: {
|
||||
headerPattern: /^(\w*)(?:\((.*)\))?\: (.*)$/,
|
||||
headerCorrespondence: [
|
||||
'type',
|
||||
'scope',
|
||||
'subject'
|
||||
],
|
||||
noteKeywords: 'BREAKING CHANGE',
|
||||
revertPattern: /^revert:\s([\s\S]*?)\s*This reverts commit (\w*)\./,
|
||||
revertCorrespondence: ['header', 'hash']
|
||||
}
|
||||
};
|
||||
|
||||
module.exports = presetOpts;
|
||||
39
node_modules/conventional-recommended-bump/presets/eslint.js
generated
vendored
Normal file
39
node_modules/conventional-recommended-bump/presets/eslint.js
generated
vendored
Normal file
@@ -0,0 +1,39 @@
|
||||
var presetOpts = {
|
||||
whatBump: function(commits) {
|
||||
var level = 2;
|
||||
var breakings = 0;
|
||||
var features = 0;
|
||||
|
||||
commits.forEach(function(commit) {
|
||||
if (!commit.type) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (commit.type.toLowerCase() === 'breaking') {
|
||||
breakings += 1;
|
||||
level = 0;
|
||||
} else if (commit.type.toLowerCase() === 'new') {
|
||||
features += 1;
|
||||
if (level === 2) {
|
||||
level = 1;
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
return {
|
||||
level: level,
|
||||
reason: 'There are ' + breakings + ' breaking changes and ' + features + ' features'
|
||||
};
|
||||
},
|
||||
parserOpts: {
|
||||
headerPattern: /^(\w*): (.*)$/,
|
||||
headerCorrespondence: [
|
||||
'type',
|
||||
'subject'
|
||||
],
|
||||
revertPattern: /^[rR]evert:\s([\s\S]*?)\s*This reverts commit (\w*)\./,
|
||||
revertCorrespondence: ['header', 'hash']
|
||||
}
|
||||
};
|
||||
|
||||
module.exports = presetOpts;
|
||||
Reference in New Issue
Block a user