mirror of
https://github.com/morhetz/gruvbox.git
synced 2025-11-18 00:03:38 -05:00
chore(package): re-init package with commitizen and standard-release
This commit is contained in:
98
node_modules/conventional-changelog-jshint/CHANGELOG.md
generated
vendored
Normal file
98
node_modules/conventional-changelog-jshint/CHANGELOG.md
generated
vendored
Normal file
@@ -0,0 +1,98 @@
|
||||
# Change Log
|
||||
|
||||
All notable changes to this project will be documented in this file.
|
||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||
|
||||
<a name="0.3.8"></a>
|
||||
## [0.3.8](https://github.com/conventional-changelog/conventional-changelog/compare/conventional-changelog-jshint@0.3.7...conventional-changelog-jshint@0.3.8) (2018-03-28)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* revert previous change ([2f4530f](https://github.com/conventional-changelog/conventional-changelog/commit/2f4530f))
|
||||
|
||||
|
||||
|
||||
|
||||
<a name="0.3.7"></a>
|
||||
## [0.3.7](https://github.com/conventional-changelog/conventional-changelog/compare/conventional-changelog-jshint@0.3.6...conventional-changelog-jshint@0.3.7) (2018-03-27)
|
||||
|
||||
|
||||
|
||||
|
||||
**Note:** Version bump only for package conventional-changelog-jshint
|
||||
|
||||
<a name="0.3.6"></a>
|
||||
## [0.3.6](https://github.com/conventional-changelog/conventional-changelog/compare/conventional-changelog-jshint@0.3.5...conventional-changelog-jshint@0.3.6) (2018-03-27)
|
||||
|
||||
|
||||
|
||||
|
||||
**Note:** Version bump only for package conventional-changelog-jshint
|
||||
|
||||
<a name="0.3.5"></a>
|
||||
## [0.3.5](https://github.com/conventional-changelog/conventional-changelog/compare/conventional-changelog-jshint@0.3.4...conventional-changelog-jshint@0.3.5) (2018-03-22)
|
||||
|
||||
|
||||
|
||||
|
||||
**Note:** Version bump only for package conventional-changelog-jshint
|
||||
|
||||
<a name="0.3.4"></a>
|
||||
## [0.3.4](https://github.com/conventional-changelog/conventional-changelog/compare/conventional-changelog-jshint@0.3.3...conventional-changelog-jshint@0.3.4) (2018-02-24)
|
||||
|
||||
|
||||
|
||||
|
||||
**Note:** Version bump only for package conventional-changelog-jshint
|
||||
|
||||
<a name="0.3.3"></a>
|
||||
## [0.3.3](https://github.com/conventional-changelog/conventional-changelog/compare/conventional-changelog-jshint@0.3.2...conventional-changelog-jshint@0.3.3) (2018-02-20)
|
||||
|
||||
|
||||
|
||||
|
||||
**Note:** Version bump only for package conventional-changelog-jshint
|
||||
|
||||
<a name="0.3.2"></a>
|
||||
## [0.3.2](https://github.com/stevemao/conventional-changelog-jshint/compare/conventional-changelog-jshint@0.3.1...conventional-changelog-jshint@0.3.2) (2018-02-13)
|
||||
|
||||
|
||||
|
||||
|
||||
**Note:** Version bump only for package conventional-changelog-jshint
|
||||
|
||||
<a name="0.3.1"></a>
|
||||
## [0.3.1](https://github.com/stevemao/conventional-changelog-jshint/compare/conventional-changelog-jshint@0.3.0...conventional-changelog-jshint@0.3.1) (2018-02-13)
|
||||
|
||||
|
||||
|
||||
|
||||
**Note:** Version bump only for package conventional-changelog-jshint
|
||||
|
||||
<a name="0.3.0"></a>
|
||||
# [0.3.0](https://github.com/stevemao/conventional-changelog-jshint/compare/conventional-changelog-jshint@0.2.1...conventional-changelog-jshint@0.3.0) (2017-12-18)
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* **preset:** add recommended-bump opts into presets ([60815b5](https://github.com/stevemao/conventional-changelog-jshint/commit/60815b5)), closes [#241](https://github.com/stevemao/conventional-changelog-jshint/issues/241)
|
||||
|
||||
|
||||
|
||||
|
||||
<a name="0.2.1"></a>
|
||||
## [0.2.1](https://github.com/stevemao/conventional-changelog-jshint/compare/conventional-changelog-jshint@0.2.0...conventional-changelog-jshint@0.2.1) (2017-11-13)
|
||||
|
||||
|
||||
|
||||
|
||||
**Note:** Version bump only for package conventional-changelog-jshint
|
||||
|
||||
<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-jshint/commit/793e823))
|
||||
15
node_modules/conventional-changelog-jshint/LICENSE.md
generated
vendored
Normal file
15
node_modules/conventional-changelog-jshint/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.
|
||||
90
node_modules/conventional-changelog-jshint/README.md
generated
vendored
Normal file
90
node_modules/conventional-changelog-jshint/README.md
generated
vendored
Normal file
@@ -0,0 +1,90 @@
|
||||
# [![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) [jshint](https://github.com/jshint/jshint) preset
|
||||
|
||||
**Issues with the convention itself should be reported on the JSHint issue tracker.**
|
||||
|
||||
## JSHint Convention
|
||||
|
||||
### Overview
|
||||
|
||||
Commit messages are written in a simple format which clearly describes the purpose of a change.
|
||||
|
||||
The format in general should look like this:
|
||||
|
||||
```
|
||||
[[TYPE]] <Short description>
|
||||
<Blank line>
|
||||
|
||||
<Body / Detailed description>
|
||||
|
||||
<Footer>
|
||||
```
|
||||
|
||||
Line lengths in commit messages are not strict, but good commit messages should have headers of no
|
||||
more than 60 characters, and bodies/footers wrapped at 100 columns. This renders nicely on Github's
|
||||
UI.
|
||||
|
||||
### Header
|
||||
|
||||
The first line is the commit message header, which will indicate the type of change, and a general
|
||||
description of the change. This should fit within 60 characters, ideally. For instance:
|
||||
|
||||
```
|
||||
[[FIX]] Ignore "nocomma" when parsing object literals
|
||||
```
|
||||
|
||||
The title `[[FIX]]` indicates that the change is a bugfix, while the remainder clarifies what the
|
||||
change actually contains.
|
||||
|
||||
Several commit types are used by jshint:
|
||||
|
||||
1. `[[FIX]]` --- Commit fixes a bug or regression
|
||||
2. `[[FEAT]]` --- Commit introduces new functionality
|
||||
3. `[[DOCS]]` --- Commit modifies documentation. Docs commits should only touch comments in source code, or scripts and assets which are used to generate the documentation.
|
||||
4. `[[TEST]]` --- Commit modifies tests or test infrastructure only
|
||||
5. `[[CHORE]]` --- Commit affects dev-ops, CI, or package dependencies
|
||||
|
||||
### Body
|
||||
|
||||
`<Body>` is a detailed commit message explaining exactly what has changed, and a summary of the
|
||||
reason why. Lines in the body should be wrapped to 100 characters for best rendering.
|
||||
|
||||
For a historical example, see this [example](https://github.com/jshint/jshint/commit/5751c5ed249b7a035758a3ae876cfa1a360fd144)
|
||||
|
||||
### Footer
|
||||
|
||||
`<Footer>` contains a description of any breaking changes, no matter how subtle, as well as a list
|
||||
of issues affected or fixed by this commit. Lines in the footer should be wrapped to 100 characters
|
||||
for best rendering.
|
||||
|
||||
For instance:
|
||||
|
||||
```
|
||||
[[FEAT]] Enable `norecurs` option by default
|
||||
|
||||
Commit 124124a7f introduced an option which forbids recursion. We liked it so much, we've enabled
|
||||
it by default.
|
||||
|
||||
BREAKING CHANGE:
|
||||
|
||||
This change will break the CI builds of many applications and frameworks.
|
||||
|
||||
In order to work around this issue, you will need to re-engineer your applications and frameworks
|
||||
to avoid making recursive calls. Use Arrays as stacks rather than relying on the VM call stack.
|
||||
|
||||
Fixes #1000009
|
||||
Closes #888888
|
||||
Closes #77777
|
||||
```
|
||||
|
||||
Based on https://github.com/jshint/jshint/blob/master/CONTRIBUTING.md#commit-message-guidelines
|
||||
|
||||
[npm-image]: https://badge.fury.io/js/conventional-changelog-jshint.svg
|
||||
[npm-url]: https://npmjs.org/package/conventional-changelog-jshint
|
||||
[travis-image]: https://travis-ci.org/stevemao/conventional-changelog-jshint.svg?branch=master
|
||||
[travis-url]: https://travis-ci.org/stevemao/conventional-changelog-jshint
|
||||
[daviddm-image]: https://david-dm.org/stevemao/conventional-changelog-jshint.svg?theme=shields.io
|
||||
[daviddm-url]: https://david-dm.org/stevemao/conventional-changelog-jshint
|
||||
[coveralls-image]: https://coveralls.io/repos/stevemao/conventional-changelog-jshint/badge.svg
|
||||
[coveralls-url]: https://coveralls.io/r/stevemao/conventional-changelog-jshint
|
||||
10
node_modules/conventional-changelog-jshint/conventional-changelog.js
generated
vendored
Normal file
10
node_modules/conventional-changelog-jshint/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}
|
||||
})
|
||||
38
node_modules/conventional-changelog-jshint/conventional-recommended-bump.js
generated
vendored
Normal file
38
node_modules/conventional-changelog-jshint/conventional-recommended-bump.js
generated
vendored
Normal file
@@ -0,0 +1,38 @@
|
||||
'use strict'
|
||||
|
||||
module.exports = {
|
||||
whatBump: (commits) => {
|
||||
let level = 2
|
||||
let breakings = 0
|
||||
let features = 0
|
||||
|
||||
commits.forEach(commit => {
|
||||
if (commit.notes.length > 0) {
|
||||
breakings += commit.notes.length
|
||||
level = 0
|
||||
} else if (commit.type === `feat`) {
|
||||
features += 1
|
||||
if (level === 2) {
|
||||
level = 1
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
return {
|
||||
level: level,
|
||||
reason: `There are ${breakings} BREAKING CHANGES and ${features} features`
|
||||
}
|
||||
},
|
||||
|
||||
parserOpts: {
|
||||
headerPattern: /^(\w*)(?:\((.*)\))?: (.*)$/,
|
||||
headerCorrespondence: [
|
||||
`type`,
|
||||
`scope`,
|
||||
`subject`
|
||||
],
|
||||
noteKeywords: `BREAKING CHANGE`,
|
||||
revertPattern: /^revert:\s([\s\S]*?)\s*This reverts commit (\w*)\./,
|
||||
revertCorrespondence: [`header`, `hash`]
|
||||
}
|
||||
}
|
||||
15
node_modules/conventional-changelog-jshint/index.js
generated
vendored
Normal file
15
node_modules/conventional-changelog-jshint/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})
|
||||
})
|
||||
}
|
||||
43
node_modules/conventional-changelog-jshint/package.json
generated
vendored
Normal file
43
node_modules/conventional-changelog-jshint/package.json
generated
vendored
Normal file
@@ -0,0 +1,43 @@
|
||||
{
|
||||
"name": "conventional-changelog-jshint",
|
||||
"version": "0.3.8",
|
||||
"description": "conventional-changelog jshint preset",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
"lint": "eslint --fix .",
|
||||
"test": "mocha --timeout 30000 && npm run-script lint",
|
||||
"test-windows": "echo 'make work on windows'"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/conventional-changelog/conventional-changelog.git"
|
||||
},
|
||||
"keywords": [
|
||||
"conventional-changelog",
|
||||
"jshint",
|
||||
"preset"
|
||||
],
|
||||
"author": "Steve Mao",
|
||||
"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-jshint#readme",
|
||||
"devDependencies": {
|
||||
"conventional-changelog-core": "0.0.2",
|
||||
"shelljs": "^0.8.0",
|
||||
"through2": "^2.0.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"compare-func": "^1.3.1",
|
||||
"q": "^1.5.1"
|
||||
}
|
||||
}
|
||||
10
node_modules/conventional-changelog-jshint/parser-opts.js
generated
vendored
Normal file
10
node_modules/conventional-changelog-jshint/parser-opts.js
generated
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
'use strict'
|
||||
|
||||
module.exports = {
|
||||
headerPattern: /^\[\[(.*)]] (.*)$/,
|
||||
headerCorrespondence: [
|
||||
`type`,
|
||||
`shortDesc`
|
||||
],
|
||||
noteKeywords: `BREAKING CHANGE`
|
||||
}
|
||||
5
node_modules/conventional-changelog-jshint/templates/commit.hbs
generated
vendored
Normal file
5
node_modules/conventional-changelog-jshint/templates/commit.hbs
generated
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
* {{#if shortDesc}}{{shortDesc}}{{else}}{{header}}{{/if}}
|
||||
|
||||
{{~!-- commit hash --}} {{#if @root.linkReferences}}([{{hash}}]({{#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}}
|
||||
11
node_modules/conventional-changelog-jshint/templates/footer.hbs
generated
vendored
Normal file
11
node_modules/conventional-changelog-jshint/templates/footer.hbs
generated
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
{{#if noteGroups}}
|
||||
{{#each noteGroups}}
|
||||
|
||||
### {{title}}
|
||||
|
||||
{{#each notes}}
|
||||
* {{#if commit.scope}}{{commit.scope}}: {{/if}}{{text}}
|
||||
{{/each}}
|
||||
{{/each}}
|
||||
|
||||
{{/if}}
|
||||
2
node_modules/conventional-changelog-jshint/templates/header.hbs
generated
vendored
Normal file
2
node_modules/conventional-changelog-jshint/templates/header.hbs
generated
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
<a name="{{version}}"></a>
|
||||
{{#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}}
|
||||
16
node_modules/conventional-changelog-jshint/templates/template.hbs
generated
vendored
Normal file
16
node_modules/conventional-changelog-jshint/templates/template.hbs
generated
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
{{> header}}
|
||||
|
||||
{{#each commitGroups}}
|
||||
|
||||
{{#if title}}
|
||||
### {{title}}
|
||||
|
||||
{{/if}}
|
||||
{{#each commits}}
|
||||
{{> commit root=@root}}
|
||||
{{/each}}
|
||||
{{/each}}
|
||||
|
||||
{{> footer}}
|
||||
|
||||
|
||||
56
node_modules/conventional-changelog-jshint/writer-opts.js
generated
vendored
Normal file
56
node_modules/conventional-changelog-jshint/writer-opts.js
generated
vendored
Normal file
@@ -0,0 +1,56 @@
|
||||
'use strict'
|
||||
|
||||
const compareFunc = require(`compare-func`)
|
||||
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`),
|
||||
readFile(resolve(__dirname, `./templates/footer.hbs`), `utf-8`)
|
||||
])
|
||||
.spread((template, header, commit, footer) => {
|
||||
const writerOpts = getWriterOpts()
|
||||
|
||||
writerOpts.mainTemplate = template
|
||||
writerOpts.headerPartial = header
|
||||
writerOpts.commitPartial = commit
|
||||
writerOpts.footerPartial = footer
|
||||
|
||||
return writerOpts
|
||||
})
|
||||
|
||||
function getWriterOpts () {
|
||||
return {
|
||||
transform: (commit) => {
|
||||
let type = commit.type ? commit.type.toUpperCase() : ``
|
||||
|
||||
if (type === `FEAT`) {
|
||||
commit.type = `Features`
|
||||
} else if (type === `FIX`) {
|
||||
commit.type = `Bug Fixes`
|
||||
} else {
|
||||
return
|
||||
}
|
||||
|
||||
if (typeof commit.hash === `string`) {
|
||||
commit.hash = commit.hash.substring(0, 7)
|
||||
}
|
||||
|
||||
commit.notes.forEach(note => {
|
||||
if (note.title === `BREAKING CHANGE`) {
|
||||
note.title = `BREAKING CHANGES`
|
||||
}
|
||||
})
|
||||
|
||||
return commit
|
||||
},
|
||||
groupBy: `type`,
|
||||
commitGroupsSort: `title`,
|
||||
commitsSort: [`type`, `shortDesc`],
|
||||
noteGroupsSort: `title`,
|
||||
notesSort: compareFunc
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user