UNPKG

4.54 kBJSONView Raw
1{
2 "name": "three",
3 "version": "0.143.0",
4 "description": "JavaScript 3D library",
5 "type": "module",
6 "main": "./build/three.js",
7 "module": "./build/three.module.js",
8 "exports": {
9 ".": {
10 "import": "./build/three.module.js",
11 "require": "./build/three.cjs"
12 },
13 "./examples/fonts/*": "./examples/fonts/*",
14 "./examples/jsm/*": "./examples/jsm/*",
15 "./src/*": "./src/*"
16 },
17 "repository": {
18 "type": "git",
19 "url": "https://github.com/mrdoob/three.js"
20 },
21 "sideEffects": false,
22 "files": [
23 "build/three.js",
24 "build/three.cjs",
25 "build/three.min.js",
26 "build/three.module.js",
27 "examples/js",
28 "examples/jsm",
29 "examples/fonts",
30 "LICENSE",
31 "package.json",
32 "README.md",
33 "src"
34 ],
35 "directories": {
36 "doc": "docs",
37 "example": "examples",
38 "test": "test"
39 },
40 "eslintConfig": {
41 "root": true,
42 "extends": [
43 "mdcs",
44 "plugin:compat/recommended"
45 ],
46 "parser": "@babel/eslint-parser",
47 "parserOptions": {
48 "babelOptions": {
49 "configFile": "./utils/build/.babelrc.json"
50 }
51 },
52 "plugins": [
53 "html",
54 "import"
55 ],
56 "settings": {
57 "polyfills": [
58 "WebGL2RenderingContext"
59 ]
60 },
61 "globals": {
62 "__THREE_DEVTOOLS__": "readonly",
63 "WebGL2ComputeRenderingContext": "readonly",
64 "potpack": "readonly",
65 "fflate": "readonly",
66 "bodymovin": "readonly",
67 "OIMO": "readonly",
68 "Stats": "readonly",
69 "XRWebGLBinding": "readonly",
70 "XRWebGLLayer": "readonly",
71 "GPUShaderStage": "readonly",
72 "GPUBufferUsage": "readonly",
73 "GPUTextureUsage": "readonly",
74 "QUnit": "readonly"
75 },
76 "rules": {
77 "no-throw-literal": [
78 "error"
79 ],
80 "import/extensions": [
81 "error",
82 "always"
83 ],
84 "quotes": [
85 "error",
86 "single"
87 ],
88 "prefer-const": [
89 "error",
90 {
91 "destructuring": "any",
92 "ignoreReadBeforeAssign": false
93 }
94 ]
95 }
96 },
97 "browserslist": [
98 "> 1%, not dead, not ie 11, not op_mini all"
99 ],
100 "scripts": {
101 "start": "npm run dev",
102 "test": "npm run lint && npm run test-unit",
103 "build": "rollup -c utils/build/rollup.config.js",
104 "build-module": "ONLY_MODULE=true rollup -c utils/build/rollup.config.js",
105 "build-examples": "rollup -c utils/build/rollup.examples.config.js && echo '\nFormatting...' && eslint examples/js --ext js --ignore-pattern libs --ignore-pattern ifc --fix",
106 "dev": "concurrently --names \"ROLLUP,HTTP\" -c \"bgBlue.bold,bgGreen.bold\" \"rollup -c utils/build/rollup.config.js -w -m inline\" \"servez -p 8080\"",
107 "lint": "eslint src --ext js",
108 "lint-examples": "eslint examples/js examples/jsm --ext js --ignore-pattern libs --ignore-pattern ifc",
109 "lint-docs": "eslint docs --ext html",
110 "lint-fix": "npm run lint -- --fix && npm run lint-examples -- --fix && npm run lint-docs -- --fix",
111 "test-unit": "npm run unit --prefix test",
112 "test-e2e": "node test/e2e/puppeteer.js",
113 "test-e2e-cov": "node test/e2e/check-coverage.js",
114 "test-treeshake": "rollup -c test/rollup.treeshake.config.js",
115 "make-screenshot": "node test/e2e/puppeteer.js --make"
116 },
117 "keywords": [
118 "three",
119 "three.js",
120 "javascript",
121 "3d",
122 "virtual-reality",
123 "augmented-reality",
124 "webgl",
125 "webgl2",
126 "webaudio",
127 "webgpu",
128 "webxr",
129 "canvas",
130 "svg",
131 "html5"
132 ],
133 "author": "mrdoob",
134 "license": "MIT",
135 "bugs": {
136 "url": "https://github.com/mrdoob/three.js/issues"
137 },
138 "homepage": "https://threejs.org/",
139 "devDependencies": {
140 "@babel/core": "^7.18.6",
141 "@babel/eslint-parser": "^7.18.2",
142 "@babel/plugin-proposal-class-properties": "^7.18.6",
143 "@babel/preset-env": "^7.18.6",
144 "@rollup/plugin-babel": "^5.3.1",
145 "@rollup/plugin-node-resolve": "^13.3.0",
146 "chalk": "^5.0.1",
147 "concurrently": "^7.2.2",
148 "eslint": "^8.18.0",
149 "eslint-config-mdcs": "^5.0.0",
150 "eslint-plugin-compat": "^4.0.2",
151 "eslint-plugin-html": "^6.2.0",
152 "eslint-plugin-import": "^2.26.0",
153 "rollup": "^2.75.7",
154 "rollup-plugin-filesize": "^9.1.2",
155 "rollup-plugin-terser": "^7.0.2",
156 "rollup-plugin-visualizer": "^5.6.0",
157 "servez": "^1.14.1"
158 },
159 "jspm": {
160 "files": [
161 "package.json",
162 "LICENSE",
163 "README.md",
164 "build/three.js",
165 "build/three.min.js",
166 "build/three.module.js"
167 ],
168 "directories": {}
169 }
170}