mirror of
https://github.com/morhetz/gruvbox.git
synced 2025-11-17 07:43:38 -05:00
chore(package): re-init package with commitizen and standard-release
This commit is contained in:
5
node_modules/conventional-changelog-jquery/.jscsrc
generated
vendored
Normal file
5
node_modules/conventional-changelog-jquery/.jscsrc
generated
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"preset": "google",
|
||||
"maximumLineLength": null,
|
||||
"excludeFiles": ["node_modules/**"]
|
||||
}
|
||||
15
node_modules/conventional-changelog-jquery/.jshintrc
generated
vendored
Normal file
15
node_modules/conventional-changelog-jquery/.jshintrc
generated
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
{
|
||||
"boss": true,
|
||||
"curly": true,
|
||||
"eqeqeq": true,
|
||||
"eqnull": true,
|
||||
"immed": true,
|
||||
"latedef": true,
|
||||
"mocha" : true,
|
||||
"newcap": true,
|
||||
"noarg": true,
|
||||
"node": true,
|
||||
"sub": true,
|
||||
"undef": true,
|
||||
"unused": true
|
||||
}
|
||||
2
node_modules/conventional-changelog-jquery/.npmignore
generated
vendored
Normal file
2
node_modules/conventional-changelog-jquery/.npmignore
generated
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
node_modules
|
||||
tmp
|
||||
13
node_modules/conventional-changelog-jquery/.travis.yml
generated
vendored
Normal file
13
node_modules/conventional-changelog-jquery/.travis.yml
generated
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
language: node_js
|
||||
node_js:
|
||||
- '5'
|
||||
- '4'
|
||||
- '3'
|
||||
- '2'
|
||||
- '1'
|
||||
- '0.12'
|
||||
- '0.10'
|
||||
before_script:
|
||||
- git config --global user.name 'Travis-CI'
|
||||
- git config --global user.email 'dummy@example.org'
|
||||
after_script: NODE_ENV=test istanbul cover ./node_modules/mocha/bin/_mocha -- -R spec && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage
|
||||
37
node_modules/conventional-changelog-jquery/convention.md
generated
vendored
Normal file
37
node_modules/conventional-changelog-jquery/convention.md
generated
vendored
Normal file
@@ -0,0 +1,37 @@
|
||||
## Commit Guidelines
|
||||
|
||||
Commit messages should describe what changed, and reference the issue number if the commit closes or is associated with a particular issue. Commit messages for all jQuery projects should look like this:
|
||||
|
||||
```
|
||||
Component: Short Description
|
||||
|
||||
Optional Long Description
|
||||
|
||||
Fixes #xxx
|
||||
Closes gh-yyy
|
||||
Ref #zzz
|
||||
```
|
||||
|
||||
Every commit must have a subject (the first line). Everything else is optional.
|
||||
|
||||
### Subject
|
||||
|
||||
This is the first line. It consists of a component, like "Event" or "Autocomplete". This line must be 72 characters or less. There should be no full stop (period) at the end.
|
||||
|
||||
### Long description
|
||||
|
||||
There are two line breaks between the subject and the long description. The description can have any length and formatting, like lists, but it must be hard-wrapped at 80 characters.
|
||||
|
||||
### References
|
||||
|
||||
References to issues or pull requests go after the long description, each one on their own line.
|
||||
|
||||
* Use **Fixes** when the commit fixes an open issue.
|
||||
|
||||
* Use **Closes** when the commit closes an open pull request.
|
||||
|
||||
* Use **Ref** when referencing an issue or pull request that is already closed or should remain open. Examples include partial fixes and commits that add a test but not a fix.
|
||||
|
||||
* Always use "gh-xxx" for GitHub issues and pull requests within the same repository. Use "\[user\]/\[repo\]#xxx" when referencing an issue or pull request in another repository, e.g., "Closes jquery/jquery-ui#175".
|
||||
|
||||
Based on https://github.com/jquery/contribute.jquery.org/blob/master/pages/commits-and-pull-requests.md#commit-guidelines
|
||||
58
node_modules/conventional-changelog-jquery/index.js
generated
vendored
Normal file
58
node_modules/conventional-changelog-jquery/index.js
generated
vendored
Normal file
@@ -0,0 +1,58 @@
|
||||
'use strict';
|
||||
var Q = require('q');
|
||||
var readFile = Q.denodeify(require('fs').readFile);
|
||||
var resolve = require('path').resolve;
|
||||
|
||||
function presetOpts(cb) {
|
||||
var parserOpts = {
|
||||
headerPattern: /^(\w*)\: (.*)$/,
|
||||
headerCorrespondence: [
|
||||
'component',
|
||||
'shortDesc'
|
||||
]
|
||||
};
|
||||
|
||||
var writerOpts = {
|
||||
transform: function(commit) {
|
||||
var componentLength;
|
||||
|
||||
if (!commit.component || typeof commit.component !== 'string') {
|
||||
return;
|
||||
}
|
||||
|
||||
commit.component = commit.component.substring(0, 72);
|
||||
componentLength = commit.component.length;
|
||||
|
||||
if (typeof commit.hash === 'string') {
|
||||
commit.hash = commit.hash.substring(0, 7);
|
||||
}
|
||||
|
||||
if (typeof commit.shortDesc === 'string') {
|
||||
commit.shortDesc = commit.shortDesc.substring(0, 72 - componentLength);
|
||||
}
|
||||
|
||||
return commit;
|
||||
},
|
||||
groupBy: 'component',
|
||||
commitGroupsSort: 'title',
|
||||
commitsSort: ['component', 'shortDesc']
|
||||
};
|
||||
|
||||
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(function(template, header, commit) {
|
||||
writerOpts.mainTemplate = template;
|
||||
writerOpts.headerPartial = header;
|
||||
writerOpts.commitPartial = commit;
|
||||
|
||||
cb(null, {
|
||||
parserOpts: parserOpts,
|
||||
writerOpts: writerOpts
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
module.exports = presetOpts;
|
||||
40
node_modules/conventional-changelog-jquery/package.json
generated
vendored
Normal file
40
node_modules/conventional-changelog-jquery/package.json
generated
vendored
Normal file
@@ -0,0 +1,40 @@
|
||||
{
|
||||
"name": "conventional-changelog-jquery",
|
||||
"version": "0.1.0",
|
||||
"description": "conventional-changelog jquery preset",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
"coverage": "istanbul cover _mocha -- -R spec && rm -rf ./coverage",
|
||||
"lint": "jshint *.js --exclude node_modules && jscs *.js",
|
||||
"test": "mocha && npm run-script lint"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/stevemao/conventional-changelog-jquery.git"
|
||||
},
|
||||
"keywords": [
|
||||
"conventional-changelog",
|
||||
"jquery",
|
||||
"preset"
|
||||
],
|
||||
"author": "Steve Mao",
|
||||
"license": "ISC",
|
||||
"bugs": {
|
||||
"url": "https://github.com/stevemao/conventional-changelog-jquery/issues"
|
||||
},
|
||||
"homepage": "https://github.com/stevemao/conventional-changelog-jquery#readme",
|
||||
"devDependencies": {
|
||||
"chai": "^3.5.0",
|
||||
"conventional-changelog-core": "0.0.2",
|
||||
"coveralls": "^2.11.6",
|
||||
"istanbul": "^0.4.2",
|
||||
"jscs": "^2.9.0",
|
||||
"jshint": "^2.9.1",
|
||||
"mocha": "*",
|
||||
"shelljs": "^0.5.3",
|
||||
"through2": "^2.0.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"q": "^1.4.1"
|
||||
}
|
||||
}
|
||||
16
node_modules/conventional-changelog-jquery/readme.md
generated
vendored
Normal file
16
node_modules/conventional-changelog-jquery/readme.md
generated
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
# [![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) [jQuery](https://github.com/jquery/jquery) preset
|
||||
|
||||
|
||||
See [convention](convention.md)
|
||||
|
||||
|
||||
[npm-image]: https://badge.fury.io/js/conventional-changelog-jquery.svg
|
||||
[npm-url]: https://npmjs.org/package/conventional-changelog-jquery
|
||||
[travis-image]: https://travis-ci.org/stevemao/conventional-changelog-jquery.svg?branch=master
|
||||
[travis-url]: https://travis-ci.org/stevemao/conventional-changelog-jquery
|
||||
[daviddm-image]: https://david-dm.org/stevemao/conventional-changelog-jquery.svg?theme=shields.io
|
||||
[daviddm-url]: https://david-dm.org/stevemao/conventional-changelog-jquery
|
||||
[coveralls-image]: https://coveralls.io/repos/stevemao/conventional-changelog-jquery/badge.svg
|
||||
[coveralls-url]: https://coveralls.io/r/stevemao/conventional-changelog-jquery
|
||||
5
node_modules/conventional-changelog-jquery/templates/commit.hbs
generated
vendored
Normal file
5
node_modules/conventional-changelog-jquery/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}}
|
||||
2
node_modules/conventional-changelog-jquery/templates/header.hbs
generated
vendored
Normal file
2
node_modules/conventional-changelog-jquery/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}}
|
||||
15
node_modules/conventional-changelog-jquery/templates/template.hbs
generated
vendored
Normal file
15
node_modules/conventional-changelog-jquery/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}}
|
||||
|
||||
|
||||
|
||||
50
node_modules/conventional-changelog-jquery/test.js
generated
vendored
Normal file
50
node_modules/conventional-changelog-jquery/test.js
generated
vendored
Normal file
@@ -0,0 +1,50 @@
|
||||
'use strict';
|
||||
var conventionalChangelogCore = require('conventional-changelog-core');
|
||||
var config = require('./');
|
||||
var expect = require('chai').expect;
|
||||
var shell = require('shelljs');
|
||||
var through = require('through2');
|
||||
var writeFileSync = require('fs').writeFileSync;
|
||||
|
||||
describe('jquery preset', function() {
|
||||
before(function() {
|
||||
shell.config.silent = true;
|
||||
shell.rm('-rf', 'tmp');
|
||||
shell.mkdir('tmp');
|
||||
shell.cd('tmp');
|
||||
shell.mkdir('git-templates');
|
||||
shell.exec('git init --template=./git-templates');
|
||||
|
||||
writeFileSync('test1', '');
|
||||
shell.exec('git add --all && git commit -m"Core: Make jQuery objects iterable"');
|
||||
writeFileSync('test2', '');
|
||||
shell.exec('git add --all && git commit -m"CSS: Don\'t name the anonymous swap function"');
|
||||
writeFileSync('test3', '');
|
||||
shell.exec('git add --all && git commit -m"Event: Remove an internal argument to the on method"');
|
||||
writeFileSync('test4', '');
|
||||
shell.exec('git add --all && git commit -m"Manipulation: Remove an internal argument to the remove method"');
|
||||
writeFileSync('test5', '');
|
||||
shell.exec('git add --all && git commit -m"Bad commit"');
|
||||
});
|
||||
|
||||
it('should work if there is no semver tag', function(done) {
|
||||
conventionalChangelogCore({
|
||||
config: config
|
||||
})
|
||||
.on('error', function(err) {
|
||||
done(err);
|
||||
})
|
||||
.pipe(through(function(chunk) {
|
||||
chunk = chunk.toString();
|
||||
|
||||
expect(chunk).to.include('Make jQuery objects iterable');
|
||||
expect(chunk).to.include('### CSS');
|
||||
expect(chunk).to.include('Remove an internal argument to the on method');
|
||||
expect(chunk).to.include('### Manipulation');
|
||||
|
||||
expect(chunk).to.not.include('Bad');
|
||||
|
||||
done();
|
||||
}));
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user