chore(package): re-init package with commitizen and standard-release

This commit is contained in:
Pavel Pertsev
2018-05-16 12:54:46 +03:00
parent cb4e7a5643
commit eaf2328575
10640 changed files with 609660 additions and 117 deletions

34
node_modules/validate-commit-msg/lib/config.js generated vendored Normal file
View File

@@ -0,0 +1,34 @@
'use strict';
var findup = require('findup');
var fs = require('fs');
var resolve = require('path').resolve;
function getConfigObject(filename) {
try {
var rcFile = findup.sync(process.cwd(), filename);
return JSON.parse(fs.readFileSync(resolve(rcFile, filename)));
} catch (e) {
return null;
}
}
function getRcConfig() {
return getConfigObject('.vcmrc');
}
function getPackageConfig() {
var configObject = getConfigObject('package.json');
return configObject && configObject.config && configObject.config['validate-commit-msg'];
}
function getConfig() {
return getRcConfig() || getPackageConfig() || {};
}
module.exports = {
getConfig: getConfig,
getRcConfig: getRcConfig,
getPackageConfig: getPackageConfig,
getConfigObject: getConfigObject
};