package.json 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169
  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. "CodeMirror": "readonly",
  74. "esprima": "readonly",
  75. "jsonlint": "readonly",
  76. "Benchmark": "readonly",
  77. "Bench": "readonly"
  78. },
  79. "rules": {
  80. "no-throw-literal": [
  81. "error"
  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-core": "eslint src",
  106. "lint-addons": "eslint examples/jsm --ext .js --ignore-pattern libs --ignore-pattern ifc",
  107. "lint-examples": "eslint examples --ext .html",
  108. "lint-docs": "eslint docs --ignore-pattern prettify.js",
  109. "lint-editor": "eslint editor --ignore-pattern libs",
  110. "lint-manual": "eslint manual --ignore-pattern 3rdparty --ignore-pattern prettify.js --ignore-pattern shapefile.js",
  111. "lint-test": "eslint test --ignore-pattern vendor",
  112. "lint-utils": "eslint utils",
  113. "lint": "npm run lint-core",
  114. "lint-fix": "npm run lint-core -- --fix && npm run lint-addons -- --fix && npm run lint-docs -- --fix",
  115. "test-unit": "npm run unit --prefix test",
  116. "test-e2e": "node test/e2e/puppeteer.js",
  117. "test-e2e-cov": "node test/e2e/check-coverage.js",
  118. "test-treeshake": "rollup -c test/rollup.treeshake.config.js",
  119. "make-screenshot": "node test/e2e/puppeteer.js --make"
  120. },
  121. "keywords": [
  122. "three",
  123. "three.js",
  124. "javascript",
  125. "3d",
  126. "virtual-reality",
  127. "augmented-reality",
  128. "webgl",
  129. "webgl2",
  130. "webaudio",
  131. "webgpu",
  132. "webxr",
  133. "canvas",
  134. "svg",
  135. "html5"
  136. ],
  137. "author": "mrdoob",
  138. "license": "MIT",
  139. "bugs": {
  140. "url": "https://github.com/mrdoob/three.js/issues"
  141. },
  142. "homepage": "https://threejs.org/",
  143. "devDependencies": {
  144. "@rollup/plugin-node-resolve": "^15.0.1",
  145. "@rollup/plugin-terser": "^0.2.1",
  146. "chalk": "^5.2.0",
  147. "concurrently": "^7.6.0",
  148. "eslint": "^8.30.0",
  149. "eslint-config-mdcs": "^5.0.0",
  150. "eslint-plugin-compat": "^4.0.2",
  151. "eslint-plugin-html": "^7.1.0",
  152. "eslint-plugin-import": "^2.26.0",
  153. "rollup": "^3.8.1",
  154. "rollup-plugin-filesize": "^9.1.2",
  155. "rollup-plugin-visualizer": "^5.8.3",
  156. "servez": "^1.14.1"
  157. },
  158. "jspm": {
  159. "files": [
  160. "package.json",
  161. "LICENSE",
  162. "README.md",
  163. "build/three.js",
  164. "build/three.min.js",
  165. "build/three.module.js"
  166. ],
  167. "directories": {}
  168. }
  169. }
粤ICP备19079148号