package.json 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163
  1. {
  2. "name": "three",
  3. "version": "0.148.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. "./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.min.js",
  28. "build/three.module.js",
  29. "examples/js",
  30. "examples/jsm",
  31. "examples/fonts",
  32. "LICENSE",
  33. "package.json",
  34. "README.md",
  35. "src"
  36. ],
  37. "directories": {
  38. "doc": "docs",
  39. "example": "examples",
  40. "test": "test"
  41. },
  42. "eslintConfig": {
  43. "root": true,
  44. "extends": [
  45. "mdcs",
  46. "plugin:compat/recommended"
  47. ],
  48. "plugins": [
  49. "html",
  50. "import"
  51. ],
  52. "settings": {
  53. "polyfills": [
  54. "WebGL2RenderingContext"
  55. ]
  56. },
  57. "globals": {
  58. "__THREE_DEVTOOLS__": "readonly",
  59. "WebGL2ComputeRenderingContext": "readonly",
  60. "potpack": "readonly",
  61. "fflate": "readonly",
  62. "OIMO": "readonly",
  63. "Stats": "readonly",
  64. "XRWebGLBinding": "readonly",
  65. "XRWebGLLayer": "readonly",
  66. "GPUShaderStage": "readonly",
  67. "GPUBufferUsage": "readonly",
  68. "GPUTextureUsage": "readonly",
  69. "GPUMapMode": "readonly",
  70. "QUnit": "readonly",
  71. "Ammo":"readonly",
  72. "XRRigidTransform":"readonly",
  73. "XRMediaBinding":"readonly"
  74. },
  75. "rules": {
  76. "no-throw-literal": [
  77. "error"
  78. ],
  79. "import/extensions": [
  80. "error",
  81. "always"
  82. ],
  83. "quotes": [
  84. "error",
  85. "single"
  86. ],
  87. "prefer-const": [
  88. "error",
  89. {
  90. "destructuring": "any",
  91. "ignoreReadBeforeAssign": false
  92. }
  93. ]
  94. }
  95. },
  96. "browserslist": [
  97. "> 1%, not dead, not ie 11, not op_mini all"
  98. ],
  99. "scripts": {
  100. "start": "npm run dev",
  101. "test": "npm run lint && npm run test-unit",
  102. "build": "rollup -c utils/build/rollup.config.js",
  103. "build-module": "rollup -c utils/build/rollup.config.js --configOnlyModule",
  104. "dev": "concurrently --names \"ROLLUP,HTTP\" -c \"bgBlue.bold,bgGreen.bold\" \"rollup -c utils/build/rollup.config.js -w -m inline\" \"servez -p 8080 --ssl\"",
  105. "lint": "eslint src --ext js",
  106. "lint-examples": "eslint examples/jsm examples/*.html --ext js,html --ignore-pattern libs --ignore-pattern ifc",
  107. "lint-docs": "eslint docs --ext html",
  108. "lint-fix": "npm run lint -- --fix && npm run lint-examples -- --fix && npm run lint-docs -- --fix",
  109. "test-unit": "npm run unit --prefix test",
  110. "test-e2e": "node test/e2e/puppeteer.js",
  111. "test-e2e-cov": "node test/e2e/check-coverage.js",
  112. "test-treeshake": "rollup -c test/rollup.treeshake.config.js",
  113. "make-screenshot": "node test/e2e/puppeteer.js --make"
  114. },
  115. "keywords": [
  116. "three",
  117. "three.js",
  118. "javascript",
  119. "3d",
  120. "virtual-reality",
  121. "augmented-reality",
  122. "webgl",
  123. "webgl2",
  124. "webaudio",
  125. "webgpu",
  126. "webxr",
  127. "canvas",
  128. "svg",
  129. "html5"
  130. ],
  131. "author": "mrdoob",
  132. "license": "MIT",
  133. "bugs": {
  134. "url": "https://github.com/mrdoob/three.js/issues"
  135. },
  136. "homepage": "https://threejs.org/",
  137. "devDependencies": {
  138. "@rollup/plugin-node-resolve": "^15.0.1",
  139. "chalk": "^5.1.2",
  140. "concurrently": "^7.6.0",
  141. "eslint": "^8.28.0",
  142. "eslint-config-mdcs": "^5.0.0",
  143. "eslint-plugin-compat": "^4.0.2",
  144. "eslint-plugin-html": "^7.1.0",
  145. "eslint-plugin-import": "^2.26.0",
  146. "rollup": "^2.79.1",
  147. "rollup-plugin-filesize": "^9.1.2",
  148. "rollup-plugin-terser": "^7.0.2",
  149. "rollup-plugin-visualizer": "^5.8.3",
  150. "servez": "^1.14.1"
  151. },
  152. "jspm": {
  153. "files": [
  154. "package.json",
  155. "LICENSE",
  156. "README.md",
  157. "build/three.js",
  158. "build/three.min.js",
  159. "build/three.module.js"
  160. ],
  161. "directories": {}
  162. }
  163. }