mirror of
https://github.com/morhetz/gruvbox.git
synced 2025-11-18 08:13:39 -05:00
chore(package): re-init package with commitizen and standard-release
This commit is contained in:
27
node_modules/cz-conventional-changelog/.npmignore
generated
vendored
Normal file
27
node_modules/cz-conventional-changelog/.npmignore
generated
vendored
Normal file
@@ -0,0 +1,27 @@
|
||||
# Logs
|
||||
logs
|
||||
*.log
|
||||
|
||||
# Runtime data
|
||||
pids
|
||||
*.pid
|
||||
*.seed
|
||||
|
||||
# Directory for instrumented libs generated by jscoverage/JSCover
|
||||
lib-cov
|
||||
|
||||
# Coverage directory used by tools like istanbul
|
||||
coverage
|
||||
|
||||
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
|
||||
.grunt
|
||||
|
||||
# node-waf configuration
|
||||
.lock-wscript
|
||||
|
||||
# Compiled binary addons (http://nodejs.org/api/addons.html)
|
||||
build/Release
|
||||
|
||||
# Dependency directory
|
||||
# https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git
|
||||
node_modules
|
||||
18
node_modules/cz-conventional-changelog/.travis.yml
generated
vendored
Normal file
18
node_modules/cz-conventional-changelog/.travis.yml
generated
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
sudo: false
|
||||
language: node_js
|
||||
cache:
|
||||
directories:
|
||||
- node_modules
|
||||
notifications:
|
||||
email: false
|
||||
node_js:
|
||||
- '4'
|
||||
before_install:
|
||||
- npm i -g npm@^2.0.0
|
||||
before_script:
|
||||
- npm prune
|
||||
after_success:
|
||||
- npm run semantic-release
|
||||
branches:
|
||||
only:
|
||||
- master
|
||||
8
node_modules/cz-conventional-changelog/README.md
generated
vendored
Normal file
8
node_modules/cz-conventional-changelog/README.md
generated
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
# cz-conventional-changelog
|
||||
|
||||
Status:
|
||||
[](https://www.npmjs.org/package/cz-conventional-changelog)
|
||||
[](http://npm-stat.com/charts.html?package=cz-conventional-changelog&from=2015-08-01)
|
||||
[](https://travis-ci.org/commitizen/cz-conventional-changelog)
|
||||
|
||||
Part of the [commitizen](https://github.com/commitizen/cz-cli) family. Prompts for [conventional changelog](https://github.com/stevemao/conventional-changelog-angular/blob/master/index.js) standard.
|
||||
128
node_modules/cz-conventional-changelog/engine.js
generated
vendored
Normal file
128
node_modules/cz-conventional-changelog/engine.js
generated
vendored
Normal file
@@ -0,0 +1,128 @@
|
||||
"format cjs";
|
||||
|
||||
var wrap = require('word-wrap');
|
||||
var map = require('lodash.map');
|
||||
var longest = require('longest');
|
||||
var rightPad = require('right-pad');
|
||||
|
||||
var filter = function(array) {
|
||||
return array.filter(function(x) {
|
||||
return x;
|
||||
});
|
||||
};
|
||||
|
||||
// This can be any kind of SystemJS compatible module.
|
||||
// We use Commonjs here, but ES6 or AMD would do just
|
||||
// fine.
|
||||
module.exports = function (options) {
|
||||
|
||||
var types = options.types;
|
||||
|
||||
var length = longest(Object.keys(types)).length + 1;
|
||||
var choices = map(types, function (type, key) {
|
||||
return {
|
||||
name: rightPad(key + ':', length) + ' ' + type.description,
|
||||
value: key
|
||||
};
|
||||
});
|
||||
|
||||
return {
|
||||
// When a user runs `git cz`, prompter will
|
||||
// be executed. We pass you cz, which currently
|
||||
// is just an instance of inquirer.js. Using
|
||||
// this you can ask questions and get answers.
|
||||
//
|
||||
// The commit callback should be executed when
|
||||
// you're ready to send back a commit template
|
||||
// to git.
|
||||
//
|
||||
// By default, we'll de-indent your commit
|
||||
// template and will keep empty lines.
|
||||
prompter: function(cz, commit) {
|
||||
console.log('\nLine 1 will be cropped at 100 characters. All other lines will be wrapped after 100 characters.\n');
|
||||
|
||||
// Let's ask some questions of the user
|
||||
// so that we can populate our commit
|
||||
// template.
|
||||
//
|
||||
// See inquirer.js docs for specifics.
|
||||
// You can also opt to use another input
|
||||
// collection library if you prefer.
|
||||
cz.prompt([
|
||||
{
|
||||
type: 'list',
|
||||
name: 'type',
|
||||
message: 'Select the type of change that you\'re committing:',
|
||||
choices: choices
|
||||
}, {
|
||||
type: 'input',
|
||||
name: 'scope',
|
||||
message: 'What is the scope of this change (e.g. component or file name)? (press enter to skip)\n'
|
||||
}, {
|
||||
type: 'input',
|
||||
name: 'subject',
|
||||
message: 'Write a short, imperative tense description of the change:\n'
|
||||
}, {
|
||||
type: 'input',
|
||||
name: 'body',
|
||||
message: 'Provide a longer description of the change: (press enter to skip)\n'
|
||||
}, {
|
||||
type: 'confirm',
|
||||
name: 'isBreaking',
|
||||
message: 'Are there any breaking changes?',
|
||||
default: false
|
||||
}, {
|
||||
type: 'input',
|
||||
name: 'breaking',
|
||||
message: 'Describe the breaking changes:\n',
|
||||
when: function(answers) {
|
||||
return answers.isBreaking;
|
||||
}
|
||||
}, {
|
||||
type: 'confirm',
|
||||
name: 'isIssueAffected',
|
||||
message: 'Does this change affect any open issues?',
|
||||
default: false
|
||||
}, {
|
||||
type: 'input',
|
||||
name: 'issues',
|
||||
message: 'Add issue references (e.g. "fix #123", "re #123".):\n',
|
||||
when: function(answers) {
|
||||
return answers.isIssueAffected;
|
||||
}
|
||||
}
|
||||
]).then(function(answers) {
|
||||
|
||||
var maxLineWidth = 100;
|
||||
|
||||
var wrapOptions = {
|
||||
trim: true,
|
||||
newline: '\n',
|
||||
indent:'',
|
||||
width: maxLineWidth
|
||||
};
|
||||
|
||||
// parentheses are only needed when a scope is present
|
||||
var scope = answers.scope.trim();
|
||||
scope = scope ? '(' + answers.scope.trim() + ')' : '';
|
||||
|
||||
// Hard limit this line
|
||||
var head = (answers.type + scope + ': ' + answers.subject.trim()).slice(0, maxLineWidth);
|
||||
|
||||
// Wrap these lines at 100 characters
|
||||
var body = wrap(answers.body, wrapOptions);
|
||||
|
||||
// Apply breaking change prefix, removing it if already present
|
||||
var breaking = answers.breaking ? answers.breaking.trim() : '';
|
||||
breaking = breaking ? 'BREAKING CHANGE: ' + breaking.replace(/^BREAKING CHANGE: /, '') : '';
|
||||
breaking = wrap(breaking, wrapOptions);
|
||||
|
||||
var issues = answers.issues ? wrap(answers.issues, wrapOptions) : '';
|
||||
|
||||
var footer = filter([ breaking, issues ]).join('\n\n');
|
||||
|
||||
commit(head + '\n\n' + body + '\n\n' + footer);
|
||||
});
|
||||
}
|
||||
};
|
||||
};
|
||||
8
node_modules/cz-conventional-changelog/index.js
generated
vendored
Normal file
8
node_modules/cz-conventional-changelog/index.js
generated
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
"format cjs";
|
||||
|
||||
var engine = require('./engine');
|
||||
var conventionalCommitTypes = require('conventional-commit-types');
|
||||
|
||||
module.exports = engine({
|
||||
types: conventionalCommitTypes.types
|
||||
});
|
||||
34
node_modules/cz-conventional-changelog/package.json
generated
vendored
Normal file
34
node_modules/cz-conventional-changelog/package.json
generated
vendored
Normal file
@@ -0,0 +1,34 @@
|
||||
{
|
||||
"name": "cz-conventional-changelog",
|
||||
"version": "2.1.0",
|
||||
"description": "Commitizen adapter following the conventional-changelog format.",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
"commit": "git-cz",
|
||||
"test": "echo 'Tests need to be setup!'",
|
||||
"semantic-release": "semantic-release pre && npm publish && semantic-release post"
|
||||
},
|
||||
"homepage": "https://github.com/commitizen/cz-conventional-changelog",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/commitizen/cz-conventional-changelog.git"
|
||||
},
|
||||
"author": "Jim Cummins <jimthedev@gmail.com>",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"conventional-commit-types": "^2.0.0",
|
||||
"lodash.map": "^4.5.1",
|
||||
"longest": "^1.0.1",
|
||||
"right-pad": "^1.0.1",
|
||||
"word-wrap": "^1.0.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"commitizen": "2.9.6",
|
||||
"semantic-release": "^6.3.2"
|
||||
},
|
||||
"config": {
|
||||
"commitizen": {
|
||||
"path": "./index.js"
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user