forked from olcxjas-softworks/LarpixClient
Add capacitorjs runtime
This commit is contained in:
parent
d0ece489ee
commit
f90c0e6c40
8362 changed files with 1502407 additions and 1 deletions
234
node_modules/conventional-changelog-eslint/CHANGELOG.md
generated
vendored
Normal file
234
node_modules/conventional-changelog-eslint/CHANGELOG.md
generated
vendored
Normal file
|
|
@ -0,0 +1,234 @@
|
|||
# Change Log
|
||||
|
||||
All notable changes to this project will be documented in this file.
|
||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||
|
||||
## [3.0.9](https://github.com/conventional-changelog/conventional-changelog/compare/conventional-changelog-eslint@3.0.8...conventional-changelog-eslint@3.0.9) (2020-11-05)
|
||||
|
||||
**Note:** Version bump only for package conventional-changelog-eslint
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [3.0.8](https://github.com/conventional-changelog/conventional-changelog/compare/conventional-changelog-eslint@3.0.4...conventional-changelog-eslint@3.0.8) (2020-05-08)
|
||||
|
||||
**Note:** Version bump only for package conventional-changelog-eslint
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [3.0.3](https://github.com/conventional-changelog/conventional-changelog/compare/conventional-changelog-eslint@3.0.2...conventional-changelog-eslint@3.0.3) (2019-10-02)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* **preset, eslint:** display short tag in release notes ([b63a5ff](https://github.com/conventional-changelog/conventional-changelog/commit/b63a5ff)), closes [#313](https://github.com/conventional-changelog/conventional-changelog/issues/313)
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [3.0.2](https://github.com/conventional-changelog/conventional-changelog/compare/conventional-changelog-eslint@3.0.1...conventional-changelog-eslint@3.0.2) (2019-04-10)
|
||||
|
||||
**Note:** Version bump only for package conventional-changelog-eslint
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [3.0.1](https://github.com/conventional-changelog/conventional-changelog/compare/conventional-changelog-eslint@3.0.0...conventional-changelog-eslint@3.0.1) (2018-11-01)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* **preset:** ESLint recommended-bump is always "patch" ([#371](https://github.com/conventional-changelog/conventional-changelog/issues/371)) ([35e279d](https://github.com/conventional-changelog/conventional-changelog/commit/35e279d)), closes [/github.com/conventional-changelog/conventional-changelog/blob/ce1fd981f88ce201e996dfa833e4682de3aafcdd/packages/conventional-changelog-eslint/conventional-recommended-bump.js#L32-L35](https://github.com//github.com/conventional-changelog/conventional-changelog/blob/ce1fd981f88ce201e996dfa833e4682de3aafcdd/packages/conventional-changelog-eslint/conventional-recommended-bump.js/issues/L32-L35)
|
||||
* Upgrade to Lerna 3, fix Node.js v11 error ([#385](https://github.com/conventional-changelog/conventional-changelog/issues/385)) ([cdef282](https://github.com/conventional-changelog/conventional-changelog/commit/cdef282))
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<a name="3.0.0"></a>
|
||||
# [3.0.0](https://github.com/conventional-changelog/conventional-changelog/compare/conventional-changelog-eslint@2.0.0...conventional-changelog-eslint@3.0.0) (2018-06-06)
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* re-use parser options within each preset ([#335](https://github.com/conventional-changelog/conventional-changelog/issues/335)) ([d3eaacf](https://github.com/conventional-changelog/conventional-changelog/commit/d3eaacf)), closes [#241](https://github.com/conventional-changelog/conventional-changelog/issues/241)
|
||||
|
||||
|
||||
### BREAKING CHANGES
|
||||
|
||||
* Re-use parser options object between components of a preset. For some
|
||||
presets this may change the behavior of `conventional-recommended-bump`
|
||||
as the parser options object for the `conventional-recommended-bump` options
|
||||
within a preset were different than the parser options object for the
|
||||
`conventional-changelog` options within a preset.
|
||||
|
||||
If you are not using `conventional-recommended-bump`, then this is
|
||||
**not** a breaking change for you.
|
||||
|
||||
|
||||
|
||||
|
||||
<a name="2.0.0"></a>
|
||||
# [2.0.0](https://github.com/conventional-changelog/conventional-changelog/compare/conventional-changelog-eslint@1.0.9...conventional-changelog-eslint@2.0.0) (2018-05-29)
|
||||
|
||||
|
||||
### Chores
|
||||
|
||||
* **package:** set Node requirement to oldest supported LTS ([#329](https://github.com/conventional-changelog/conventional-changelog/issues/329)) ([cae2fe0](https://github.com/conventional-changelog/conventional-changelog/commit/cae2fe0))
|
||||
|
||||
|
||||
### Code Refactoring
|
||||
|
||||
* remove anchor from header templates ([#301](https://github.com/conventional-changelog/conventional-changelog/issues/301)) ([346f24f](https://github.com/conventional-changelog/conventional-changelog/commit/346f24f)), closes [#186](https://github.com/conventional-changelog/conventional-changelog/issues/186)
|
||||
|
||||
|
||||
### BREAKING CHANGES
|
||||
|
||||
* **package:** Set the package's minimum required Node version to be the oldest LTS
|
||||
currently supported by the Node Release working group. At this time,
|
||||
that is Node 6 (which is in its Maintenance LTS phase).
|
||||
* Anchor tags are removed from the changelog header templates. The
|
||||
rendered Markdown will no longer contain anchor tags proceeding the
|
||||
version number header that constitutes the changelog header. This means
|
||||
that consumers of rendered markdown will not be able to use a URL that
|
||||
has been constructed to contain a version number anchor tag reference,
|
||||
since the anchor tag won't exist in the rendered markdown.
|
||||
|
||||
It's stronly recomended consumers use the full URL path to the release
|
||||
page for a given version, as that URL is a permalink to that verison,
|
||||
contains all relavent release information, and does not, otherwise, rely
|
||||
on the anchor tag being excessible from the current page view.
|
||||
|
||||
As an example, for version `2.0.0` of a GitHub project, the following
|
||||
URL should be used:
|
||||
- https://github.com/conventional-changelog/releaser-tools/releases/tag/v2.0.0
|
||||
|
||||
|
||||
|
||||
|
||||
<a name="1.0.9"></a>
|
||||
## [1.0.9](https://github.com/conventional-changelog/conventional-changelog/compare/conventional-changelog-eslint@1.0.8...conventional-changelog-eslint@1.0.9) (2018-03-28)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* revert previous change ([2f4530f](https://github.com/conventional-changelog/conventional-changelog/commit/2f4530f))
|
||||
|
||||
|
||||
|
||||
|
||||
<a name="1.0.8"></a>
|
||||
## [1.0.8](https://github.com/conventional-changelog/conventional-changelog/compare/conventional-changelog-eslint@1.0.7...conventional-changelog-eslint@1.0.8) (2018-03-27)
|
||||
|
||||
|
||||
|
||||
|
||||
**Note:** Version bump only for package conventional-changelog-eslint
|
||||
|
||||
<a name="1.0.7"></a>
|
||||
## [1.0.7](https://github.com/conventional-changelog/conventional-changelog/compare/conventional-changelog-eslint@1.0.6...conventional-changelog-eslint@1.0.7) (2018-03-27)
|
||||
|
||||
|
||||
|
||||
|
||||
**Note:** Version bump only for package conventional-changelog-eslint
|
||||
|
||||
<a name="1.0.6"></a>
|
||||
## [1.0.6](https://github.com/conventional-changelog/conventional-changelog/compare/conventional-changelog-eslint@1.0.5...conventional-changelog-eslint@1.0.6) (2018-03-22)
|
||||
|
||||
|
||||
|
||||
|
||||
**Note:** Version bump only for package conventional-changelog-eslint
|
||||
|
||||
<a name="1.0.5"></a>
|
||||
## [1.0.5](https://github.com/conventional-changelog/conventional-changelog/compare/conventional-changelog-eslint@1.0.4...conventional-changelog-eslint@1.0.5) (2018-03-03)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* **preset:** recommended-bump ESLint preset ([#295](https://github.com/conventional-changelog/conventional-changelog/issues/295)) ([acf9c19](https://github.com/conventional-changelog/conventional-changelog/commit/acf9c19)), closes [#270](https://github.com/conventional-changelog/conventional-changelog/issues/270) [#241](https://github.com/conventional-changelog/conventional-changelog/issues/241)
|
||||
|
||||
|
||||
|
||||
|
||||
<a name="1.0.4"></a>
|
||||
## [1.0.4](https://github.com/conventional-changelog/conventional-changelog/compare/conventional-changelog-eslint@1.0.3...conventional-changelog-eslint@1.0.4) (2018-02-24)
|
||||
|
||||
|
||||
|
||||
|
||||
**Note:** Version bump only for package conventional-changelog-eslint
|
||||
|
||||
<a name="1.0.3"></a>
|
||||
## [1.0.3](https://github.com/conventional-changelog/conventional-changelog/compare/conventional-changelog-eslint@1.0.2...conventional-changelog-eslint@1.0.3) (2018-02-20)
|
||||
|
||||
|
||||
|
||||
|
||||
**Note:** Version bump only for package conventional-changelog-eslint
|
||||
|
||||
<a name="1.0.2"></a>
|
||||
## [1.0.2](https://github.com/stevemao/conventional-changelog-eslint/compare/conventional-changelog-eslint@1.0.1...conventional-changelog-eslint@1.0.2) (2018-02-13)
|
||||
|
||||
|
||||
|
||||
|
||||
**Note:** Version bump only for package conventional-changelog-eslint
|
||||
|
||||
<a name="1.0.1"></a>
|
||||
## [1.0.1](https://github.com/stevemao/conventional-changelog-eslint/compare/conventional-changelog-eslint@1.0.0...conventional-changelog-eslint@1.0.1) (2018-02-13)
|
||||
|
||||
|
||||
|
||||
|
||||
**Note:** Version bump only for package conventional-changelog-eslint
|
||||
|
||||
<a name="1.0.0"></a>
|
||||
# [1.0.0](https://github.com/stevemao/conventional-changelog-eslint/compare/conventional-changelog-eslint@0.3.0...conventional-changelog-eslint@1.0.0) (2018-01-29)
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* **eslint:** improve regex headerPattern ([#268](https://github.com/stevemao/conventional-changelog-eslint/issues/268)) ([ccc1365](https://github.com/stevemao/conventional-changelog-eslint/commit/ccc1365))
|
||||
|
||||
|
||||
### BREAKING CHANGES
|
||||
|
||||
* **eslint:** Trailing whitespaces at the beginning of commit messages
|
||||
will not be saved anymore
|
||||
|
||||
|
||||
|
||||
|
||||
<a name="0.3.0"></a>
|
||||
# [0.3.0](https://github.com/stevemao/conventional-changelog-eslint/compare/conventional-changelog-eslint@0.2.1...conventional-changelog-eslint@0.3.0) (2017-12-18)
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* **preset:** add recommended-bump opts into presets ([60815b5](https://github.com/stevemao/conventional-changelog-eslint/commit/60815b5)), closes [#241](https://github.com/stevemao/conventional-changelog-eslint/issues/241)
|
||||
|
||||
|
||||
|
||||
|
||||
<a name="0.2.1"></a>
|
||||
## [0.2.1](https://github.com/stevemao/conventional-changelog-eslint/compare/conventional-changelog-eslint@0.2.0...conventional-changelog-eslint@0.2.1) (2017-11-13)
|
||||
|
||||
|
||||
|
||||
|
||||
**Note:** Version bump only for package conventional-changelog-eslint
|
||||
|
||||
<a name="0.2.0"></a>
|
||||
# 0.2.0 (2017-07-17)
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* migrate repo to lerna mono-repo ([793e823](https://github.com/stevemao/conventional-changelog-eslint/commit/793e823))
|
||||
15
node_modules/conventional-changelog-eslint/LICENSE.md
generated
vendored
Normal file
15
node_modules/conventional-changelog-eslint/LICENSE.md
generated
vendored
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
### ISC License
|
||||
|
||||
Copyright © [conventional-changelog team](https://github.com/conventional-changelog)
|
||||
|
||||
Permission to use, copy, modify, and/or distribute this software for any
|
||||
purpose with or without fee is hereby granted, provided that the above
|
||||
copyright notice and this permission notice appear in all copies.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
||||
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
|
||||
FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
||||
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
||||
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
||||
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
||||
PERFORMANCE OF THIS SOFTWARE.
|
||||
53
node_modules/conventional-changelog-eslint/README.md
generated
vendored
Normal file
53
node_modules/conventional-changelog-eslint/README.md
generated
vendored
Normal file
|
|
@ -0,0 +1,53 @@
|
|||
# [![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Dependency Status][daviddm-image]][daviddm-url] [![Coverage Status][coveralls-image]][coveralls-url]
|
||||
|
||||
> [conventional-changelog](https://github.com/ajoslin/conventional-changelog) [eslint](https://github.com/eslint/eslint) preset
|
||||
|
||||
**Issues with the convention itself should be reported on the ESLint issue tracker.**
|
||||
|
||||
## ESLint Convention
|
||||
|
||||
Our commit message format is as follows:
|
||||
|
||||
```
|
||||
Tag: Short description (fixes #1234)
|
||||
|
||||
Longer description here if necessary
|
||||
```
|
||||
|
||||
The first line of the commit message (the summary) must have a specific format. This format is checked by our build tools.
|
||||
|
||||
The `Tag` is one of the following:
|
||||
|
||||
* `Fix` - for a bug fix.
|
||||
* `Update` - either for a backwards-compatible enhancement or for a rule change that adds reported problems.
|
||||
* `New` - implemented a new feature.
|
||||
* `Breaking` - for a backwards-incompatible enhancement or feature.
|
||||
* `Docs` - changes to documentation only.
|
||||
* `Build` - changes to build process only.
|
||||
* `Upgrade` - for a dependency upgrade.
|
||||
* `Chore` - for refactoring, adding tests, etc. (anything that isn't user-facing).
|
||||
|
||||
Use the [labels of the issue you are working on](working-on-issues.md#issue-labels) to determine the best tag.
|
||||
|
||||
The message summary should be a one-sentence description of the change, and it must be 72 characters in length or shorter. If the pull request addresses an issue, then the issue number should be mentioned at the end. If the commit doesn't completely fix the issue, then use `(refs #1234)` instead of `(fixes #1234)`.
|
||||
|
||||
Here are some good commit message summary examples:
|
||||
|
||||
```
|
||||
Build: Update Travis to only test Node 0.10 (refs #734)
|
||||
Fix: Semi rule incorrectly flagging extra semicolon (fixes #840)
|
||||
Upgrade: Esprima to 1.2, switch to using comment attachment (fixes #730)
|
||||
```
|
||||
|
||||
The commit message format is important because these messages are used to create a changelog for each release. The tag and issue number help to create more consistent and useful changelogs.
|
||||
|
||||
Based on https://eslint.org/docs/developer-guide/contributing/pull-requests#step2
|
||||
|
||||
[npm-image]: https://badge.fury.io/js/conventional-changelog-eslint.svg
|
||||
[npm-url]: https://npmjs.org/package/conventional-changelog-eslint
|
||||
[travis-image]: https://travis-ci.org/stevemao/conventional-changelog-eslint.svg?branch=master
|
||||
[travis-url]: https://travis-ci.org/stevemao/conventional-changelog-eslint
|
||||
[daviddm-image]: https://david-dm.org/stevemao/conventional-changelog-eslint.svg?theme=shields.io
|
||||
[daviddm-url]: https://david-dm.org/stevemao/conventional-changelog-eslint
|
||||
[coveralls-image]: https://coveralls.io/repos/stevemao/conventional-changelog-eslint/badge.svg
|
||||
[coveralls-url]: https://coveralls.io/r/stevemao/conventional-changelog-eslint
|
||||
10
node_modules/conventional-changelog-eslint/conventional-changelog.js
generated
vendored
Normal file
10
node_modules/conventional-changelog-eslint/conventional-changelog.js
generated
vendored
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
'use strict'
|
||||
|
||||
const Q = require('q')
|
||||
const parserOpts = require('./parser-opts')
|
||||
const writerOpts = require('./writer-opts')
|
||||
|
||||
module.exports = Q.all([parserOpts, writerOpts])
|
||||
.spread((parserOpts, writerOpts) => {
|
||||
return { parserOpts, writerOpts }
|
||||
})
|
||||
32
node_modules/conventional-changelog-eslint/conventional-recommended-bump.js
generated
vendored
Normal file
32
node_modules/conventional-changelog-eslint/conventional-recommended-bump.js
generated
vendored
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
'use strict'
|
||||
|
||||
const parserOpts = require('./parser-opts')
|
||||
|
||||
module.exports = {
|
||||
parserOpts,
|
||||
|
||||
whatBump: commits => {
|
||||
let level = 2
|
||||
let breakings = 0
|
||||
let features = 0
|
||||
|
||||
commits.forEach(commit => {
|
||||
if (!commit.tag) return
|
||||
|
||||
if (commit.tag.toLowerCase() === 'breaking') {
|
||||
breakings += 1
|
||||
level = 0
|
||||
} else if (commit.tag.toLowerCase() === 'new') {
|
||||
features += 1
|
||||
if (level === 2) {
|
||||
level = 1
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
return {
|
||||
level: level,
|
||||
reason: `There are ${breakings} breaking changes and ${features} features`
|
||||
}
|
||||
}
|
||||
}
|
||||
15
node_modules/conventional-changelog-eslint/index.js
generated
vendored
Normal file
15
node_modules/conventional-changelog-eslint/index.js
generated
vendored
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
'use strict'
|
||||
const Q = require('q')
|
||||
const conventionalChangelog = require('./conventional-changelog')
|
||||
const parserOpts = require('./parser-opts')
|
||||
const recommendedBumpOpts = require('./conventional-recommended-bump')
|
||||
const writerOpts = require('./writer-opts')
|
||||
|
||||
module.exports = presetOpts
|
||||
|
||||
function presetOpts (cb) {
|
||||
Q.all([conventionalChangelog, parserOpts, recommendedBumpOpts, writerOpts])
|
||||
.spread((conventionalChangelog, parserOpts, recommendedBumpOpts, writerOpts) => {
|
||||
cb(null, { conventionalChangelog, parserOpts, recommendedBumpOpts, writerOpts })
|
||||
})
|
||||
}
|
||||
39
node_modules/conventional-changelog-eslint/package.json
generated
vendored
Normal file
39
node_modules/conventional-changelog-eslint/package.json
generated
vendored
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
{
|
||||
"name": "conventional-changelog-eslint",
|
||||
"version": "3.0.9",
|
||||
"description": "conventional-changelog eslint preset",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
"test-windows": "echo 'make work on windows'"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/conventional-changelog/conventional-changelog.git"
|
||||
},
|
||||
"keywords": [
|
||||
"conventional-changelog",
|
||||
"eslint",
|
||||
"preset"
|
||||
],
|
||||
"author": "Steve Mao",
|
||||
"engines": {
|
||||
"node": ">=10"
|
||||
},
|
||||
"license": "ISC",
|
||||
"files": [
|
||||
"conventional-changelog.js",
|
||||
"conventional-recommended-bump.js",
|
||||
"index.js",
|
||||
"parser-opts.js",
|
||||
"writer-opts.js",
|
||||
"templates"
|
||||
],
|
||||
"bugs": {
|
||||
"url": "https://github.com/conventional-changelog/conventional-changelog/issues"
|
||||
},
|
||||
"homepage": "https://github.com/conventional-changelog/conventional-changelog/tree/master/packages/conventional-changelog-eslint#readme",
|
||||
"dependencies": {
|
||||
"q": "^1.5.1"
|
||||
},
|
||||
"gitHead": "cc567b98facf71315f4b1620d81ce01d155efaca"
|
||||
}
|
||||
9
node_modules/conventional-changelog-eslint/parser-opts.js
generated
vendored
Normal file
9
node_modules/conventional-changelog-eslint/parser-opts.js
generated
vendored
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
'use strict'
|
||||
|
||||
module.exports = {
|
||||
headerPattern: /^(\w*):\s*(.*)$/,
|
||||
headerCorrespondence: [
|
||||
'tag',
|
||||
'message'
|
||||
]
|
||||
}
|
||||
5
node_modules/conventional-changelog-eslint/templates/commit.hbs
generated
vendored
Normal file
5
node_modules/conventional-changelog-eslint/templates/commit.hbs
generated
vendored
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
* {{#if message}}{{message}}{{else}}{{header}}{{/if}}
|
||||
|
||||
{{~!-- commit hash --}} {{#if @root.linkReferences}}([{{shortHash}}]({{#if @root.host}}{{@root.host}}/{{/if}}{{#if @root.owner}}{{@root.owner}}/{{/if}}{{@root.repository}}/{{@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.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}}/{{@root.issue}}/{{this.issue}}){{else}}{{#if this.owner}}{{this.owner}}/{{/if}}{{this.repository}}#{{this.issue}}{{/if}}{{/each}}{{/if}}
|
||||
1
node_modules/conventional-changelog-eslint/templates/header.hbs
generated
vendored
Normal file
1
node_modules/conventional-changelog-eslint/templates/header.hbs
generated
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
{{#if isPatch}}##{{else}}#{{/if}} {{#if @root.linkCompare}}[{{version}}]({{@root.host}}/{{#if @root.owner}}{{@root.owner}}/{{/if}}{{@root.repository}}/compare/{{previousTag}}...{{currentTag}}){{else}}{{version}}{{/if}}{{#if title}} "{{title}}"{{/if}}{{#if date}} ({{date}}){{/if}}
|
||||
15
node_modules/conventional-changelog-eslint/templates/template.hbs
generated
vendored
Normal file
15
node_modules/conventional-changelog-eslint/templates/template.hbs
generated
vendored
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
{{> header}}
|
||||
|
||||
{{#each commitGroups}}
|
||||
|
||||
{{#if title}}
|
||||
### {{title}}
|
||||
|
||||
{{/if}}
|
||||
{{#each commits}}
|
||||
{{> commit root=@root}}
|
||||
{{/each}}
|
||||
{{/each}}
|
||||
|
||||
|
||||
|
||||
37
node_modules/conventional-changelog-eslint/writer-opts.js
generated
vendored
Normal file
37
node_modules/conventional-changelog-eslint/writer-opts.js
generated
vendored
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
'use strict'
|
||||
|
||||
const Q = require('q')
|
||||
const readFile = Q.denodeify(require('fs').readFile)
|
||||
const resolve = require('path').resolve
|
||||
|
||||
module.exports = Q.all([
|
||||
readFile(resolve(__dirname, './templates/template.hbs'), 'utf-8'),
|
||||
readFile(resolve(__dirname, './templates/header.hbs'), 'utf-8'),
|
||||
readFile(resolve(__dirname, './templates/commit.hbs'), 'utf-8')
|
||||
])
|
||||
.spread((template, header, commit) => {
|
||||
const writerOpts = getWriterOpts()
|
||||
|
||||
writerOpts.mainTemplate = template
|
||||
writerOpts.headerPartial = header
|
||||
writerOpts.commitPartial = commit
|
||||
|
||||
return writerOpts
|
||||
})
|
||||
|
||||
function getWriterOpts () {
|
||||
return {
|
||||
transform: (commit) => {
|
||||
if (!commit.tag || typeof commit.tag !== 'string') {
|
||||
return
|
||||
}
|
||||
|
||||
commit.shortHash = commit.hash.substring(0, 7)
|
||||
|
||||
return commit
|
||||
},
|
||||
groupBy: 'tag',
|
||||
commitGroupsSort: 'title',
|
||||
commitsSort: ['tag', 'message']
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue