mirror of
https://github.com/SamEyeBam/animate.git
synced 2025-12-14 09:52:16 +00:00
larry babby and threejs for glsl
This commit is contained in:
21
webGl/my-threejs-test/node_modules/@parcel/runtime-service-worker/LICENSE
generated
vendored
Normal file
21
webGl/my-threejs-test/node_modules/@parcel/runtime-service-worker/LICENSE
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2017-present Devon Govett
|
||||
|
||||
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.
|
||||
59
webGl/my-threejs-test/node_modules/@parcel/runtime-service-worker/lib/ServiceWorkerRuntime.js
generated
vendored
Normal file
59
webGl/my-threejs-test/node_modules/@parcel/runtime-service-worker/lib/ServiceWorkerRuntime.js
generated
vendored
Normal file
@@ -0,0 +1,59 @@
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.default = void 0;
|
||||
function _plugin() {
|
||||
const data = require("@parcel/plugin");
|
||||
_plugin = function () {
|
||||
return data;
|
||||
};
|
||||
return data;
|
||||
}
|
||||
function _utils() {
|
||||
const data = require("@parcel/utils");
|
||||
_utils = function () {
|
||||
return data;
|
||||
};
|
||||
return data;
|
||||
}
|
||||
var _default = exports.default = new (_plugin().Runtime)({
|
||||
apply({
|
||||
bundle,
|
||||
bundleGraph
|
||||
}) {
|
||||
if (bundle.env.context !== 'service-worker') {
|
||||
return [];
|
||||
}
|
||||
let asset = bundle.traverse((node, _, actions) => {
|
||||
if (node.type === 'dependency' && node.value.specifier === '@parcel/service-worker' && !bundleGraph.isDependencySkipped(node.value)) {
|
||||
actions.stop();
|
||||
return bundleGraph.getResolvedAsset(node.value, bundle);
|
||||
}
|
||||
});
|
||||
if (!asset) {
|
||||
return [];
|
||||
}
|
||||
let manifest = [];
|
||||
bundleGraph.traverseBundles(b => {
|
||||
if (b.bundleBehavior === 'inline' || b.id === bundle.id) {
|
||||
return;
|
||||
}
|
||||
manifest.push((0, _utils().urlJoin)(b.target.publicUrl, b.name));
|
||||
});
|
||||
let code = `import {_register} from '@parcel/service-worker';
|
||||
const manifest = ${JSON.stringify(manifest)};
|
||||
const version = ${JSON.stringify(bundle.hashReference)};
|
||||
_register(manifest, version);
|
||||
`;
|
||||
return [{
|
||||
filePath: asset.filePath,
|
||||
code,
|
||||
isEntry: true,
|
||||
env: {
|
||||
sourceType: 'module'
|
||||
}
|
||||
}];
|
||||
}
|
||||
});
|
||||
28
webGl/my-threejs-test/node_modules/@parcel/runtime-service-worker/package.json
generated
vendored
Normal file
28
webGl/my-threejs-test/node_modules/@parcel/runtime-service-worker/package.json
generated
vendored
Normal file
@@ -0,0 +1,28 @@
|
||||
{
|
||||
"name": "@parcel/runtime-service-worker",
|
||||
"version": "2.12.0",
|
||||
"license": "MIT",
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"funding": {
|
||||
"type": "opencollective",
|
||||
"url": "https://opencollective.com/parcel"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/parcel-bundler/parcel.git"
|
||||
},
|
||||
"main": "./lib/ServiceWorkerRuntime.js",
|
||||
"source": "./src/ServiceWorkerRuntime.js",
|
||||
"engines": {
|
||||
"node": ">= 12.0.0",
|
||||
"parcel": "^2.12.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"@parcel/plugin": "2.12.0",
|
||||
"@parcel/utils": "2.12.0",
|
||||
"nullthrows": "^1.1.1"
|
||||
},
|
||||
"gitHead": "2059029ee91e5f03a273b0954d3e629d7375f986"
|
||||
}
|
||||
50
webGl/my-threejs-test/node_modules/@parcel/runtime-service-worker/src/ServiceWorkerRuntime.js
generated
vendored
Normal file
50
webGl/my-threejs-test/node_modules/@parcel/runtime-service-worker/src/ServiceWorkerRuntime.js
generated
vendored
Normal file
@@ -0,0 +1,50 @@
|
||||
// @flow
|
||||
import {Runtime} from '@parcel/plugin';
|
||||
import {urlJoin} from '@parcel/utils';
|
||||
|
||||
export default (new Runtime({
|
||||
apply({bundle, bundleGraph}) {
|
||||
if (bundle.env.context !== 'service-worker') {
|
||||
return [];
|
||||
}
|
||||
|
||||
let asset = bundle.traverse((node, _, actions) => {
|
||||
if (
|
||||
node.type === 'dependency' &&
|
||||
node.value.specifier === '@parcel/service-worker' &&
|
||||
!bundleGraph.isDependencySkipped(node.value)
|
||||
) {
|
||||
actions.stop();
|
||||
return bundleGraph.getResolvedAsset(node.value, bundle);
|
||||
}
|
||||
});
|
||||
|
||||
if (!asset) {
|
||||
return [];
|
||||
}
|
||||
|
||||
let manifest = [];
|
||||
bundleGraph.traverseBundles(b => {
|
||||
if (b.bundleBehavior === 'inline' || b.id === bundle.id) {
|
||||
return;
|
||||
}
|
||||
|
||||
manifest.push(urlJoin(b.target.publicUrl, b.name));
|
||||
});
|
||||
|
||||
let code = `import {_register} from '@parcel/service-worker';
|
||||
const manifest = ${JSON.stringify(manifest)};
|
||||
const version = ${JSON.stringify(bundle.hashReference)};
|
||||
_register(manifest, version);
|
||||
`;
|
||||
|
||||
return [
|
||||
{
|
||||
filePath: asset.filePath,
|
||||
code,
|
||||
isEntry: true,
|
||||
env: {sourceType: 'module'},
|
||||
},
|
||||
];
|
||||
},
|
||||
}): Runtime);
|
||||
Reference in New Issue
Block a user