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:
5
node_modules/conventional-changelog-jscs/.jscsrc
generated
vendored
Normal file
5
node_modules/conventional-changelog-jscs/.jscsrc
generated
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"preset": "google",
|
||||
"maximumLineLength": null,
|
||||
"excludeFiles": ["node_modules/**"]
|
||||
}
|
||||
15
node_modules/conventional-changelog-jscs/.jshintrc
generated
vendored
Normal file
15
node_modules/conventional-changelog-jscs/.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-jscs/.npmignore
generated
vendored
Normal file
2
node_modules/conventional-changelog-jscs/.npmignore
generated
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
node_modules
|
||||
tmp
|
||||
13
node_modules/conventional-changelog-jscs/.travis.yml
generated
vendored
Normal file
13
node_modules/conventional-changelog-jscs/.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
|
||||
54
node_modules/conventional-changelog-jscs/index.js
generated
vendored
Normal file
54
node_modules/conventional-changelog-jscs/index.js
generated
vendored
Normal file
@@ -0,0 +1,54 @@
|
||||
'use strict';
|
||||
var Q = require('q');
|
||||
var readFile = Q.denodeify(require('fs').readFile);
|
||||
var resolve = require('path').resolve;
|
||||
|
||||
function presetOpts(cb) {
|
||||
var gitRawCommitsOpts = {
|
||||
format: '%B%n-hash-%n%H%n-gitTags-%n%d%n-committerDate-%n%ci%n-authorName-%n%an',
|
||||
};
|
||||
|
||||
var parserOpts = {
|
||||
headerPattern: /^(\w*)\: (.*)$/,
|
||||
headerCorrespondence: [
|
||||
'component',
|
||||
'shortDesc'
|
||||
]
|
||||
};
|
||||
|
||||
var writerOpts = {
|
||||
transform: function(commit) {
|
||||
if (!commit.component) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (typeof commit.hash === 'string') {
|
||||
commit.hash = commit.hash.substring(0, 7);
|
||||
}
|
||||
|
||||
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, {
|
||||
gitRawCommitsOpts: gitRawCommitsOpts,
|
||||
parserOpts: parserOpts,
|
||||
writerOpts: writerOpts
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
module.exports = presetOpts;
|
||||
40
node_modules/conventional-changelog-jscs/package.json
generated
vendored
Normal file
40
node_modules/conventional-changelog-jscs/package.json
generated
vendored
Normal file
@@ -0,0 +1,40 @@
|
||||
{
|
||||
"name": "conventional-changelog-jscs",
|
||||
"version": "0.1.0",
|
||||
"description": "conventional-changelog jscs 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-jscs.git"
|
||||
},
|
||||
"keywords": [
|
||||
"conventional-changelog",
|
||||
"jscs",
|
||||
"preset"
|
||||
],
|
||||
"author": "Steve Mao",
|
||||
"license": "ISC",
|
||||
"bugs": {
|
||||
"url": "https://github.com/stevemao/conventional-changelog-jscs/issues"
|
||||
},
|
||||
"homepage": "https://github.com/stevemao/conventional-changelog-jscs#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"
|
||||
}
|
||||
}
|
||||
13
node_modules/conventional-changelog-jscs/readme.md
generated
vendored
Normal file
13
node_modules/conventional-changelog-jscs/readme.md
generated
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
# [![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) [jscs](https://github.com/jscs-dev/node-jscs) preset
|
||||
|
||||
|
||||
[npm-image]: https://badge.fury.io/js/conventional-changelog-jscs.svg
|
||||
[npm-url]: https://npmjs.org/package/conventional-changelog-jscs
|
||||
[travis-image]: https://travis-ci.org/stevemao/conventional-changelog-jscs.svg?branch=master
|
||||
[travis-url]: https://travis-ci.org/stevemao/conventional-changelog-jscs
|
||||
[daviddm-image]: https://david-dm.org/stevemao/conventional-changelog-jscs.svg?theme=shields.io
|
||||
[daviddm-url]: https://david-dm.org/stevemao/conventional-changelog-jscs
|
||||
[coveralls-image]: https://coveralls.io/repos/stevemao/conventional-changelog-jscs/badge.svg
|
||||
[coveralls-url]: https://coveralls.io/r/stevemao/conventional-changelog-jscs
|
||||
7
node_modules/conventional-changelog-jscs/templates/commit.hbs
generated
vendored
Normal file
7
node_modules/conventional-changelog-jscs/templates/commit.hbs
generated
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
* {{#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}}
|
||||
|
||||
{{~#if authorName}} ({{authorName}}){{/if}}
|
||||
1
node_modules/conventional-changelog-jscs/templates/header.hbs
generated
vendored
Normal file
1
node_modules/conventional-changelog-jscs/templates/header.hbs
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{{#if isPatch}}##{{else}}#{{/if}} Version {{#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-jscs/templates/template.hbs
generated
vendored
Normal file
15
node_modules/conventional-changelog-jscs/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}}
|
||||
|
||||
|
||||
|
||||
55
node_modules/conventional-changelog-jscs/test.js
generated
vendored
Normal file
55
node_modules/conventional-changelog-jscs/test.js
generated
vendored
Normal file
@@ -0,0 +1,55 @@
|
||||
'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('jscs 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"disallowKeywordsOnNewLine: Allow comments before keywords"');
|
||||
writeFileSync('test2', '');
|
||||
shell.exec('git add --all && git commit -m"CLI: set \\"maxErrors\\" to Infinity with enabled \\"fix\\" option"');
|
||||
writeFileSync('test3', '');
|
||||
shell.exec('git add --all && git commit -m"Preset: requireSemicolons = true for google preset"');
|
||||
writeFileSync('test4', '');
|
||||
shell.exec('git add --all && git commit -m"Preset: add jsDoc rules to relevant presets"');
|
||||
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('### disallowKeywordsOnNewLine');
|
||||
expect(chunk).to.include('set \"maxErrors\" to Infinity with enabled \"fix\" option');
|
||||
expect(chunk).to.include('requireSemicolons = true for google preset');
|
||||
expect(chunk).to.include('### Preset');
|
||||
expect(chunk).to.include('add jsDoc rules to relevant presets');
|
||||
|
||||
if (process.env.TRAVIS) {
|
||||
expect(chunk).to.include(' (Travis-CI)');
|
||||
}
|
||||
|
||||
expect(chunk).to.not.include('Bad');
|
||||
|
||||
done();
|
||||
}));
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user