package.json 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172
  1. {
  2. "name": "three",
  3. "version": "0.149.0",
  4. "description": "JavaScript 3D library",
  5. "type": "module",
  6. "main": "./build/three.cjs",
  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. "./addons/*": "./examples/jsm/*",
  16. "./src/*": "./src/*",
  17. "./nodes": "./examples/jsm/nodes/Nodes.js"
  18. },
  19. "repository": {
  20. "type": "git",
  21. "url": "https://github.com/mrdoob/three.js"
  22. },
  23. "sideEffects": false,
  24. "files": [
  25. "build/three.js",
  26. "build/three.cjs",
  27. "build/three.module.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. "plugins": [
  47. "html",
  48. "import"
  49. ],
  50. "settings": {
  51. "polyfills": [
  52. "WebGL2RenderingContext"
  53. ]
  54. },
  55. "globals": {
  56. "__THREE_DEVTOOLS__": "readonly",
  57. "potpack": "readonly",
  58. "fflate": "readonly",
  59. "OIMO": "readonly",
  60. "Stats": "readonly",
  61. "XRWebGLBinding": "readonly",
  62. "XRWebGLLayer": "readonly",
  63. "GPUShaderStage": "readonly",
  64. "GPUBufferUsage": "readonly",
  65. "GPUTextureUsage": "readonly",
  66. "GPUMapMode": "readonly",
  67. "QUnit": "readonly",
  68. "Ammo": "readonly",
  69. "XRRigidTransform": "readonly",
  70. "XRMediaBinding": "readonly",
  71. "CodeMirror": "readonly",
  72. "esprima": "readonly",
  73. "jsonlint": "readonly"
  74. },
  75. "rules": {
  76. "no-throw-literal": [
  77. "error"
  78. ],
  79. "quotes": [
  80. "error",
  81. "single"
  82. ],
  83. "prefer-const": [
  84. "error",
  85. {
  86. "destructuring": "any",
  87. "ignoreReadBeforeAssign": false
  88. }
  89. ]
  90. }
  91. },
  92. "browserslist": [
  93. "> 1%, not dead, not ie 11, not op_mini all"
  94. ],
  95. "scripts": {
  96. "start": "npm run dev",
  97. "test": "npm run lint && npm run test-unit",
  98. "build": "rollup -c utils/build/rollup.config.js",
  99. "build-module": "rollup -c utils/build/rollup.config.js --configOnlyModule",
  100. "dev": "concurrently --names \"ROLLUP,HTTP\" -c \"bgBlue.bold,bgGreen.bold\" \"rollup -c utils/build/rollup.config.js -w -m inline\" \"servez -p 8080 --ssl\"",
  101. "lint-core": "eslint src",
  102. "lint-addons": "eslint examples/jsm --ext .js --ignore-pattern libs --ignore-pattern ifc",
  103. "lint-examples": "eslint examples --ext .html",
  104. "lint-docs": "eslint docs --ignore-pattern prettify.js",
  105. "lint-editor": "eslint editor --ignore-pattern libs",
  106. "lint-manual": "eslint manual --ignore-pattern 3rdparty --ignore-pattern prettify.js --ignore-pattern shapefile.js",
  107. "lint-test": "eslint test --ignore-pattern vendor",
  108. "lint-utils": "eslint utils",
  109. "lint": "npm run lint-core",
  110. "lint-fix": "npm run lint-core -- --fix && npm run lint-addons -- --fix && npm run lint-examples -- --fix && npm run lint-docs -- --fix && npm run lint-editor -- --fix && npm run lint-manual -- --fix && npm run lint-test -- --fix && npm run lint-utils -- --fix",
  111. "test-unit": "qunit -r failonlyreporter -f !-webonly test/unit/three.source.unit.js",
  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. "@rollup/plugin-node-resolve": "^15.0.1",
  141. "chalk": "^5.2.0",
  142. "concurrently": "^7.6.0",
  143. "eslint": "^8.33.0",
  144. "eslint-config-mdcs": "^5.0.0",
  145. "eslint-plugin-compat": "^4.0.2",
  146. "eslint-plugin-html": "^7.1.0",
  147. "eslint-plugin-import": "^2.27.5",
  148. "failonlyreporter": "^1.0.0",
  149. "jimp": "^0.16.0",
  150. "node-fetch": "^3.2.6",
  151. "pixelmatch": "^5.3.0",
  152. "puppeteer-core": "^19.6.2",
  153. "qunit": "^2.19.1",
  154. "rollup": "^3.12.0",
  155. "rollup-plugin-filesize": "^9.1.2",
  156. "rollup-plugin-visualizer": "^5.9.0",
  157. "servez": "^1.14.1"
  158. },
  159. "overrides": {
  160. "jpeg-js": "^0.4.4"
  161. },
  162. "jspm": {
  163. "files": [
  164. "package.json",
  165. "LICENSE",
  166. "README.md",
  167. "build/three.js",
  168. "build/three.module.js"
  169. ],
  170. "directories": {}
  171. }
  172. }