mirror of
https://github.com/snachodog/just-the-docs.git
synced 2025-09-13 05:13:33 -06:00
Initial commit
This commit is contained in:
14
node_modules/globjoin/CHANGELOG.md
generated
vendored
Normal file
14
node_modules/globjoin/CHANGELOG.md
generated
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
## globjoin changelog
|
||||
|
||||
### 2016/02/16 - 0.1.4
|
||||
|
||||
* NPM: Remove accidental dependency.
|
||||
|
||||
### 2016/02/15 - 0.1.3
|
||||
|
||||
* Bug Fix: Should use Array.prototype.slice().
|
||||
* Misc: Remove unused test fixtures.
|
||||
|
||||
### 2015/12/24 - 0.1.2
|
||||
|
||||
First Release
|
22
node_modules/globjoin/LICENSE
generated
vendored
Normal file
22
node_modules/globjoin/LICENSE
generated
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2016 amobiz
|
||||
|
||||
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.
|
||||
|
54
node_modules/globjoin/README.md
generated
vendored
Normal file
54
node_modules/globjoin/README.md
generated
vendored
Normal file
@@ -0,0 +1,54 @@
|
||||
# globjoin
|
||||
|
||||
Join paths and globs.
|
||||
|
||||
[](https://github.com/amobiz/globjoin/blob/master/LICENSE) [](http://badge.fury.io/js/globjoin) [](https://david-dm.org/amobiz/globjoin)
|
||||
|
||||
[](https://nodei.co/npm/globjoin.png?downloads=true&downloadRank=true&stars=true) [](https://nodei.co/npm/globjoin/)
|
||||
|
||||
## Install
|
||||
``` bash
|
||||
$ npm install globjoin
|
||||
```
|
||||
|
||||
## API
|
||||
|
||||
### `globjoin(globs...)`
|
||||
Join paths and globs.
|
||||
|
||||
Like Node's [path.join()](https://nodejs.org/api/path.html#path_path_join_path1_path2) that join all arguments together and normalize the resulting path, `globjoin` takes arbitrary number of paths and/or arrays of paths, join them together and take care of negative globs.
|
||||
#### Context
|
||||
Don't care.
|
||||
#### Parameters
|
||||
##### `paths/globs`
|
||||
The paths/globs or arrays of paths/globs to join.
|
||||
#### Returns
|
||||
The result glob, or array of globs if any of paths/globs are array.
|
||||
#### Example
|
||||
``` javascript
|
||||
var join = require('globjoin');
|
||||
var globs1 = join(__dirname, ['**/*.js', '!**/test*.js']);
|
||||
var globs2 = join('test', 'fixture', 'app', ['views', '!services'], ['**/*', '!*.{js,json,coffee,ts}']);
|
||||
```
|
||||
|
||||
Check out test for more examples.
|
||||
|
||||
## Issues
|
||||
|
||||
[Issues](https://github.com/amobiz/globjoin/issues)
|
||||
|
||||
## Test
|
||||
|
||||
``` bash
|
||||
$ npm test
|
||||
```
|
||||
|
||||
## Changelog
|
||||
|
||||
[Changelog](./CHANGELOG.md)
|
||||
|
||||
## License
|
||||
MIT
|
||||
|
||||
## Author
|
||||
[Amobiz](https://github.com/amobiz)
|
43
node_modules/globjoin/index.js
generated
vendored
Normal file
43
node_modules/globjoin/index.js
generated
vendored
Normal file
@@ -0,0 +1,43 @@
|
||||
'use strict';
|
||||
|
||||
var Path = require('path');
|
||||
var slice = Array.prototype.slice;
|
||||
|
||||
function join(/* globs */) {
|
||||
var args;
|
||||
|
||||
args = slice.call(arguments, 0);
|
||||
return args.reduce(function (result, globs) {
|
||||
return _apply(result, function (path) {
|
||||
return _apply(globs, function (glob) {
|
||||
return _join(path, glob);
|
||||
});
|
||||
});
|
||||
}, '');
|
||||
}
|
||||
|
||||
function _apply(values, fn) {
|
||||
if (Array.isArray(values)) {
|
||||
return values.reduce(function (result, value) {
|
||||
return result.concat(fn(value));
|
||||
}, []);
|
||||
}
|
||||
return fn(values);
|
||||
}
|
||||
|
||||
function _join(path, glob) {
|
||||
var negative, positive;
|
||||
|
||||
if (glob[0] === '!') {
|
||||
positive = glob.substr(1);
|
||||
if (path[0] === '!') {
|
||||
negative = '';
|
||||
} else {
|
||||
negative = '!';
|
||||
}
|
||||
return negative + Path.join(path, positive);
|
||||
}
|
||||
return Path.join(path, glob);
|
||||
}
|
||||
|
||||
module.exports = join;
|
90
node_modules/globjoin/package.json
generated
vendored
Normal file
90
node_modules/globjoin/package.json
generated
vendored
Normal file
@@ -0,0 +1,90 @@
|
||||
{
|
||||
"_args": [
|
||||
[
|
||||
"globjoin@^0.1.4",
|
||||
"/Users/pmarsceill/_projects/just-the-docs/node_modules/stylelint"
|
||||
]
|
||||
],
|
||||
"_from": "globjoin@>=0.1.4 <0.2.0",
|
||||
"_id": "globjoin@0.1.4",
|
||||
"_inCache": true,
|
||||
"_installable": true,
|
||||
"_location": "/globjoin",
|
||||
"_nodeVersion": "5.6.0",
|
||||
"_npmOperationalInternal": {
|
||||
"host": "packages-9-west.internal.npmjs.com",
|
||||
"tmp": "tmp/globjoin-0.1.4.tgz_1455591202598_0.010538409929722548"
|
||||
},
|
||||
"_npmUser": {
|
||||
"email": "amobiz.tw+npmjs@gmail.com",
|
||||
"name": "amobiz"
|
||||
},
|
||||
"_npmVersion": "3.6.0",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"name": "globjoin",
|
||||
"raw": "globjoin@^0.1.4",
|
||||
"rawSpec": "^0.1.4",
|
||||
"scope": null,
|
||||
"spec": ">=0.1.4 <0.2.0",
|
||||
"type": "range"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/stylelint"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/globjoin/-/globjoin-0.1.4.tgz",
|
||||
"_shasum": "2f4494ac8919e3767c5cbb691e9f463324285d43",
|
||||
"_shrinkwrap": null,
|
||||
"_spec": "globjoin@^0.1.4",
|
||||
"_where": "/Users/pmarsceill/_projects/just-the-docs/node_modules/stylelint",
|
||||
"author": {
|
||||
"name": "Amobiz"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/amobiz/globjoin/issues"
|
||||
},
|
||||
"dependencies": {},
|
||||
"description": "Join paths and globs.",
|
||||
"devDependencies": {
|
||||
"mocha": "^2.3.4",
|
||||
"mocha-cases": "^0.1.4"
|
||||
},
|
||||
"directories": {},
|
||||
"dist": {
|
||||
"shasum": "2f4494ac8919e3767c5cbb691e9f463324285d43",
|
||||
"tarball": "https://registry.npmjs.org/globjoin/-/globjoin-0.1.4.tgz"
|
||||
},
|
||||
"gitHead": "fe1a822ed6355a43fa723537b7f3e6b1764fe12c",
|
||||
"homepage": "https://github.com/amobiz/globjoin",
|
||||
"keywords": [
|
||||
"array",
|
||||
"glob",
|
||||
"glob join",
|
||||
"globbing",
|
||||
"multiple",
|
||||
"negative glob",
|
||||
"path",
|
||||
"path join",
|
||||
"patterns",
|
||||
"wildcard"
|
||||
],
|
||||
"license": "MIT",
|
||||
"main": "index.js",
|
||||
"maintainers": [
|
||||
{
|
||||
"name": "amobiz",
|
||||
"email": "amobiz.tw+npmjs@gmail.com"
|
||||
}
|
||||
],
|
||||
"name": "globjoin",
|
||||
"optionalDependencies": {},
|
||||
"readme": "ERROR: No README data found!",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/amobiz/globjoin.git"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "mocha"
|
||||
},
|
||||
"version": "0.1.4"
|
||||
}
|
Reference in New Issue
Block a user