chore(package): re-init package with commitizen and standard-release

This commit is contained in:
Pavel Pertsev
2018-05-16 12:54:46 +03:00
parent cb4e7a5643
commit eaf2328575
10640 changed files with 609660 additions and 117 deletions

View File

@@ -0,0 +1,87 @@
# 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="1.1.8"></a>
## [1.1.8](https://github.com/conventional-changelog/conventional-changelog/compare/conventional-changelog-preset-loader@1.1.7...conventional-changelog-preset-loader@1.1.8) (2018-03-27)
**Note:** Version bump only for package conventional-changelog-preset-loader
<a name="1.1.7"></a>
## [1.1.7](https://github.com/conventional-changelog/conventional-changelog/compare/conventional-changelog-preset-loader@1.1.6...conventional-changelog-preset-loader@1.1.7) (2018-03-22)
**Note:** Version bump only for package conventional-changelog-preset-loader
<a name="1.1.6"></a>
## [1.1.6](https://github.com/conventional-changelog/conventional-changelog/compare/conventional-changelog-preset-loader@1.1.5...conventional-changelog-preset-loader@1.1.6) (2018-02-24)
**Note:** Version bump only for package conventional-changelog-preset-loader
<a name="1.1.5"></a>
## [1.1.5](https://github.com/conventional-changelog/conventional-changelog/compare/conventional-changelog-preset-loader@1.1.4...conventional-changelog-preset-loader@1.1.5) (2018-02-20)
**Note:** Version bump only for package conventional-changelog-preset-loader
<a name="1.1.4"></a>
## [1.1.4](https://github.com/conventional-changelog/conventional-changelog/compare/conventional-changelog-preset-loader@1.1.3...conventional-changelog-preset-loader@1.1.4) (2018-02-13)
**Note:** Version bump only for package conventional-changelog-preset-loader
<a name="1.1.3"></a>
## [1.1.3](https://github.com/conventional-changelog/conventional-changelog/compare/conventional-changelog-preset-loader@1.1.2...conventional-changelog-preset-loader@1.1.3) (2018-02-13)
**Note:** Version bump only for package conventional-changelog-preset-loader
<a name="1.1.2"></a>
## [1.1.2](https://github.com/conventional-changelog/conventional-changelog/compare/conventional-changelog-preset-loader@1.1.1...conventional-changelog-preset-loader@1.1.2) (2018-02-12)
### Bug Fixes
* **preset-loader:** don't namespace exported function ([#278](https://github.com/conventional-changelog/conventional-changelog/issues/278)) ([89880cb](https://github.com/conventional-changelog/conventional-changelog/commit/89880cb))
<a name="1.1.1"></a>
## [1.1.1](https://github.com/conventional-changelog/conventional-changelog/compare/conventional-changelog-preset-loader@1.1.0...conventional-changelog-preset-loader@1.1.1) (2018-02-09)
**Note:** Version bump only for package conventional-changelog-preset-loader
<a name="1.1.0"></a>
# 1.1.0 (2018-02-08)
### Features
* **preset-loader:** new package for loading preset packages ([6f5cb10](https://github.com/conventional-changelog/conventional-changelog/commit/6f5cb10))
# Change Log
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

View File

@@ -0,0 +1,21 @@
### MIT License
Copyright © [conventional-changelog team](https://github.com/conventional-changelog)
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
of the Software, and to permit persons to whom the Software is furnished to do
so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

View File

@@ -0,0 +1,40 @@
# [![NPM version][npm-image]][npm-url] [![Build Status: Linux][travis-image]][travis-url] [![Build Status: Windows][appveyor-image]][appveyor-url] [![Dependency Status][daviddm-image]][daviddm-url] [![Coverage Status][coveralls-image]][coveralls-url]
> Configuration preset loader for `conventional-changelog`.
## Usage
```sh
$ npm install --save conventional-changelog-preset-loader
```
```js
var conventionalChangelogPresetLoader = require('conventional-changelog-preset-loader');
configuration = conventionalChangelogPresetLoader(`angular`);
```
The string that is passed to the preset loader is manipulated by prepending `conventional-changelog` to the name.
For example:
* `angular` => `conventional-changelog-angular`
* `angular/preset/path` => `conventional-changelog-angular/preset/path`
* `@scope/angular` => `@scope/conventional-changelog-angular`
* `@scope/angular/preset/path` => `@scope/conventional-changelog-angular/preset/path`
Will return whatever is exported by the preset package. That may be a configuration object, a function, or a promise.
## License
MIT © [Steve Mao](https://github.com/stevemao)
[npm-image]: https://badge.fury.io/js/conventional-changelog-preset-loader.svg
[npm-url]: https://npmjs.org/package/conventional-changelog-preset-loader
[travis-image]: https://travis-ci.org/conventional-changelog/conventional-changelog-preset-loader.svg?branch=master
[travis-url]: https://travis-ci.org/conventional-changelog/conventional-changelog-preset-loader
[appveyor-image]: https://ci.appveyor.com/api/projects/status/baoumm34w8c5o0hv/branch/master?svg=true
[appveyor-url]: https://ci.appveyor.com/project/stevemao/conventional-changelog-preset-loader/branch/master
[daviddm-image]: https://david-dm.org/conventional-changelog/conventional-changelog-preset-loader.svg?theme=shields.io
[daviddm-url]: https://david-dm.org/conventional-changelog/conventional-changelog-preset-loader
[coveralls-image]: https://coveralls.io/repos/conventional-changelog/conventional-changelog-preset-loader/badge.svg
[coveralls-url]: https://coveralls.io/r/conventional-changelog/conventional-changelog-preset-loader

View File

@@ -0,0 +1,18 @@
'use strict'
module.exports = presetLoader(require)
module.exports.presetLoader = presetLoader
function presetLoader (requireMethod) {
return path => {
let scope = ``
let name = path.toLowerCase()
if (name[0] === `@`) {
const parts = name.split(`/`)
scope = parts.shift() + `/`
name = parts.join(`/`)
}
return requireMethod(`${scope}conventional-changelog-${name}`)
}
}

View File

@@ -0,0 +1,31 @@
{
"name": "conventional-changelog-preset-loader",
"version": "1.1.8",
"description": "Configuration preset loader for `conventional-changelog`.",
"repository": {
"type": "git",
"url": "https://github.com/conventional-changelog/conventional-changelog.git"
},
"keywords": [
"conventional-changelog",
"preset",
"loader"
],
"license": "MIT",
"files": [
"index.js"
],
"bugs": {
"url": "https://github.com/conventional-changelog/conventional-changelog/issues"
},
"homepage": "https://github.com/conventional-changelog/conventional-changelog/tree/master/packages/conventional-changelog-preset-loader#readme",
"devDependencies": {
"sinon": "^4.2.2",
"sinon-chai": "^2.14.0"
},
"scripts": {
"lint": "eslint --fix .",
"test": "mocha --timeout 30000 && npm run-script lint",
"test-windows": "mocha --timeout 30000"
}
}