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

5
node_modules/dotgitignore/.travis.yml generated vendored Normal file
View File

@@ -0,0 +1,5 @@
language: node_js
node_js:
- "6"
- "8"
- "stable"

42
node_modules/dotgitignore/CHANGELOG.md generated vendored Normal file
View File

@@ -0,0 +1,42 @@
# Change Log
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
<a name="1.0.3"></a>
## [1.0.3](https://github.com/bcoe/dotgitignore/compare/v1.0.2...v1.0.3) (2018-01-03)
### Bug Fixes
* minimatch dependency was missing ([4e60ac0](https://github.com/bcoe/dotgitignore/commit/4e60ac0))
<a name="1.0.2"></a>
## [1.0.2](https://github.com/bcoe/dotgitignore/compare/v1.0.1...v1.0.2) (2018-01-03)
### Bug Fixes
* support Node 4 ([23124c5](https://github.com/bcoe/dotgitignore/commit/23124c5))
<a name="1.0.1"></a>
## [1.0.1](https://github.com/bcoe/dotgitignore/compare/v1.0.0...v1.0.1) (2018-01-02)
### Bug Fixes
* actually return the instance ([b829078](https://github.com/bcoe/dotgitignore/commit/b829078))
* don't cache ([2367bed](https://github.com/bcoe/dotgitignore/commit/2367bed))
<a name="1.0.0"></a>
# 1.0.0 (2018-01-02)
### Features
* initial implementation of library ([65246a1](https://github.com/bcoe/dotgitignore/commit/65246a1))

14
node_modules/dotgitignore/LICENSE.txt generated vendored Normal file
View File

@@ -0,0 +1,14 @@
Copyright (c) 2018, Contributors
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.

29
node_modules/dotgitignore/README.md generated vendored Normal file
View File

@@ -0,0 +1,29 @@
# dotgitignore
[![Build Status](https://travis-ci.org/bcoe/dotgitignore.svg)](https://travis-ci.org/bcoe/dotgitignore)
find the closest .gitignore file, parse it, and apply ignore rules.
## Usage
_Given the following `.gitignore`:_
```
.DS_Store
node_modules
coverage
.nyc_output
```
```js
const dotgit = require('dotgitignore')()
dotgit.ignore('.DS_Store') // returns 'true'.
dotgit.ignore('README.md') // returns 'false'.
```
## API
* `require('dotgitignore')([opts])`: return instance of `dotgitignore`, optionally
configured with `opts`:
* `opts.cwd`: current working directory (defaults to process.cwd()).
* `dotgit.ignore(name)`: returns `true` if pattern is ignored, `false` otherwise.

21
node_modules/dotgitignore/index.js generated vendored Normal file
View File

@@ -0,0 +1,21 @@
'use strict'
const findUp = require('find-up')
const fs = require('fs')
const ignore = require('./lib/dotignore')
const gitignoreFilename = '.gitignore'
class DotGitignore {
constructor (opts) {
const gitignorePath = findUp.sync(gitignoreFilename, opts)
const content = gitignorePath ? fs.readFileSync(gitignorePath, 'utf8') : ''
this.matcher = ignore.createMatcher(content)
}
ignore (name) {
return this.matcher.shouldIgnore(name)
}
}
module.exports = function (opts) {
return new DotGitignore(opts)
}

52
node_modules/dotgitignore/lib/dotignore.js generated vendored Normal file
View File

@@ -0,0 +1,52 @@
// MIT License
// Bradley Meck
// https://github.com/bmeck/dotignore
var minimatch = require('minimatch')
var path = require('path')
function IgnoreMatcher (str) {
var negated = this.negated = []
var rooted = this.rooted = []
this.matchers = (str.split(/\r?\n|\r/)).map(function (line) {
var negatedLine = line[0] === '!'
var commentLine = line[0] === '#'
var rootedLine = line[0] === '/'
if (negatedLine || commentLine || rootedLine) {
line = line.substring(1)
}
var emptyLine = line === ''
if (emptyLine) {
return null
}
var isShellGlob = line.indexOf('/') >= 0
negated[negated.length] = negatedLine
rooted[rooted.length] = rootedLine || isShellGlob
return minimatch.makeRe(line, {
comment: commentLine,
empty: emptyLine,
matchBase: !rootedLine,
negated: true // negated
})
}).filter(Boolean)
return this
}
IgnoreMatcher.prototype.delimiter = path.sep
IgnoreMatcher.prototype.shouldIgnore = function (filename) {
var isMatching = false
for (var i = 0; i < this.matchers.length; i++) {
var matcher = this.matchers[i]
if (this.rooted[i]) {
if (matcher.test(filename)) {
isMatching = !this.negated[i]
}
} else if (filename.split(this.delimiter).some(function (part) {
return matcher.test(part)
})) {
isMatching = !this.negated[i]
}
}
return isMatching
}
exports.createMatcher = function (ignoreFileStr) {
return new IgnoreMatcher(ignoreFileStr)
}

38
node_modules/dotgitignore/package.json generated vendored Normal file
View File

@@ -0,0 +1,38 @@
{
"name": "dotgitignore",
"version": "1.0.3",
"description": "find the closest .gitignore file, parse it, and apply ignore rules",
"main": "index.js",
"scripts": {
"test": "nyc mocha test.js",
"posttest": "standard",
"release": "standard-version"
},
"repository": {
"type": "git",
"url": "git+https://github.com/bcoe/dotgitignore.git"
},
"keywords": [
"gitignore",
"git",
"ignore",
".gitignore"
],
"author": "Ben Coe <ben@npmjs.com>",
"license": "ISC",
"bugs": {
"url": "https://github.com/bcoe/dotgitignore/issues"
},
"homepage": "https://github.com/bcoe/dotgitignore#readme",
"dependencies": {
"find-up": "^2.1.0",
"minimatch": "^3.0.4"
},
"devDependencies": {
"chai": "^4.1.2",
"mocha": "^4.1.0",
"nyc": "^11.4.1",
"standard": "^10.0.3",
"standard-version": "^4.3.0-candidate.1"
}
}

17
node_modules/dotgitignore/test.js generated vendored Normal file
View File

@@ -0,0 +1,17 @@
/* global describe,it */
const dotgit = require('./')()
require('chai').should()
describe('dotgitignore', () => {
describe('ignore', () => {
it('should return true for ignored files', () => {
dotgit.ignore('.DS_Store')
})
it('should return false for files that are not ignored', () => {
dotgit.ignore('README.md')
})
})
})