initial commit

This commit is contained in:
air66
2019-07-24 18:16:32 +01:00
commit 5efebf4ded
8591 changed files with 899103 additions and 0 deletions

21
node_modules/@gulp-sourcemaps/identity-map/LICENSE generated vendored Normal file
View File

@@ -0,0 +1,21 @@
The MIT License (MIT)
Copyright (c) 2017 Blaine Bublitz <blaine.bublitz@gmail.com>
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.

40
node_modules/@gulp-sourcemaps/identity-map/README.md generated vendored Normal file
View File

@@ -0,0 +1,40 @@
# @gulp-sourcemaps/identity-map
[![NPM version][npm-image]][npm-url] [![Downloads][downloads-image]][npm-url] [![Build Status][travis-image]][travis-url] [![AppVeyor Build Status][appveyor-image]][appveyor-url] [![Coveralls Status][coveralls-image]][coveralls-url]
Gulp plugin for generating an identity sourcemap for a file.
## Example
```js
var identityMap = require('@gulp-sourcemaps/identity-map');
gulp.src(...)
.pipe(sourcemaps.init())
.pipe(identityMap()) // .js and .css files will get a generated sourcemap
.pipe(sourcemaps.write())
.pipe(gulp.dest(...))
```
## API
### `identityMap()`
Returns an `objectMode` Transform stream that processes each file with a `.sourceMap` property and buffered contents. A sourcemap is generated and attached for each `.js` and `.css` file.
## License
MIT
[downloads-image]: http://img.shields.io/npm/dm/@gulp-sourcemaps/identity-map.svg
[npm-url]: https://npmjs.org/package/@gulp-sourcemaps/identity-map
[npm-image]: http://img.shields.io/npm/v/@gulp-sourcemaps/identity-map.svg
[travis-url]: https://travis-ci.org/gulp-sourcemaps/identity-map
[travis-image]: http://img.shields.io/travis/gulp-sourcemaps/identity-map.svg?label=travis-ci
[appveyor-url]: https://ci.appveyor.com/project/phated/identity-map
[appveyor-image]: https://img.shields.io/appveyor/ci/phated/identity-map.svg?label=appveyor
[coveralls-url]: https://coveralls.io/r/gulp-sourcemaps/identity-map
[coveralls-image]: http://img.shields.io/coveralls/gulp-sourcemaps/identity-map.svg

35
node_modules/@gulp-sourcemaps/identity-map/index.js generated vendored Normal file
View File

@@ -0,0 +1,35 @@
'use strict';
var through = require('through2');
var normalizePath = require('normalize-path');
var generate = require('./lib/generate');
function identityMap() {
function transform(file, _, cb) {
if (!file.sourceMap || !file.isBuffer()) {
return cb(null, file);
}
var sourcePath = normalizePath(file.relative);
var contents = file.contents.toString();
switch (file.extname) {
case '.js': {
file.sourceMap = generate.js(sourcePath, contents);
break;
}
case '.css': {
file.sourceMap = generate.css(sourcePath, contents);
break;
}
}
cb(null, file);
}
return through.obj(transform);
}
module.exports = identityMap;

View File

@@ -0,0 +1,65 @@
'use strict';
var css = require('css');
var acorn = require('acorn');
var SourceMapGenerator = require('source-map').SourceMapGenerator;
function generateJs(sourcePath, fileContent) {
var generator = new SourceMapGenerator({ file: sourcePath });
var tokenizer = acorn.tokenizer(fileContent, { allowHashBang: true, locations: true });
while (true) {
var token = tokenizer.getToken();
if (token.type.label === 'eof') {
break;
}
var mapping = {
original: token.loc.start,
generated: token.loc.start,
source: sourcePath,
};
if (token.type.label === 'name') {
mapping.name = token.value;
}
generator.addMapping(mapping);
}
generator.setSourceContent(sourcePath, fileContent);
return generator.toJSON();
}
function generateCss(sourcePath, fileContent) {
var generator = new SourceMapGenerator({ file: sourcePath });
var ast = css.parse(fileContent, { silent: true });
function registerTokens(ast) {
if (ast.position) {
generator.addMapping({
original: ast.position.start,
generated: ast.position.start,
source: sourcePath,
});
}
for (var key in ast) {
if (key === 'position' || !ast[key]) {
continue;
}
if (Object.prototype.toString.call(ast[key]) === '[object Object]') {
registerTokens(ast[key]);
} else if (Array.isArray(ast[key])) {
ast[key].forEach(registerTokens);
}
}
}
registerTokens(ast);
generator.setSourceContent(sourcePath, fileContent);
return generator.toJSON();
}
module.exports = {
js: generateJs,
css: generateCss,
};

View File

