package.json 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  1. {
  2. "name": "three",
  3. "version": "0.138.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. "globals": {
  57. "__THREE_DEVTOOLS__": "readonly",
  58. "WebGL2ComputeRenderingContext": "readonly",
  59. "potpack": "readonly",
  60. "fflate": "readonly",
  61. "bodymovin": "readonly",
  62. "OIMO": "readonly",
  63. "Stats": "readonly",
  64. "XRWebGLBinding": "readonly",
  65. "XRWebGLLayer": "readonly",
  66. "GPUShaderStage": "readonly",
  67. "GPUBufferUsage": "readonly",
  68. "GPUTextureUsage": "readonly",
  69. "QUnit": "readonly"
  70. },
  71. "rules": {
  72. "no-throw-literal": [
  73. "error"
  74. ],
  75. "import/extensions": [
  76. "error",
  77. "always"
  78. ],
  79. "quotes": [
  80. "error",
  81. "single"
  82. ],
  83. "prefer-const": [
  84. "error",
  85. {
  86. "destructuring": "any",
  87. "ignoreReadBeforeAssign": false
  88. }
  89. ]
  90. }
  91. },
  92. "browserslist": [
  93. "> 1%, not dead, not ie 11, not op_mini all"
  94. ],
  95. "scripts": {
  96. "start": "npm run dev",
  97. "test": "npm run lint && npm run test-unit",
  98. "build": "rollup -c utils/build/rollup.config.js",
  99. "build-module": "ONLY_MODULE=true rollup -c utils/build/rollup.config.js",
  100. "build-examples": "rollup -c utils/build/rollup.examples.config.js && echo '\nFormatting...' && eslint examples/js --ext js --ignore-pattern libs --ignore-pattern ifc --fix",
  101. "dev": "concurrently --names \"ROLLUP,HTTP\" -c \"bgBlue.bold,bgGreen.bold\" \"rollup -c utils/build/rollup.config.js -w -m inline\" \"servez -p 8080\"",
  102. "lint": "eslint src --ext js",
  103. "lint-examples": "eslint examples/js examples/jsm --ext js --ignore-pattern libs --ignore-pattern ifc",
  104. "lint-fix": "npm run lint -- --fix && npm run lint-examples -- --fix",
  105. "lint-docs": "eslint docs --ext html",
  106. "test-unit": "npm run unit --prefix test",
  107. "test-e2e": "node test/e2e/puppeteer.js",
  108. "test-e2e-cov": "node test/e2e/check-coverage.js",
  109. "test-treeshake": "rollup -c test/rollup.treeshake.config.js",
  110. "make-screenshot": "node test/e2e/puppeteer.js --make"
  111. },
  112. "keywords": [
  113. "three",
  114. "three.js",
  115. "javascript",
  116. "3d",
  117. "virtual-reality",
  118. "augmented-reality",
  119. "webgl",
  120. "webgl2",
  121. "webaudio",
  122. "webgpu",
  123. "webxr",
  124. "canvas",
  125. "svg",
  126. "html5"
  127. ],
  128. "author": "mrdoob",
  129. "license": "MIT",
  130. "bugs": {
  131. "url": "https://github.com/mrdoob/three.js/issues"
  132. },
  133. "homepage": "https://threejs.org/",
  134. "devDependencies": {
  135. "@babel/core": "^7.15.5",
  136. "@babel/eslint-parser": "^7.15.7",
  137. "@babel/plugin-proposal-class-properties": "^7.14.5",
  138. "@babel/preset-env": "^7.15.6",
  139. "@rollup/plugin-babel": "^5.3.0",
  140. "@rollup/plugin-node-resolve": "^13.0.5",
  141. "chalk": "^4.1.2",
  142. "concurrently": "^6.2.2",
  143. "eslint": "^7.32.0",
  144. "eslint-config-mdcs": "^5.0.0",
  145. "eslint-plugin-compat": "^4.0.2",
  146. "eslint-plugin-html": "^6.2.0",
  147. "eslint-plugin-import": "^2.25.4",
  148. "rollup": "^2.57.0",
  149. "rollup-plugin-filesize": "^9.1.1",
  150. "rollup-plugin-terser": "^7.0.2",
  151. "rollup-plugin-visualizer": "^5.5.2",
  152. "servez": "^1.12.0"
  153. },
  154. "jspm": {
  155. "files": [
  156. "package.json",
  157. "LICENSE",
  158. "README.md",
  159. "build/three.js",
  160. "build/three.min.js",
  161. "build/three.module.js"
  162. ],
  163. "directories": {}
  164. }
  165. }