package.json 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168
  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. "potpack": "readonly",
  59. "fflate": "readonly",
  60. "OIMO": "readonly",
  61. "Stats": "readonly",
  62. "XRWebGLBinding": "readonly",
  63. "XRWebGLLayer": "readonly",
  64. "GPUShaderStage": "readonly",
  65. "GPUBufferUsage": "readonly",
  66. "GPUTextureUsage": "readonly",
  67. "GPUMapMode": "readonly",
  68. "QUnit": "readonly",
  69. "Ammo": "readonly",
  70. "XRRigidTransform": "readonly",
  71. "XRMediaBinding": "readonly",
  72. "CodeMirror": "readonly",
  73. "esprima": "readonly",
  74. "jsonlint": "readonly",
  75. "Benchmark": "readonly",
  76. "Bench": "readonly"
  77. },
  78. "rules": {
  79. "no-throw-literal": [
  80. "error"
  81. ],
  82. "quotes": [
  83. "error",
  84. "single"
  85. ],
  86. "prefer-const": [
  87. "error",
  88. {
  89. "destructuring": "any",
  90. "ignoreReadBeforeAssign": false
  91. }
  92. ]
  93. }
  94. },
  95. "browserslist": [
  96. "> 1%, not dead, not ie 11, not op_mini all"
  97. ],
  98. "scripts": {
  99. "start": "npm run dev",
  100. "test": "npm run lint && npm run test-unit",
  101. "build": "rollup -c utils/build/rollup.config.js",
  102. "build-module": "rollup -c utils/build/rollup.config.js --configOnlyModule",
  103. "dev": "concurrently --names \"ROLLUP,HTTP\" -c \"bgBlue.bold,bgGreen.bold\" \"rollup -c utils/build/rollup.config.js -w -m inline\" \"servez -p 8080 --ssl\"",
  104. "lint-core": "eslint src",
  105. "lint-addons": "eslint examples/jsm --ext .js --ignore-pattern libs --ignore-pattern ifc",
  106. "lint-examples": "eslint examples --ext .html",
  107. "lint-docs": "eslint docs --ignore-pattern prettify.js",
  108. "lint-editor": "eslint editor --ignore-pattern libs",
  109. "lint-manual": "eslint manual --ignore-pattern 3rdparty --ignore-pattern prettify.js --ignore-pattern shapefile.js",
  110. "lint-test": "eslint test --ignore-pattern vendor",
  111. "lint-utils": "eslint utils",
  112. "lint": "npm run lint-core",
  113. "lint-fix": "npm run lint-core -- --fix && npm run lint-addons -- --fix && npm run lint-docs -- --fix",
  114. "test-unit": "npm run unit --prefix test",
  115. "test-e2e": "node test/e2e/puppeteer.js",
  116. "test-e2e-cov": "node test/e2e/check-coverage.js",
  117. "test-treeshake": "rollup -c test/rollup.treeshake.config.js",
  118. "make-screenshot": "node test/e2e/puppeteer.js --make"
  119. },
  120. "keywords": [
  121. "three",
  122. "three.js",
  123. "javascript",
  124. "3d",
  125. "virtual-reality",
  126. "augmented-reality",
  127. "webgl",
  128. "webgl2",
  129. "webaudio",
  130. "webgpu",
  131. "webxr",
  132. "canvas",
  133. "svg",
  134. "html5"
  135. ],
  136. "author": "mrdoob",
  137. "license": "MIT",
  138. "bugs": {
  139. "url": "https://github.com/mrdoob/three.js/issues"
  140. },
  141. "homepage": "https://threejs.org/",
  142. "devDependencies": {
  143. "@rollup/plugin-node-resolve": "^15.0.1",
  144. "@rollup/plugin-terser": "^0.2.1",
  145. "chalk": "^5.2.0",
  146. "concurrently": "^7.6.0",
  147. "eslint": "^8.30.0",
  148. "eslint-config-mdcs": "^5.0.0",
  149. "eslint-plugin-compat": "^4.0.2",
  150. "eslint-plugin-html": "^7.1.0",
  151. "eslint-plugin-import": "^2.26.0",
  152. "rollup": "^3.8.1",
  153. "rollup-plugin-filesize": "^9.1.2",
  154. "rollup-plugin-visualizer": "^5.8.3",
  155. "servez": "^1.14.1"
  156. },
  157. "jspm": {
  158. "files": [
  159. "package.json",
  160. "LICENSE",
  161. "README.md",
  162. "build/three.js",
  163. "build/three.min.js",
  164. "build/three.module.js"
  165. ],
  166. "directories": {}
  167. }
  168. }