123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174 |
- {
- "name": "three",
- "version": "0.146.0",
- "description": "JavaScript 3D library",
- "type": "module",
- "main": "./build/three.js",
- "module": "./build/three.module.js",
- "exports": {
- ".": {
- "import": "./build/three.module.js",
- "require": "./build/three.cjs"
- },
- "./examples/fonts/*": "./examples/fonts/*",
- "./examples/jsm/*": "./examples/jsm/*",
- "./addons/*": "./examples/jsm/*",
- "./src/*": "./src/*",
- "./nodes": "./examples/jsm/nodes/Nodes.js"
- },
- "repository": {
- "type": "git",
- "url": "https://github.com/mrdoob/three.js"
- },
- "sideEffects": false,
- "files": [
- "build/three.js",
- "build/three.cjs",
- "build/three.min.js",
- "build/three.module.js",
- "examples/js",
- "examples/jsm",
- "examples/fonts",
- "LICENSE",
- "package.json",
- "README.md",
- "src"
- ],
- "directories": {
- "doc": "docs",
- "example": "examples",
- "test": "test"
- },
- "eslintConfig": {
- "root": true,
- "extends": [
- "mdcs",
- "plugin:compat/recommended"
- ],
- "parser": "@babel/eslint-parser",
- "parserOptions": {
- "babelOptions": {
- "configFile": "./utils/build/.babelrc.json"
- }
- },
- "plugins": [
- "html",
- "import"
- ],
- "settings": {
- "polyfills": [
- "WebGL2RenderingContext"
- ]
- },
- "globals": {
- "__THREE_DEVTOOLS__": "readonly",
- "WebGL2ComputeRenderingContext": "readonly",
- "potpack": "readonly",
- "fflate": "readonly",
- "OIMO": "readonly",
- "Stats": "readonly",
- "XRWebGLBinding": "readonly",
- "XRWebGLLayer": "readonly",
- "GPUShaderStage": "readonly",
- "GPUBufferUsage": "readonly",
- "GPUTextureUsage": "readonly",
- "QUnit": "readonly",
- "Ammo":"readonly",
- "XRRigidTransform":"readonly",
- "XRMediaBinding":"readonly"
- },
- "rules": {
- "no-throw-literal": [
- "error"
- ],
- "import/extensions": [
- "error",
- "always"
- ],
- "quotes": [
- "error",
- "single"
- ],
- "prefer-const": [
- "error",
- {
- "destructuring": "any",
- "ignoreReadBeforeAssign": false
- }
- ]
- }
- },
- "browserslist": [
- "> 1%, not dead, not ie 11, not op_mini all"
- ],
- "scripts": {
- "start": "npm run dev",
- "test": "npm run lint && npm run test-unit",
- "build": "rollup -c utils/build/rollup.config.js",
- "build-module": "ONLY_MODULE=true rollup -c utils/build/rollup.config.js",
- "build-examples": "rollup -c utils/build/rollup.examples.config.js && echo '\nFormatting...' && eslint examples/js --ext js --ignore-pattern libs --ignore-pattern ifc --fix",
- "dev": "concurrently --names \"ROLLUP,HTTP\" -c \"bgBlue.bold,bgGreen.bold\" \"rollup -c utils/build/rollup.config.js -w -m inline\" \"servez -p 8080\"",
- "lint": "eslint src --ext js",
- "lint-examples": "eslint examples/js examples/jsm examples/*.html --ext js,html --ignore-pattern libs --ignore-pattern ifc",
- "lint-docs": "eslint docs --ext html",
- "lint-fix": "npm run lint -- --fix && npm run lint-examples -- --fix && npm run lint-docs -- --fix",
- "test-unit": "npm run unit --prefix test",
- "test-e2e": "node test/e2e/puppeteer.js",
- "test-e2e-cov": "node test/e2e/check-coverage.js",
- "test-treeshake": "rollup -c test/rollup.treeshake.config.js",
- "make-screenshot": "node test/e2e/puppeteer.js --make"
- },
- "keywords": [
- "three",
- "three.js",
- "javascript",
- "3d",
- "virtual-reality",
- "augmented-reality",
- "webgl",
- "webgl2",
- "webaudio",
- "webgpu",
- "webxr",
- "canvas",
- "svg",
- "html5"
- ],
- "author": "mrdoob",
- "license": "MIT",
- "bugs": {
- "url": "https://github.com/mrdoob/three.js/issues"
- },
- "homepage": "https://threejs.org/",
- "devDependencies": {
- "@babel/core": "^7.19.3",
- "@babel/eslint-parser": "^7.19.1",
- "@babel/plugin-proposal-class-properties": "^7.18.6",
- "@babel/preset-env": "^7.19.3",
- "@rollup/plugin-babel": "^5.3.1",
- "@rollup/plugin-node-resolve": "^14.1.0",
- "chalk": "^5.0.1",
- "concurrently": "^7.4.0",
- "eslint": "^8.24.0",
- "eslint-config-mdcs": "^5.0.0",
- "eslint-plugin-compat": "^4.0.2",
- "eslint-plugin-html": "^7.1.0",
- "eslint-plugin-import": "^2.26.0",
- "rollup": "^2.79.1",
- "rollup-plugin-filesize": "^9.1.2",
- "rollup-plugin-terser": "^7.0.2",
- "rollup-plugin-visualizer": "^5.8.2",
- "servez": "^1.14.1"
- },
- "jspm": {
- "files": [
- "package.json",
- "LICENSE",
- "README.md",
- "build/three.js",
- "build/three.min.js",
- "build/three.module.js"
- ],
- "directories": {}
- }
- }
|