mirror of
https://github.com/morhetz/gruvbox.git
synced 2025-11-17 07:43:38 -05:00
chore(package): re-init package with commitizen and standard-release
This commit is contained in:
36
node_modules/commitizen/dist/cli/git-cz.js
generated
vendored
Normal file
36
node_modules/commitizen/dist/cli/git-cz.js
generated
vendored
Normal file
@@ -0,0 +1,36 @@
|
||||
'use strict';
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.bootstrap = undefined;
|
||||
|
||||
var _commitizen = require('../commitizen');
|
||||
|
||||
var _strategies = require('./strategies');
|
||||
|
||||
exports.bootstrap = bootstrap;
|
||||
|
||||
/**
|
||||
* This is the main cli entry point.
|
||||
* environment may be used for debugging.
|
||||
*/
|
||||
|
||||
function bootstrap() {
|
||||
var environment = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
||||
|
||||
|
||||
// Get cli args
|
||||
var rawGitArgs = process.argv.slice(2, process.argv.length);
|
||||
|
||||
var adapterConfig = environment.config || _commitizen.configLoader.load();
|
||||
|
||||
// Choose a strategy based on the existance the adapter config
|
||||
if (typeof adapterConfig !== 'undefined') {
|
||||
// This tells commitizen we're in business
|
||||
(0, _strategies.gitCz)(rawGitArgs, environment, adapterConfig);
|
||||
} else {
|
||||
// This tells commitizen that it is not needed, just use git
|
||||
(0, _strategies.git)(rawGitArgs, environment);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user