Initial import with skill sheet working

This commit is contained in:
2024-12-04 00:11:23 +01:00
commit 9050c80ab4
4488 changed files with 671048 additions and 0 deletions

21
node_modules/glob-watcher/LICENSE generated vendored Normal file
View File

@@ -0,0 +1,21 @@
The MIT License (MIT)
Copyright (c) 2017-2018, 2020, 2022-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.

136
node_modules/glob-watcher/README.md generated vendored Normal file
View File

@@ -0,0 +1,136 @@
<p align="center">
<a href="https://gulpjs.com">
<img height="257" width="114" src="https://raw.githubusercontent.com/gulpjs/artwork/master/gulp-2x.png">
</a>
</p>
# glob-watcher
[![NPM version][npm-image]][npm-url] [![Downloads][downloads-image]][npm-url] [![Build Status][ci-image]][ci-url] [![Coveralls Status][coveralls-image]][coveralls-url]
Watch globs and execute a function upon change, with intelligent defaults for debouncing and queueing.
## Usage
```js
var watch = require('glob-watcher');
watch(['./*.js', '!./something.js'], function (done) {
// This function will be called each time a globbed file is changed
// but is debounced with a 200ms delay (default) and queues subsequent calls
// Make sure to signal async completion with the callback
// or by returning a stream, promise, observable or child process
done();
// if you need access to the `path` or `stat` object, listen
// for the `change` event (see below)
// if you need to listen to specific events, use the returned
// watcher instance (see below)
});
// Raw chokidar instance
var watcher = watch(['./*.js', '!./something.js']);
// Listen for the 'change' event to get `path`/`stat`
// No async completion available because this is the raw chokidar instance
watcher.on('change', function (path, stat) {
// `path` is the path of the changed file
// `stat` is an `fs.Stat` object (not always available)
});
// Listen for other events
// No async completion available because this is the raw chokidar instance
watcher.on('add', function (path, stat) {
// `path` is the path of the changed file
// `stat` is an `fs.Stat` object (not always available)
});
```
## API
### `watch(globs[, options][, fn])`
Takes a path string, an array of path strings, a [glob][micromatch] string or an array of [glob][micromatch] strings as `globs` to watch on the filesystem. Also optionally takes `options` to configure the watcher and a `fn` to execute when a file changes.
**Note: As of 5.0.0, globs must use `/` as the separator character because `\\` is reserved for escape sequences (as per the Bash 4.3 & Micromatch specs). This means you can't use `path.join()` or `**dirname`in Windows environments. If you need to use`path.join()`, you can use [normalize-path][normalize-path] against your paths afterwards. If you need to use `**dirname`, you can set it as the `cwd` option that gets passed directly to [chokidar][chokidar]. The [micromatch docs][micromatch-backslashes] contain more information about backslashes.**
Returns an instance of [chokidar][chokidar].
#### `fn([callback])`
If the `fn` is passed, it will be called when the watcher emits a `change`, `add` or `unlink` event. It is automatically debounced with a default delay of 200 milliseconds and subsequent calls will be queued and called upon completion. These defaults can be changed using the `options`.
The `fn` is passed a single argument, `callback`, which is a function that must be called when work in the `fn` is complete. Instead of calling the `callback` function, [async completion][async-completion] can be signalled by:
- Returning a `Stream` or `EventEmitter`
- Returning a `Child Process`
- Returning a `Promise`
- Returning an `Observable`
Once async completion is signalled, if another run is queued, it will be executed.
#### `options`
##### `options.ignoreInitial`
If set to `false` the `fn` is called during [chokidar][chokidar] instantiation as it discovers the file paths. Useful if it is desirable to trigger the `fn` during startup.
**Passed through to [chokidar][chokidar], but defaulted to `true` instead of `false`.**
Type: `Boolean`
Default: `true`
##### `options.delay`
The delay to wait before triggering the `fn`. Useful for waiting on many changes before doing the work on changed files, e.g. find-and-replace on many files.
Type: `Number`
Default: `200` (milliseconds)
##### `options.queue`
Whether or not a file change should queue the `fn` execution if the `fn` is already running. Useful for a long running `fn`.
Type: `Boolean`
Default: `true`
##### `options.events`
An event name or array of event names to listen for. Useful if you only need to watch specific events.
Type: `String | Array<String>`
Default: `[ 'add', 'change', 'unlink' ]`
##### other
Options are passed directly to [chokidar][chokidar].
## License
MIT
<!-- prettier-ignore-start -->
[downloads-image]: https://img.shields.io/npm/dm/glob-watcher.svg?style=flat-square
[npm-url]: https://npmjs.com/package/glob-watcher
[npm-image]: https://img.shields.io/npm/v/glob-watcher.svg?style=flat-square
[ci-url]: https://github.com/gulpjs/glob-watcher/actions?query=workflow:dev
[ci-image]: https://img.shields.io/github/actions/workflow/status/gulpjs/glob-watcher/dev.yml?branch=master&style=flat-square
[coveralls-url]: https://coveralls.io/r/gulpjs/glob-watcher
[coveralls-image]: https://img.shields.io/coveralls/gulpjs/glob-watcher/master.svg?style=flat-square
<!-- prettier-ignore-end -->
<!-- prettier-ignore-start -->
[micromatch]: https://github.com/micromatch/micromatch
[normalize-path]: https://www.npmjs.com/package/normalize-path
[micromatch-backslashes]: https://github.com/micromatch/micromatch#backslashes
[async-completion]: https://github.com/gulpjs/async-done#completion-and-error-resolution
[chokidar]: https://github.com/paulmillr/chokidar
<!-- prettier-ignore-end -->

