package.json 4.0 KB

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