mirror of
https://github.com/gpujs/gpu.js.git
synced 2026-01-18 16:04:10 +00:00
This allows downstream consumers to use GPU.js with requirejs,
d3-require, unpkg, jsdelivr, and probably some other systems. The main
changes:
- Set { standalone: 'UMD' } in browserify configuration. This makes it
publish a UMD build that exposes a 'UMD' export or global for
CommonJS, require, and AMD.
- Move bin/ to dist/, because these are properly distribution files
rather than binaries.
- Update tests to point to the dist/ version.
- Simplify browser.js to always export, because it is not the
recommended entry point for any browser.
- Add unpkg and jsdelivr fields to package.json so that those CDNs
automatically pick up on the right file when someone tries to include
from them.
62 lines
1.4 KiB
JSON
62 lines
1.4 KiB
JSON
{
|
|
"name": "gpu.js",
|
|
"version": "2.0.0-rc.17",
|
|
"description": "GPU Accelerated JavaScript",
|
|
"engines": {
|
|
"node": ">=10.0.0"
|
|
},
|
|
"main": "./src/index.js",
|
|
"files": [
|
|
"src", "dist"
|
|
],
|
|
"unpkg": "./dist/gpu-browser.min.js",
|
|
"jsdelivr": "./dist/gpu-browser.min.js",
|
|
"directories": {
|
|
"doc": "doc",
|
|
"test": "test"
|
|
},
|
|
"dependencies": {
|
|
"acorn": "^5.1.1",
|
|
"gl": "^4.3.3",
|
|
"gl-wiretap": "^0.6.0",
|
|
"gpu-mock.js": "^1.0.1"
|
|
},
|
|
"devDependencies": {
|
|
"benchmark": "^2.1.4",
|
|
"browser-sync": "^2.26.3",
|
|
"browserify": "^16.2.3",
|
|
"gulp": "^4.0.0",
|
|
"gulp-concat": "^2.6.0",
|
|
"gulp-header": "^1.7.1",
|
|
"gulp-jsbeautifier": "^2.1.0",
|
|
"gulp-rename": "^1.2.2",
|
|
"gulp-strip-comments": "^2.4.5",
|
|
"merge-stream": "^1.0.1",
|
|
"qunit": "^2.9.1",
|
|
"sinon": "^7.3.2",
|
|
"vinyl-buffer": "^1.0.0",
|
|
"vinyl-source-stream": "^2.0.0"
|
|
},
|
|
"scripts": {
|
|
"test": "qunit",
|
|
"setup": "npm i -g gulp-cli",
|
|
"build-docs": "./node_modules/.bin/jsdoc -c jsdoc.json src -r -d doc --debug && gulp injectCSS",
|
|
"make": "gulp build && gulp beautify && gulp minify"
|
|
},
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/gpujs/gpu.js.git"
|
|
},
|
|
"keywords": [
|
|
"gpgpu",
|
|
"webgl"
|
|
],
|
|
"author": "The gpu.js Team",
|
|
"license": "MIT",
|
|
"bugs": {
|
|
"url": "https://github.com/gpujs/gpu.js/issues"
|
|
},
|
|
"homepage": "http://gpu.rocks/",
|
|
"typings": "./src/index.d.ts"
|
|
}
|