Project files
This commit is contained in:
21
receipeServer/frontend_old/node_modules/loader-runner/LICENSE
generated
vendored
Normal file
21
receipeServer/frontend_old/node_modules/loader-runner/LICENSE
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
The MIT License
|
||||
|
||||
Copyright (c) Tobias Koppers @sokra
|
||||
|
||||
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.
|
||||
53
receipeServer/frontend_old/node_modules/loader-runner/README.md
generated
vendored
Normal file
53
receipeServer/frontend_old/node_modules/loader-runner/README.md
generated
vendored
Normal file
@@ -0,0 +1,53 @@
|
||||
# loader-runner
|
||||
|
||||
``` js
|
||||
import { runLoaders } from "loader-runner";
|
||||
|
||||
runLoaders({
|
||||
resource: "/abs/path/to/file.txt?query",
|
||||
// String: Absolute path to the resource (optionally including query string)
|
||||
|
||||
loaders: ["/abs/path/to/loader.js?query"],
|
||||
// String[]: Absolute paths to the loaders (optionally including query string)
|
||||
// {loader, options}[]: Absolute paths to the loaders with options object
|
||||
|
||||
context: { minimize: true },
|
||||
// Additional loader context which is used as base context
|
||||
|
||||
processResource: (loaderContext, resourcePath, callback) => { ... },
|
||||
// Optional: A function to process the resource
|
||||
// Must have signature function(context, path, function(err, buffer))
|
||||
// By default readResource is used and the resource is added a fileDependency
|
||||
|
||||
readResource: fs.readFile.bind(fs)
|
||||
// Optional: A function to read the resource
|
||||
// Only used when 'processResource' is not provided
|
||||
// Must have signature function(path, function(err, buffer))
|
||||
// By default fs.readFile is used
|
||||
}, function(err, result) {
|
||||
// err: Error?
|
||||
|
||||
// result.result: Buffer | String
|
||||
// The result
|
||||
// only available when no error occured
|
||||
|
||||
// result.resourceBuffer: Buffer
|
||||
// The raw resource as Buffer (useful for SourceMaps)
|
||||
// only available when no error occured
|
||||
|
||||
// result.cacheable: Bool
|
||||
// Is the result cacheable or do it require reexecution?
|
||||
|
||||
// result.fileDependencies: String[]
|
||||
// An array of paths (existing files) on which the result depends on
|
||||
|
||||
// result.missingDependencies: String[]
|
||||
// An array of paths (not existing files) on which the result depends on
|
||||
|
||||
// result.contextDependencies: String[]
|
||||
// An array of paths (directories) on which the result depends on
|
||||
})
|
||||
```
|
||||
|
||||
More documentation following...
|
||||
|
||||
45
receipeServer/frontend_old/node_modules/loader-runner/package.json
generated
vendored
Normal file
45
receipeServer/frontend_old/node_modules/loader-runner/package.json
generated
vendored
Normal file
@@ -0,0 +1,45 @@
|
||||
{
|
||||
"name": "loader-runner",
|
||||
"version": "4.2.0",
|
||||
"description": "Runs (webpack) loaders",
|
||||
"main": "lib/LoaderRunner.js",
|
||||
"scripts": {
|
||||
"lint": "eslint lib test",
|
||||
"pretest": "npm run lint",
|
||||
"test": "mocha --reporter spec",
|
||||
"precover": "npm run lint",
|
||||
"cover": "istanbul cover node_modules/mocha/bin/_mocha"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/webpack/loader-runner.git"
|
||||
},
|
||||
"keywords": [
|
||||
"webpack",
|
||||
"loader"
|
||||
],
|
||||
"author": "Tobias Koppers @sokra",
|
||||
"license": "MIT",
|
||||
"bugs": {
|
||||
"url": "https://github.com/webpack/loader-runner/issues"
|
||||
},
|
||||
"homepage": "https://github.com/webpack/loader-runner#readme",
|
||||
"engines": {
|
||||
"node": ">=6.11.5"
|
||||
},
|
||||
"files": [
|
||||
"lib/",
|
||||
"bin/",
|
||||
"hot/",
|
||||
"web_modules/",
|
||||
"schemas/"
|
||||
],
|
||||
"devDependencies": {
|
||||
"eslint": "^3.12.2",
|
||||
"eslint-plugin-node": "^3.0.5",
|
||||
"eslint-plugin-nodeca": "^1.0.3",
|
||||
"istanbul": "^0.4.1",
|
||||
"mocha": "^3.2.0",
|
||||
"should": "^8.0.2"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user