package.json 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173
  1. {
  2. "name": "three",
  3. "version": "0.143.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. "./src/*": "./src/*"
  16. },
  17. "repository": {
  18. "type": "git",
  19. "url": "https://github.com/mrdoob/three.js"
  20. },
  21. "sideEffects": false,
  22. "files": [
  23. "build/three.js",
  24. "build/three.cjs",
  25. "build/three.min.js",
  26. "build/three.module.js",
  27. "examples/js",
  28. "examples/jsm",
  29. "examples/fonts",
  30. "LICENSE",
  31. "package.json",
  32. "README.md",
  33. "src"
  34. ],
  35. "directories": {
  36. "doc": "docs",
  37. "example": "examples",
  38. "test": "test"
  39. },
  40. "eslintConfig": {
  41. "root": true,
  42. "extends": [
  43. "mdcs",
  44. "plugin:compat/recommended"
  45. ],
  46. "parser": "@babel/eslint-parser",
  47. "parserOptions": {
  48. "babelOptions": {
  49. "configFile": "./utils/build/.babelrc.json"
  50. }
  51. },
  52. "plugins": [
  53. "html",
  54. "import"
  55. ],
  56. "settings": {
  57. "polyfills": [
  58. "WebGL2RenderingContext"
  59. ]
  60. },
  61. "globals": {
  62. "__THREE_DEVTOOLS__": "readonly",
  63. "WebGL2ComputeRenderingContext": "readonly",
  64. "potpack": "readonly",
  65. "fflate": "readonly",
  66. "bodymovin": "readonly",
  67. "OIMO": "readonly",
  68. "Stats": "readonly",
  69. "XRWebGLBinding": "readonly",
  70. "XRWebGLLayer": "readonly",
  71. "GPUShaderStage": "readonly",
  72. "GPUBufferUsage": "readonly",
  73. "GPUTextureUsage": "readonly",
  74. "QUnit": "readonly",
  75. "Ammo":"readonly",
  76. "XRRigidTransform":"readonly",
  77. "XRMediaBinding":"readonly"
  78. },
  79. "rules": {
  80. "no-throw-literal": [
  81. "error"
  82. ],
  83. "import/extensions": [
  84. "error",
  85. "always"
  86. ],
  87. "quotes": [
  88. "error",
  89. "single"
  90. ],
  91. "prefer-const": [
  92. "error",
  93. {
  94. "destructuring": "any",
  95. "ignoreReadBeforeAssign": false
  96. }
  97. ]
  98. }
  99. },
  100. "browserslist": [
  101. "> 1%, not dead, not ie 11, not op_mini all"
  102. ],
  103. "scripts": {
  104. "start": "npm run dev",
  105. "test": "npm run lint && npm run test-unit",
  106. "build": "rollup -c utils/build/rollup.config.js",
  107. "build-module": "ONLY_MODULE=true rollup -c utils/build/rollup.config.js",
  108. "build-examples": "rollup -c utils/build/rollup.examples.config.js && echo '\nFormatting...' && eslint examples/js --ext js --ignore-pattern libs --ignore-pattern ifc --fix",
  109. "dev": "concurrently --names \"ROLLUP,HTTP\" -c \"bgBlue.bold,bgGreen.bold\" \"rollup -c utils/build/rollup.config.js -w -m inline\" \"servez -p 8080\"",
  110. "lint": "eslint src --ext js",
  111. "lint-examples": "eslint examples/js 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.18.9",
  144. "@babel/eslint-parser": "^7.18.9",
  145. "@babel/plugin-proposal-class-properties": "^7.18.6",
  146. "@babel/preset-env": "^7.18.9",
  147. "@rollup/plugin-babel": "^5.3.1",
  148. "@rollup/plugin-node-resolve": "^13.3.0",
  149. "chalk": "^5.0.1",
  150. "concurrently": "^7.3.0",
  151. "eslint": "^8.20.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.77.2",
  157. "rollup-plugin-filesize": "^9.1.2",
  158. "rollup-plugin-terser": "^7.0.2",
  159. "rollup-plugin-visualizer": "^5.7.1",
  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. }