forked from public/fvtt-cthulhu-eternal
Initial import with skill sheet working
This commit is contained in:
21
node_modules/@gulpjs/to-absolute-glob/LICENSE
generated
vendored
Normal file
21
node_modules/@gulpjs/to-absolute-glob/LICENSE
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2015-2022 Jon Schlinkert <jon.schlinkert@sellside.com>, 2023 Blaine Bublitz <blaine.bublitz@gmail.com> and Eric Schoffstall <yo@contra.io>
|
||||
|
||||
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.
|
||||
58
node_modules/@gulpjs/to-absolute-glob/README.md
generated
vendored
Normal file
58
node_modules/@gulpjs/to-absolute-glob/README.md
generated
vendored
Normal file
@@ -0,0 +1,58 @@
|
||||
<p align="center">
|
||||
<a href="http://gulpjs.com">
|
||||
<img height="257" width="114" src="https://raw.githubusercontent.com/gulpjs/artwork/master/gulp-2x.png">
|
||||
</a>
|
||||
</p>
|
||||
|
||||
# @gulpjs/to-absolute-glob
|
||||
|
||||
[![NPM version][npm-image]][npm-url] [![Downloads][downloads-image]][npm-url] [![Build Status][ci-image]][ci-url] [![Coveralls Status][coveralls-image]][coveralls-url]
|
||||
|
||||
Make a glob pattern absolute, ensuring that negative globs and patterns with trailing slashes are correctly handled.
|
||||
|
||||
## Usage
|
||||
|
||||
```js
|
||||
var toAbsoluteGlob = require('@gulpjs/to-absolute-glob');
|
||||
|
||||
// All these assume your cwd is `/dev/foo/`
|
||||
|
||||
toAbsoluteGlob('a/*.js') === '/dev/foo/a/*.js';
|
||||
|
||||
// Makes a path absolute
|
||||
toAbsoluteGlob('a') === '/dev/foo/a';
|
||||
|
||||
// Retains trailing slashes
|
||||
toAbsoluteGlob('a/*/') === '/dev/foo/a/*/';
|
||||
|
||||
// Makes a negative glob absolute
|
||||
toAbsoluteGlob('!a/*.js') === '!/dev/foo/a/*.js';
|
||||
|
||||
// Accepts a cwd
|
||||
toAbsoluteGlob('a/*.js', { cwd: 'foo' }) === '/dev/foo/foo/a/*.js';
|
||||
|
||||
// Accepts a root path
|
||||
toAbsoluteGlob('/a/*.js', { root: 'baz' }) === '/dev/foo/baz/a/*.js';
|
||||
```
|
||||
|
||||
## API
|
||||
|
||||
### `toAbsoluteGlob(glob, [options])`
|
||||
|
||||
Takes a `glob` string and an optional `options` object and produces an absolute glob. If the glob is relative, the `root` or `cwd` option (or `process.cwd()` if neither specified) will be used as the base of the glob.
|
||||
|
||||
## License
|
||||
|
||||
MIT
|
||||
|
||||
<!-- prettier-ignore-start -->
|
||||
[downloads-image]: https://img.shields.io/npm/dm/@gulpjs/to-absolute-glob.svg?style=flat-square
|
||||
[npm-url]: https://www.npmjs.com/package/@gulpjs/to-absolute-glob
|
||||
[npm-image]: https://img.shields.io/npm/v/@gulpjs/to-absolute-glob.svg?style=flat-square
|
||||
|
||||
[ci-url]: https://github.com/gulpjs/to-absolute-glob/actions?query=workflow:dev
|
||||
[ci-image]: https://img.shields.io/github/actions/workflow/status/gulpjs/to-absolute-glob/dev.yml?branch=master&style=flat-square
|
||||
|
||||
[coveralls-url]: https://coveralls.io/r/gulpjs/to-absolute-glob
|
||||
[coveralls-image]: https://img.shields.io/coveralls/gulpjs/to-absolute-glob/master.svg?style=flat-square
|
||||
<!-- prettier-ignore-end -->
|
||||
90
node_modules/@gulpjs/to-absolute-glob/index.js
generated
vendored
Normal file
90
node_modules/@gulpjs/to-absolute-glob/index.js
generated
vendored
Normal file
@@ -0,0 +1,90 @@
|
||||
'use strict';
|
||||
|
||||
var path = require('path');
|
||||
var isNegated = require('is-negated-glob');
|
||||
|
||||
module.exports = function (glob, options) {
|
||||
// default options
|
||||
var opts = options || {};
|
||||
|
||||
// ensure cwd is absolute
|
||||
var cwd = unescape(opts.cwd ? opts.cwd : process.cwd());
|
||||
cwd = path.resolve(cwd);
|
||||
cwd = unixify(cwd);
|
||||
cwd = escape(cwd);
|
||||
|
||||
var rootDir = opts.root;
|
||||
// if `options.root` is defined, ensure it's absolute
|
||||
if (rootDir) {
|
||||
rootDir = unescape(rootDir);
|
||||
rootDir = unixify(rootDir);
|
||||
if (process.platform === 'win32' || !path.isAbsolute(rootDir)) {
|
||||
rootDir = unixify(path.resolve(rootDir));
|
||||
}
|
||||
rootDir = escape(rootDir);
|
||||
}
|
||||
|
||||
// store last character before glob is modified
|
||||
var suffix = glob.slice(-1);
|
||||
|
||||
// check to see if glob is negated (and not a leading negated-extglob)
|
||||
var ing = isNegated(glob);
|
||||
glob = ing.pattern;
|
||||
|
||||
// trim starting ./ from glob patterns
|
||||
if (glob.slice(0, 2) === './') {
|
||||
glob = glob.slice(2);
|
||||
}
|
||||
|
||||
// when the glob pattern is only a . use an empty string
|
||||
if (glob.length === 1 && glob === '.') {
|
||||
glob = '';
|
||||
}
|
||||
|
||||
// make glob absolute
|
||||
if (rootDir && glob.charAt(0) === '/') {
|
||||
glob = join(rootDir, glob);
|
||||
} else if (!path.isAbsolute(glob) || glob.slice(0, 1) === '\\') {
|
||||
glob = join(cwd, glob);
|
||||
}
|
||||
|
||||
// if glob had a trailing `/`, re-add it now in case it was removed
|
||||
if (suffix === '/' && glob.slice(-1) !== '/') {
|
||||
glob += '/';
|
||||
}
|
||||
|
||||
// re-add leading `!` if it was removed
|
||||
return ing.negated ? '!' + glob : glob;
|
||||
};
|
||||
|
||||
function escape(path) {
|
||||
return path.replace(/([({[\]})*?!])/g, '\\$1');
|
||||
}
|
||||
|
||||
function unescape(path) {
|
||||
return path.replace(/\\([({[\]})*?!])/g, '$1');
|
||||
}
|
||||
|
||||
// Before calling unixify, we remove the escapes and then
|
||||
// we add them back afterwards to avoid double-escaping
|
||||
function unixify(filepath) {
|
||||
return filepath.replace(/\\/g, '/');
|
||||
}
|
||||
|
||||
function join(dir, glob) {
|
||||
if (dir.charAt(dir.length - 1) === '/') {
|
||||
dir = dir.slice(0, -1);
|
||||
}
|
||||
if (glob.charAt(0) === '/') {
|
||||
glob = glob.slice(1);
|
||||
}
|
||||
if (!glob) return dir;
|
||||
|
||||
// Resolve `../` segements in the glob
|
||||
while (glob.slice(0, 3) === '../') {
|
||||
dir = dir.slice(0, dir.lastIndexOf('/'));
|
||||
glob = glob.slice(3);
|
||||
}
|
||||
|
||||
return dir + '/' + glob;
|
||||
}
|
||||
59
node_modules/@gulpjs/to-absolute-glob/package.json
generated
vendored
Normal file
59
node_modules/@gulpjs/to-absolute-glob/package.json
generated
vendored
Normal file
@@ -0,0 +1,59 @@
|
||||
{
|
||||
"name": "@gulpjs/to-absolute-glob",
|
||||
"version": "4.0.0",
|
||||
"description": "Make a glob pattern absolute, ensuring that negative globs and patterns with trailing slashes are correctly handled.",
|
||||
"author": "Gulp Team <team@gulpjs.com> (https://gulpjs.com/)",
|
||||
"contributors": [
|
||||
"Blaine Bublitz <blaine.bublitz@gmail.com>"
|
||||
],
|
||||
"repository": "gulpjs/to-absolute-glob",
|
||||
"license": "MIT",
|
||||
"engines": {
|
||||
"node": ">=10.13.0"
|
||||
},
|
||||
"main": "index.js",
|
||||
"files": [
|
||||
"LICENSE",
|
||||
"index.js"
|
||||
],
|
||||
"scripts": {
|
||||
"lint": "eslint .",
|
||||
"pretest": "npm run lint",
|
||||
"test": "nyc mocha"
|
||||
},
|
||||
"dependencies": {
|
||||
"is-negated-glob": "^1.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"eslint": "^7.32.0",
|
||||
"eslint-config-gulp": "^5.0.1",
|
||||
"eslint-plugin-node": "^11.1.0",
|
||||
"expect": "^27.4.2",
|
||||
"mocha": "^8.4.0",
|
||||
"nyc": "^15.1.0"
|
||||
},
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"nyc": {
|
||||
"reporter": [
|
||||
"lcov",
|
||||
"text-summary"
|
||||
]
|
||||
},
|
||||
"prettier": {
|
||||
"singleQuote": true
|
||||
},
|
||||
"keywords": [
|
||||
"absolute",
|
||||
"file",
|
||||
"filepath",
|
||||
"glob",
|
||||
"negate",
|
||||
"negative",
|
||||
"path",
|
||||
"pattern",
|
||||
"resolve",
|
||||
"to"
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user