From ac4c28a988f011987d4e4f93a27aecef94627768 Mon Sep 17 00:00:00 2001 From: Julien Karst Date: Mon, 20 Jan 2020 22:07:43 +0100 Subject: [PATCH] chore(dist): source --- dist/commit.hbs | 61 +++++++++++++++ dist/footer.hbs | 11 +++ dist/header.hbs | 26 +++++++ dist/index.js | 191 +++++++++++++++++++++++++++++----------------- dist/template.hbs | 16 ++++ 5 files changed, 236 insertions(+), 69 deletions(-) create mode 100644 dist/commit.hbs create mode 100644 dist/footer.hbs create mode 100644 dist/header.hbs create mode 100644 dist/template.hbs diff --git a/dist/commit.hbs b/dist/commit.hbs new file mode 100644 index 000000000..9eb8a041f --- /dev/null +++ b/dist/commit.hbs @@ -0,0 +1,61 @@ +*{{#if scope}} **{{scope}}:** +{{~/if}} {{#if subject}} + {{~subject}} +{{~else}} + {{~header}} +{{~/if}} + +{{~!-- commit link --}} {{#if @root.linkReferences~}} + ([{{hash}}]( + {{~#if @root.repository}} + {{~#if @root.host}} + {{~@root.host}}/ + {{~/if}} + {{~#if @root.owner}} + {{~@root.owner}}/ + {{~/if}} + {{~@root.repository}} + {{~else}} + {{~@root.repoUrl}} + {{~/if}}/ + {{~@root.commit}}/{{hash}})) +{{~else}} + {{~hash}} +{{~/if}} + +{{~!-- commit references --}} +{{~#if references~}} + , closes + {{~#each references}} {{#if @root.linkReferences~}} + [ + {{~#if this.owner}} + {{~this.owner}}/ + {{~/if}} + {{~this.repository}}#{{this.issue}}]( + {{~#if @root.repository}} + {{~#if @root.host}} + {{~@root.host}}/ + {{~/if}} + {{~#if this.repository}} + {{~#if this.owner}} + {{~this.owner}}/ + {{~/if}} + {{~this.repository}} + {{~else}} + {{~#if @root.owner}} + {{~@root.owner}}/ + {{~/if}} + {{~@root.repository}} + {{~/if}} + {{~else}} + {{~@root.repoUrl}} + {{~/if}}/ + {{~@root.issue}}/{{this.issue}}) + {{~else}} + {{~#if this.owner}} + {{~this.owner}}/ + {{~/if}} + {{~this.repository}}#{{this.issue}} + {{~/if}}{{/each}} +{{~/if}} + diff --git a/dist/footer.hbs b/dist/footer.hbs new file mode 100644 index 000000000..2aa774f53 --- /dev/null +++ b/dist/footer.hbs @@ -0,0 +1,11 @@ +{{#if noteGroups}} +{{#each noteGroups}} + +### {{title}} + +{{#each notes}} +* {{#if commit.scope}}**{{commit.scope}}:** {{/if}}{{text}} +{{/each}} +{{/each}} + +{{/if}} diff --git a/dist/header.hbs b/dist/header.hbs new file mode 100644 index 000000000..313fd6528 --- /dev/null +++ b/dist/header.hbs @@ -0,0 +1,26 @@ + +{{#if isPatch~}} + ## +{{~else~}} + # +{{~/if}} {{#if @root.linkCompare~}} + [{{version}}]( + {{~#if @root.repository~}} + {{~#if @root.host}} + {{~@root.host}}/ + {{~/if}} + {{~#if @root.owner}} + {{~@root.owner}}/ + {{~/if}} + {{~@root.repository}} + {{~else}} + {{~@root.repoUrl}} + {{~/if~}} + /compare/{{previousTag}}...{{currentTag}}) +{{~else}} + {{~version}} +{{~/if}} +{{~#if title}} "{{title}}" +{{~/if}} +{{~#if date}} ({{date}}) +{{/if}} diff --git a/dist/index.js b/dist/index.js index 0010ed697..3171b7b3a 100644 --- a/dist/index.js +++ b/dist/index.js @@ -2058,48 +2058,7 @@ module.exports = YAMLException; /***/ }), -/* 83 */ -/***/ (function(module, __unusedexports, __webpack_require__) { - -"use strict"; - -const path = __webpack_require__(622); -const Module = __webpack_require__(282); - -const resolveFrom = (fromDir, moduleId, silent) => { - if (typeof fromDir !== 'string') { - throw new TypeError(`Expected \`fromDir\` to be of type \`string\`, got \`${typeof fromDir}\``); - } - - if (typeof moduleId !== 'string') { - throw new TypeError(`Expected \`moduleId\` to be of type \`string\`, got \`${typeof moduleId}\``); - } - - fromDir = path.resolve(fromDir); - const fromFile = path.join(fromDir, 'noop.js'); - - const resolveFileName = () => Module._resolveFilename(moduleId, { - id: fromFile, - filename: fromFile, - paths: Module._nodeModulePaths(fromDir) - }); - - if (silent) { - try { - return resolveFileName(); - } catch (err) { - return null; - } - } - - return resolveFileName(); -}; - -module.exports = (fromDir, moduleId) => resolveFrom(fromDir, moduleId); -module.exports.silent = (fromDir, moduleId) => resolveFrom(fromDir, moduleId, true); - - -/***/ }), +/* 83 */, /* 84 */, /* 85 */, /* 86 */ @@ -11912,7 +11871,7 @@ module.exports = require("buffer"); "use strict"; const path = __webpack_require__(622); -const resolveFrom = __webpack_require__(83); +const resolveFrom = __webpack_require__(484); const callerPath = __webpack_require__(754); module.exports = moduleId => { @@ -12123,7 +12082,7 @@ var _cosmiconfig2 = _interopRequireDefault(_cosmiconfig); var _lodash = __webpack_require__(557); -var _resolveFrom = __webpack_require__(484); +var _resolveFrom = __webpack_require__(981); var _resolveFrom2 = _interopRequireDefault(_resolveFrom); @@ -16868,50 +16827,38 @@ module.exports = function (key) { const path = __webpack_require__(622); const Module = __webpack_require__(282); -const fs = __webpack_require__(747); -const resolveFrom = (fromDirectory, moduleId, silent) => { - if (typeof fromDirectory !== 'string') { - throw new TypeError(`Expected \`fromDir\` to be of type \`string\`, got \`${typeof fromDirectory}\``); +const resolveFrom = (fromDir, moduleId, silent) => { + if (typeof fromDir !== 'string') { + throw new TypeError(`Expected \`fromDir\` to be of type \`string\`, got \`${typeof fromDir}\``); } if (typeof moduleId !== 'string') { throw new TypeError(`Expected \`moduleId\` to be of type \`string\`, got \`${typeof moduleId}\``); } - try { - fromDirectory = fs.realpathSync(fromDirectory); - } catch (error) { - if (error.code === 'ENOENT') { - fromDirectory = path.resolve(fromDirectory); - } else if (silent) { - return; - } else { - throw error; - } - } - - const fromFile = path.join(fromDirectory, 'noop.js'); + fromDir = path.resolve(fromDir); + const fromFile = path.join(fromDir, 'noop.js'); const resolveFileName = () => Module._resolveFilename(moduleId, { id: fromFile, filename: fromFile, - paths: Module._nodeModulePaths(fromDirectory) + paths: Module._nodeModulePaths(fromDir) }); if (silent) { try { return resolveFileName(); - } catch (error) { - return; + } catch (err) { + return null; } } return resolveFileName(); }; -module.exports = (fromDirectory, moduleId) => resolveFrom(fromDirectory, moduleId); -module.exports.silent = (fromDirectory, moduleId) => resolveFrom(fromDirectory, moduleId, true); +module.exports = (fromDir, moduleId) => resolveFrom(fromDir, moduleId); +module.exports.silent = (fromDir, moduleId) => resolveFrom(fromDir, moduleId, true); /***/ }), @@ -16957,7 +16904,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) { exports.__esModule = true; var path_1 = __importDefault(__webpack_require__(622)); __webpack_require__(206); -var resolve_from_1 = __importDefault(__webpack_require__(484)); +var resolve_from_1 = __importDefault(__webpack_require__(967)); var lodash_1 = __webpack_require__(557); var importFresh = __webpack_require__(275); function resolveExtends(config, context) { @@ -47778,7 +47725,60 @@ module.exports = options => { /***/ }), -/* 967 */, +/* 967 */ +/***/ (function(module, __unusedexports, __webpack_require__) { + +"use strict"; + +const path = __webpack_require__(622); +const Module = __webpack_require__(282); +const fs = __webpack_require__(747); + +const resolveFrom = (fromDirectory, moduleId, silent) => { + if (typeof fromDirectory !== 'string') { + throw new TypeError(`Expected \`fromDir\` to be of type \`string\`, got \`${typeof fromDirectory}\``); + } + + if (typeof moduleId !== 'string') { + throw new TypeError(`Expected \`moduleId\` to be of type \`string\`, got \`${typeof moduleId}\``); + } + + try { + fromDirectory = fs.realpathSync(fromDirectory); + } catch (error) { + if (error.code === 'ENOENT') { + fromDirectory = path.resolve(fromDirectory); + } else if (silent) { + return; + } else { + throw error; + } + } + + const fromFile = path.join(fromDirectory, 'noop.js'); + + const resolveFileName = () => Module._resolveFilename(moduleId, { + id: fromFile, + filename: fromFile, + paths: Module._nodeModulePaths(fromDirectory) + }); + + if (silent) { + try { + return resolveFileName(); + } catch (error) { + return; + } + } + + return resolveFileName(); +}; + +module.exports = (fromDirectory, moduleId) => resolveFrom(fromDirectory, moduleId); +module.exports.silent = (fromDirectory, moduleId) => resolveFrom(fromDirectory, moduleId, true); + + +/***/ }), /* 968 */, /* 969 */ /***/ (function(module, __unusedexports, __webpack_require__) { @@ -48050,7 +48050,60 @@ module.exports = { "default": __webpack_require__(681), __esModule: true }; module.exports = { "default": __webpack_require__(279), __esModule: true }; /***/ }), -/* 981 */, +/* 981 */ +/***/ (function(module, __unusedexports, __webpack_require__) { + +"use strict"; + +const path = __webpack_require__(622); +const Module = __webpack_require__(282); +const fs = __webpack_require__(747); + +const resolveFrom = (fromDirectory, moduleId, silent) => { + if (typeof fromDirectory !== 'string') { + throw new TypeError(`Expected \`fromDir\` to be of type \`string\`, got \`${typeof fromDirectory}\``); + } + + if (typeof moduleId !== 'string') { + throw new TypeError(`Expected \`moduleId\` to be of type \`string\`, got \`${typeof moduleId}\``); + } + + try { + fromDirectory = fs.realpathSync(fromDirectory); + } catch (error) { + if (error.code === 'ENOENT') { + fromDirectory = path.resolve(fromDirectory); + } else if (silent) { + return; + } else { + throw error; + } + } + + const fromFile = path.join(fromDirectory, 'noop.js'); + + const resolveFileName = () => Module._resolveFilename(moduleId, { + id: fromFile, + filename: fromFile, + paths: Module._nodeModulePaths(fromDirectory) + }); + + if (silent) { + try { + return resolveFileName(); + } catch (error) { + return; + } + } + + return resolveFileName(); +}; + +module.exports = (fromDirectory, moduleId) => resolveFrom(fromDirectory, moduleId); +module.exports.silent = (fromDirectory, moduleId) => resolveFrom(fromDirectory, moduleId, true); + + +/***/ }), /* 982 */, /* 983 */, /* 984 */ diff --git a/dist/template.hbs b/dist/template.hbs new file mode 100644 index 000000000..38e15d249 --- /dev/null +++ b/dist/template.hbs @@ -0,0 +1,16 @@ +{{> header}} + +{{#each commitGroups}} + +{{#if title}} +### {{title}} + +{{/if}} +{{#each commits}} +{{> commit root=@root}} +{{/each}} + +{{/each}} +{{> footer}} + +