@@ -0,0 +1,90 @@
{
"_from": "@gulp-sourcemaps/identity-map@1.X",
"_id": "@gulp-sourcemaps/identity-map@1.0.2",
"_inBundle": false,
"_integrity": "sha512-ciiioYMLdo16ShmfHBXJBOFm3xPC4AuwO4xeRpFeHz7WK9PYsWCmigagG2XyzZpubK4a3qNKoUBDhbzHfa50LQ==",
"_location": "/@gulp-sourcemaps/identity-map",
"_phantomChildren": {},
"_requested": {
"type": "range",
"registry": true,
"raw": "@gulp-sourcemaps/identity-map@1.X",
"name": "@gulp-sourcemaps/identity-map",
"escapedName": "@gulp-sourcemaps%2fidentity-map",
"scope": "@gulp-sourcemaps",
"rawSpec": "1.X",
"saveSpec": null,
"fetchSpec": "1.X"
},
"_requiredBy": [
"/gulp-sourcemaps"
],
"_resolved": "https://registry.npmjs.org/@gulp-sourcemaps/identity-map/-/identity-map-1.0.2.tgz",
"_shasum": "1e6fe5d8027b1f285dc0d31762f566bccd73d5a9",
"_spec": "@gulp-sourcemaps/identity-map@1.X",
"_where": "D:\\Air66 Files\\dev_sites\\www.airurl.dev.cc\\user\\plugins\\air66Theme\\node_modules\\gulp-sourcemaps",
"author": {
"name": "Gulp-sourcemaps Team"
},
"bugs": {
"url": "https://github.com/gulp-sourcemaps/identity-map/issues"
},
"bundleDependencies": false,
"contributors": [
{
"name": "Blaine Bublitz",
"email": "blaine.bublitz@gmail.com"
}
],
"dependencies": {
"acorn": "^5.0.3",
"css": "^2.2.1",
"normalize-path": "^2.1.1",
"source-map": "^0.6.0",
"through2": "^2.0.3"
},
"deprecated": false,
"description": "Gulp plugin for generating an identity sourcemap for a file.",
"devDependencies": {
"eslint": "^1.7.3",
"eslint-config-gulp": "^2.0.0",
"expect": "^1.19.0",
"istanbul": "^0.4.3",
"istanbul-coveralls": "^1.0.3",
"jscs": "^2.3.5",
"jscs-preset-gulp": "^1.0.0",
"mississippi": "^1.3.0",
"mocha": "^2.4.5",
"vinyl": "^2.0.1"
},
"engines": {
"node": ">= 0.10"
},
"files": [
"LICENSE",
"index.js",
"lib"
],
"homepage": "https://github.com/gulp-sourcemaps/identity-map#readme",
"keywords": [
"sourcemap",
"identity",
"generate",
"stream"
],
"license": "MIT",
"main": "index.js",
"name": "@gulp-sourcemaps/identity-map",
"repository": {
"type": "git",
"url": "git+https://github.com/gulp-sourcemaps/identity-map.git"
},
"scripts": {
"cover": "istanbul cover _mocha --report lcovonly",
"coveralls": "npm run cover && istanbul-coveralls",
"lint": "eslint . && jscs index.js test/index.js lib/",
"pretest": "npm run lint",
"test": "mocha --async-only"
},
"version": "1.0.2"
}

21
node_modules/@gulp-sourcemaps/map-sources/LICENSE generated vendored Normal file
View File

@@ -0,0 +1,21 @@
The MIT License (MIT)
Copyright (c) 2017 Blaine Bublitz <blaine.bublitz@gmail.com>
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.

52
node_modules/@gulp-sourcemaps/map-sources/README.md generated vendored Normal file
View File

@@ -0,0 +1,52 @@
# @gulp-sourcemaps/map-sources
[![NPM version][npm-image]][npm-url] [![Downloads][downloads-image]][npm-url] [![Build Status][travis-image]][travis-url] [![AppVeyor Build Status][appveyor-image]][appveyor-url] [![Coveralls Status][coveralls-image]][coveralls-url]
Gulp plugin for mapping sources of a sourcemap.
## Example
```js
var mapSources = require('@gulp-sourcemaps/map-sources');
gulp.src(...)
.pipe(sourcemaps.init())
.pipe(mapSources(function(sourcePath, file) {
return '../' + sourcePath;
}))
.pipe(sourcemaps.write())
.pipe(gulp.dest(...))
```
## API
### `mapSources(mapFn)`
Takes a map function as the only argument. Returns an `objectMode` Transform stream.
#### `mapFn(sourcePath, file)`
The map function is called once per value of the `sources` array of a `sourceMap` attached to each [`Vinyl`][vinyl-url] object passed through the stream. The map function is called with the `sourcePath` string from the `sources` array and the `file` object it originated from. The return value replaces the original value in the array.
If a `Vinyl` object doesn't have a `sourceMap` or `sourceMap.sources` property, the file is passed through the stream without having the `mapFn` called.
All `sources` are normalized to use `/` instead of `\\` as path separators.
## License
MIT
[vinyl-url]: https://github.com/gulpjs/vinyl
[downloads-image]: http://img.shields.io/npm/dm/@gulp-sourcemaps/map-sources.svg
[npm-url]: https://npmjs.org/package/@gulp-sourcemaps/map-sources
[npm-image]: http://img.shields.io/npm/v/@gulp-sourcemaps/map-sources.svg
[travis-url]: https://travis-ci.org/gulp-sourcemaps/map-sources
[travis-image]: http://img.shields.io/travis/gulp-sourcemaps/map-sources.svg?label=travis-ci
[appveyor-url]: https://ci.appveyor.com/project/phated/map-sources
[appveyor-image]: https://img.shields.io/appveyor/ci/phated/map-sources.svg?label=appveyor
[coveralls-url]: https://coveralls.io/r/gulp-sourcemaps/map-sources
[coveralls-image]: http://img.shields.io/coveralls/gulp-sourcemaps/map-sources.svg