60
node_modules/glob-watcher/index.js generated vendored Normal file
View File

@@ -0,0 +1,60 @@
'use strict';
var chokidar = require('chokidar');
var asyncDone = require('async-done');
var normalizeArgs = require('./lib/normalize-args');
var debounce = require('./lib/debounce');
function watch(glob, options, cb) {
return normalizeArgs(glob, options, cb, watchProc);
}
function watchProc(globs, options, cb) {
var watcher = chokidar.watch(globs, options);
registerWatchEvent(watcher, options, cb);
return watcher;
}
function registerWatchEvent(watcher, opts, cb) {
if (typeof cb !== 'function') {
return;
}
var queued = false;
var running = false;
function runComplete(err) {
running = false;
if (err && watcher.listenerCount('error') > 0) {
watcher.emit('error', err);
}
// If we have a run queued, start onChange again
if (queued) {
queued = false;
onChange();
}
}
function onChange() {
if (running) {
if (opts.queue) {
queued = true;
}
return;
}
running = true;
asyncDone(cb, runComplete);
}
var debounced = debounce(onChange, opts.delay);
opts.events.forEach(watchEvent);
function watchEvent(eventName) {
watcher.on(eventName, debounced);
}
}
module.exports = watch;

26
node_modules/glob-watcher/lib/debounce.js generated vendored Normal file
View File

@@ -0,0 +1,26 @@
'use strict';
function debounce(fn, delay) {
var timeout;
var args;
var self;
return function () {
self = this;
args = arguments;
clear();
timeout = setTimeout(run, delay);
};
function run() {
clear();
fn.apply(self, args);
}
function clear() {
clearTimeout(timeout);
timeout = null;
}
}
module.exports = debounce;

33
node_modules/glob-watcher/lib/normalize-args.js generated vendored Normal file
View File

@@ -0,0 +1,33 @@
'use strict';
var defaultOpts = {
delay: 200,
events: ['add', 'change', 'unlink'],
ignored: [],
ignoreInitial: true,
queue: true,
};
function normalizeArgs(glob, options, cb, next) {
if (typeof options === 'function') {
cb = options;
options = {};
}
var opts = Object.assign({}, defaultOpts, options);
if (!Array.isArray(opts.events)) {
opts.events = [opts.events];
}
if (Array.isArray(glob)) {
// We slice so we don't mutate the passed globs array
glob = glob.slice();
} else {
glob = [glob];
}
return next(glob, opts, cb);
}
module.exports = normalizeArgs;

54
node_modules/glob-watcher/package.json generated vendored Normal file
View File

@@ -0,0 +1,54 @@
{
"name": "glob-watcher",
"version": "6.0.0",
"description": "Watch globs and execute a function upon change, with intelligent defaults for debouncing and queueing.",
"author": "Gulp Team <team@gulpjs.com> (https://gulpjs.com/)",
"contributors": [],
"repository": "gulpjs/glob-watcher",
"license": "MIT",
"engines": {
"node": ">= 10.13.0"
},
"main": "index.js",
"files": [
"index.js",
"lib/"
],
"scripts": {
"lint": "eslint .",
"pretest": "npm run lint",
"test": "nyc mocha test test/lib --async-only"
},
"dependencies": {
"async-done": "^2.0.0",
"chokidar": "^3.5.3"
},
"devDependencies": {
"eslint": "^7.32.0",
"eslint-config-gulp": "^5.0.1",
"expect": "^27.5.1",
"mocha": "^8.4.0",
"normalize-path": "^3.0.0",
"nyc": "^15.1.0",
"rimraf": "^3.0.2",
"sinon": "^14.0.0",
"through2": "^4.0.2"
},
"nyc": {
"reporter": [
"lcov",
"text-summary"
]
},
"prettier": {
"singleQuote": true
},
"keywords": [
"watch",
"glob",
"async",
"queue",
"debounce",
"callback"
]
}