package.json 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173
  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. "parser": "@babel/eslint-parser",
  49. "parserOptions": {
  50. "babelOptions": {
  51. "configFile": "./utils/build/.babelrc.json"
  52. }
  53. },
  54. "plugins": [
  55. "html",
  56. "import"
  57. ],
  58. "settings": {
  59. "polyfills": [
  60. "WebGL2RenderingContext"
  61. ]
  62. },
  63. "globals": {
  64. "__THREE_DEVTOOLS__": "readonly",
  65. "WebGL2ComputeRenderingContext": "readonly",
  66. "potpack": "readonly",
  67. "fflate": "readonly",
  68. "OIMO": "readonly",
  69. "Stats": "readonly",
  70. "XRWebGLBinding": "readonly",
  71. "XRWebGLLayer": "readonly",
  72. "GPUShaderStage": "readonly",
  73. "GPUBufferUsage": "readonly",
  74. "GPUTextureUsage": "readonly",
  75. "QUnit": "readonly",
  76. "Ammo":"readonly",
  77. "XRRigidTransform":"readonly",
  78. "XRMediaBinding":"readonly"
  79. },
  80. "rules": {
  81. "no-throw-literal": [
  82. "error"
  83. ],
  84. "import/extensions": [
  85. "error",
  86. "always"
  87. ],
  88. "quotes": [
  89. "error",
  90. "single"
  91. ],
  92. "prefer-const": [
  93. "error",
  94. {
  95. "destructuring": "any",
  96. "ignoreReadBeforeAssign": false
  97. }
  98. ]
  99. }
  100. },
  101. "browserslist": [
  102. "> 1%, not dead, not ie 11, not op_mini all"
  103. ],
  104. "scripts": {
  105. "start": "npm run dev",
  106. "test": "npm run lint && npm run test-unit",
  107. "build": "rollup -c utils/build/rollup.config.js",
  108. "build-module": "rollup -c utils/build/rollup.config.js --configOnlyModule",
  109. "dev": "concurrently --names \"ROLLUP,HTTP\" -c \"bgBlue.bold,bgGreen.bold\" \"rollup -c utils/build/rollup.config.js -w -m inline\" \"servez -p 8080 --ssl\"",
  110. "lint": "eslint src --ext js",
  111. "lint-examples": "eslint examples/jsm examples/*.html --ext js,html --ignore-pattern libs --ignore-pattern ifc",
  112. "lint-docs": "eslint docs --ext html",
  113. "lint-fix": "npm run lint -- --fix && npm run lint-examples -- --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. "@babel/core": "^7.20.5",
  144. "@babel/eslint-parser": "^7.19.1",
  145. "@babel/plugin-proposal-class-properties": "^7.18.6",
  146. "@babel/preset-env": "^7.20.2",
  147. "@rollup/plugin-babel": "^6.0.3",
  148. "@rollup/plugin-node-resolve": "^15.0.1",
  149. "chalk": "^5.1.2",
  150. "concurrently": "^7.6.0",
  151. "eslint": "^8.28.0",
  152. "eslint-config-mdcs": "^5.0.0",
  153. "eslint-plugin-compat": "^4.0.2",
  154. "eslint-plugin-html": "^7.1.0",
  155. "eslint-plugin-import": "^2.26.0",
  156. "rollup": "^2.79.1",
  157. "rollup-plugin-filesize": "^9.1.2",
  158. "rollup-plugin-terser": "^7.0.2",
  159. "rollup-plugin-visualizer": "^5.8.3",
  160. "servez": "^1.14.1"
  161. },
  162. "jspm": {
  163. "files": [
  164. "package.json",
  165. "LICENSE",
  166. "README.md",
  167. "build/three.js",
  168. "build/three.min.js",
  169. "build/three.module.js"
  170. ],
  171. "directories": {}
  172. }
  173. }