30
node_modules/@gulp-sourcemaps/map-sources/index.js generated vendored Normal file
View File

@@ -0,0 +1,30 @@
'use strict';
var through = require('through2');
var normalize = require('normalize-path');
function mapSources(mapFn) {
function transform(file, _, cb) {
if (!file.sourceMap || !file.sourceMap.sources) {
return cb(null, file);
}
function mapper(sourcePath) {
var result = sourcePath;
if (typeof mapFn === 'function') {
result = mapFn(sourcePath, file);
}
return normalize(result);
}
file.sourceMap.sources = file.sourceMap.sources.map(mapper);
cb(null, file);
}
return through.obj(transform);
}
module.exports = mapSources;

85
node_modules/@gulp-sourcemaps/map-sources/package.json generated vendored Normal file
View File

@@ -0,0 +1,85 @@
{
"_from": "@gulp-sourcemaps/map-sources@1.X",
"_id": "@gulp-sourcemaps/map-sources@1.0.0",
"_inBundle": false,
"_integrity": "sha1-iQrnxdjId/bThIYCFazp1+yUW9o=",
"_location": "/@gulp-sourcemaps/map-sources",
"_phantomChildren": {},
"_requested": {
"type": "range",
"registry": true,
"raw": "@gulp-sourcemaps/map-sources@1.X",
"name": "@gulp-sourcemaps/map-sources",
"escapedName": "@gulp-sourcemaps%2fmap-sources",
"scope": "@gulp-sourcemaps",
"rawSpec": "1.X",
"saveSpec": null,
"fetchSpec": "1.X"
},
"_requiredBy": [
"/gulp-sourcemaps"
],
"_resolved": "https://registry.npmjs.org/@gulp-sourcemaps/map-sources/-/map-sources-1.0.0.tgz",
"_shasum": "890ae7c5d8c877f6d384860215ace9d7ec945bda",
"_spec": "@gulp-sourcemaps/map-sources@1.X",
"_where": "D:\\Air66 Files\\dev_sites\\www.airurl.dev.cc\\user\\plugins\\air66Theme\\node_modules\\gulp-sourcemaps",
"author": {
"name": "Gulp-sourcemaps Team"
},
"bugs": {
"url": "https://github.com/gulp-sourcemaps/map-sources/issues"
},
"bundleDependencies": false,
"contributors": [
{
"name": "Blaine Bublitz",
"email": "blaine.bublitz@gmail.com"
}
],
"dependencies": {
"normalize-path": "^2.0.1",
"through2": "^2.0.3"
},
"deprecated": false,
"description": "Gulp plugin for mapping sources of a sourcemap.",
"devDependencies": {
"eslint": "^1.7.3",
"eslint-config-gulp": "^2.0.0",
"expect": "^1.19.0",
"istanbul": "^0.4.3",
"istanbul-coveralls": "^1.0.3",
"jscs": "^2.3.5",
"jscs-preset-gulp": "^1.0.0",
"mississippi": "^1.3.0",
"mocha": "^2.4.5",
"vinyl": "^2.0.1"
},
"engines": {
"node": ">= 0.10"
},
"files": [
"LICENSE",
"index.js"
],
"homepage": "https://github.com/gulp-sourcemaps/map-sources#readme",
"keywords": [
"sourcemap",
"sources",
"stream"
],
"license": "MIT",
"main": "index.js",
"name": "@gulp-sourcemaps/map-sources",
"repository": {
"type": "git",
"url": "git+https://github.com/gulp-sourcemaps/map-sources.git"
},
"scripts": {
"cover": "istanbul cover _mocha --report lcovonly",
"coveralls": "npm run cover && istanbul-coveralls",
"lint": "eslint . && jscs index.js test/",
"pretest": "npm run lint",
"test": "mocha --async-only"
},
"version": "1.0.0"
}