package.json 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  1. {
  2. "name": "three",
  3. "version": "0.136.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.js"
  12. },
  13. "./examples/jsm/*": "./examples/jsm/*.js",
  14. "./src/*": "./src/*.js"
  15. },
  16. "repository": {
  17. "type": "git",
  18. "url": "https://github.com/mrdoob/three.js"
  19. },
  20. "sideEffects": false,
  21. "files": [
  22. "build/three.js",
  23. "build/three.min.js",
  24. "build/three.module.js",
  25. "examples/js",
  26. "examples/jsm",
  27. "examples/fonts",
  28. "LICENSE",
  29. "package.json",
  30. "README.md",
  31. "src"
  32. ],
  33. "directories": {
  34. "doc": "docs",
  35. "example": "examples",
  36. "test": "test"
  37. },
  38. "eslintConfig": {
  39. "root": true,
  40. "extends": "mdcs",
  41. "parser": "@babel/eslint-parser",
  42. "parserOptions": {
  43. "babelOptions": {
  44. "configFile": "./utils/build/.babelrc.json"
  45. }
  46. },
  47. "plugins": [
  48. "html"
  49. ],
  50. "globals": {
  51. "__THREE_DEVTOOLS__": "readonly",
  52. "WebGL2ComputeRenderingContext": "readonly",
  53. "potpack": "readonly",
  54. "fflate": "readonly",
  55. "bodymovin": "readonly",
  56. "OIMO": "readonly",
  57. "Stats": "readonly",
  58. "XRWebGLBinding": "readonly",
  59. "XRWebGLLayer": "readonly",
  60. "GPUShaderStage": "readonly",
  61. "GPUBufferUsage": "readonly",
  62. "GPUTextureUsage": "readonly",
  63. "QUnit": "readonly"
  64. },
  65. "rules": {
  66. "no-throw-literal": [
  67. "error"
  68. ],
  69. "quotes": [
  70. "error",
  71. "single"
  72. ],
  73. "prefer-const": [
  74. "error",
  75. {
  76. "destructuring": "any",
  77. "ignoreReadBeforeAssign": false
  78. }
  79. ]
  80. }
  81. },
  82. "scripts": {
  83. "start": "npm run dev",
  84. "test": "npm run lint && npm run test-unit",
  85. "build": "rollup -c utils/build/rollup.config.js",
  86. "build-module": "ONLY_MODULE=true rollup -c utils/build/rollup.config.js",
  87. "build-examples": "rollup -c utils/build/rollup.examples.config.js && echo '\nFormatting...' && eslint examples/js --ext js --ignore-pattern libs --ignore-pattern ifc --fix",
  88. "dev": "concurrently --names \"ROLLUP,HTTP\" -c \"bgBlue.bold,bgGreen.bold\" \"rollup -c utils/build/rollup.config.js -w -m inline\" \"servez -p 8080\"",
  89. "lint": "eslint src --ext js",
  90. "lint-examples": "eslint examples/js examples/jsm --ext js --ignore-pattern libs --ignore-pattern ifc",
  91. "lint-fix": "npm run lint -- --fix && npm run lint-examples -- --fix",
  92. "lint-docs": "eslint docs --ext html",
  93. "test-unit": "npm run unit --prefix test",
  94. "test-unit-examples": "npm run unit-examples --prefix test",
  95. "test-e2e": "node test/e2e/puppeteer.js",
  96. "test-e2e-cov": "node test/e2e/check-coverage.js",
  97. "test-treeshake": "rollup -c test/rollup.treeshake.config.js",
  98. "make-screenshot": "node test/e2e/puppeteer.js --make"
  99. },
  100. "keywords": [
  101. "three",
  102. "three.js",
  103. "javascript",
  104. "3d",
  105. "virtual-reality",
  106. "augmented-reality",
  107. "webgl",
  108. "webgl2",
  109. "webaudio",
  110. "webgpu",
  111. "webxr",
  112. "canvas",
  113. "svg",
  114. "html5"
  115. ],
  116. "author": "mrdoob",
  117. "license": "MIT",
  118. "bugs": {
  119. "url": "https://github.com/mrdoob/three.js/issues"
  120. },
  121. "homepage": "https://threejs.org/",
  122. "devDependencies": {
  123. "@babel/core": "^7.15.5",
  124. "@babel/eslint-parser": "^7.15.7",
  125. "@babel/plugin-proposal-class-properties": "^7.14.5",
  126. "@babel/preset-env": "^7.15.6",
  127. "@rollup/plugin-babel": "^5.3.0",
  128. "@rollup/plugin-node-resolve": "^13.0.5",
  129. "chalk": "^4.1.2",
  130. "concurrently": "^6.2.2",
  131. "eslint": "^7.32.0",
  132. "eslint-config-mdcs": "^5.0.0",
  133. "eslint-plugin-html": "^6.2.0",
  134. "rollup": "^2.57.0",
  135. "rollup-plugin-filesize": "^9.1.1",
  136. "rollup-plugin-terser": "^7.0.2",
  137. "rollup-plugin-visualizer": "^5.5.2",
  138. "servez": "^1.12.0"
  139. },
  140. "jspm": {
  141. "files": [
  142. "package.json",
  143. "LICENSE",
  144. "README.md",
  145. "build/three.js",
  146. "build/three.min.js",
  147. "build/three.module.js"
  148. ],
  149. "directories": {}
  150. }
  151. }