package.json 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
  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.cjs",
  26. "build/three.module.js",
  27. "examples/jsm",
  28. "examples/fonts",
  29. "LICENSE",
  30. "package.json",
  31. "README.md",
  32. "src"
  33. ],
  34. "directories": {
  35. "doc": "docs",
  36. "example": "examples",
  37. "test": "test"
  38. },
  39. "eslintConfig": {
  40. "root": true,
  41. "extends": [
  42. "mdcs",
  43. "plugin:compat/recommended"
  44. ],
  45. "plugins": [
  46. "html",
  47. "import"
  48. ],
  49. "settings": {
  50. "polyfills": [
  51. "WebGL2RenderingContext"
  52. ]
  53. },
  54. "globals": {
  55. "__THREE_DEVTOOLS__": "readonly",
  56. "potpack": "readonly",
  57. "fflate": "readonly",
  58. "OIMO": "readonly",
  59. "Stats": "readonly",
  60. "XRWebGLBinding": "readonly",
  61. "XRWebGLLayer": "readonly",
  62. "GPUShaderStage": "readonly",
  63. "GPUBufferUsage": "readonly",
  64. "GPUTextureUsage": "readonly",
  65. "GPUMapMode": "readonly",
  66. "QUnit": "readonly",
  67. "Ammo": "readonly",
  68. "XRRigidTransform": "readonly",
  69. "XRMediaBinding": "readonly",
  70. "CodeMirror": "readonly",
  71. "esprima": "readonly",
  72. "jsonlint": "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-core": "eslint src",
  101. "lint-addons": "eslint examples/jsm --ext .js --ignore-pattern libs --ignore-pattern ifc",
  102. "lint-examples": "eslint examples --ext .html",
  103. "lint-docs": "eslint docs --ignore-pattern prettify.js",
  104. "lint-editor": "eslint editor --ignore-pattern libs",
  105. "lint-manual": "eslint manual --ignore-pattern 3rdparty --ignore-pattern prettify.js --ignore-pattern shapefile.js",
  106. "lint-test": "eslint test --ignore-pattern vendor",
  107. "lint-utils": "eslint utils",
  108. "lint": "npm run lint-core",
  109. "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",
  110. "test-unit": "qunit -r failonlyreporter -f !-webonly test/unit/three.source.unit.js",
  111. "test-e2e": "node test/e2e/puppeteer.js",
  112. "test-e2e-cov": "node test/e2e/check-coverage.js",
  113. "test-treeshake": "rollup -c test/rollup.treeshake.config.js",
  114. "make-screenshot": "node test/e2e/puppeteer.js --make"
  115. },
  116. "keywords": [
  117. "three",
  118. "three.js",
  119. "javascript",
  120. "3d",
  121. "virtual-reality",
  122. "augmented-reality",
  123. "webgl",
  124. "webgl2",
  125. "webaudio",
  126. "webgpu",
  127. "webxr",
  128. "canvas",
  129. "svg",
  130. "html5"
  131. ],
  132. "author": "mrdoob",
  133. "license": "MIT",
  134. "bugs": {
  135. "url": "https://github.com/mrdoob/three.js/issues"
  136. },
  137. "homepage": "https://threejs.org/",
  138. "devDependencies": {
  139. "@rollup/plugin-node-resolve": "^15.0.1",
  140. "chalk": "^5.2.0",
  141. "concurrently": "^7.6.0",
  142. "eslint": "^8.33.0",
  143. "eslint-config-mdcs": "^5.0.0",
  144. "eslint-plugin-compat": "^4.0.2",
  145. "eslint-plugin-html": "^7.1.0",
  146. "eslint-plugin-import": "^2.27.5",
  147. "failonlyreporter": "^1.0.0",
  148. "jimp": "^0.16.0",
  149. "node-fetch": "^3.2.6",
  150. "pixelmatch": "^5.3.0",
  151. "puppeteer-core": "^19.6.2",
  152. "qunit": "^2.19.1",
  153. "rollup": "^3.12.0",
  154. "rollup-plugin-filesize": "^9.1.2",
  155. "rollup-plugin-visualizer": "^5.9.0",
  156. "servez": "^1.14.1"
  157. },
  158. "overrides": {
  159. "jpeg-js": "^0.4.4"
  160. },
  161. "jspm": {
  162. "files": [
  163. "package.json",
  164. "LICENSE",
  165. "README.md",
  166. "build/three.module.js"
  167. ],
  168. "directories": {}
  169. }
  170. }