Skip to content

Commit

Permalink
chore(dist): source
Browse files Browse the repository at this point in the history
  • Loading branch information
JulienKode committed Jan 20, 2020
1 parent 64d1ed8 commit ac4c28a
Show file tree
Hide file tree
Showing 5 changed files with 236 additions and 69 deletions.
61 changes: 61 additions & 0 deletions dist/commit.hbs
Original file line number Diff line number Diff line change
@@ -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}}

11 changes: 11 additions & 0 deletions dist/footer.hbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{{#if noteGroups}}
{{#each noteGroups}}

### {{title}}

{{#each notes}}
* {{#if commit.scope}}**{{commit.scope}}:** {{/if}}{{text}}
{{/each}}
{{/each}}

{{/if}}
26 changes: 26 additions & 0 deletions dist/header.hbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<a name="{{version}}"></a>
{{#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}}
191 changes: 122 additions & 69 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down Expand Up @@ -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 => {
Expand Down Expand Up @@ -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);

Expand Down Expand Up @@ -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);


/***/ }),
Expand Down Expand Up @@ -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) {
Expand Down Expand Up @@ -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__) {
Expand Down Expand Up @@ -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 */
Expand Down
16 changes: 16 additions & 0 deletions dist/template.hbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{{> header}}

{{#each commitGroups}}

{{#if title}}
### {{title}}

{{/if}}
{{#each commits}}
{{> commit root=@root}}
{{/each}}

{{/each}}
{{> footer}}


0 comments on commit ac4c28a

Please sign in to comment.