package.json 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  1. {
  2. "name": "three",
  3. "version": "0.137.1",
  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/jsm/*": "./examples/jsm/*",
  14. "./src/*": "./src/*"
  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.cjs",
  24. "build/three.min.js",
  25. "build/three.module.js",
  26. "examples/js",
  27. "examples/jsm",
  28. "examples/fonts",
  29. "LICENSE",
  30. "package.json",
  31. "README.md",
  32. "src"
  33. ],
  34. "directories": {
  35. "doc": "docs",
  36. "example": "examples",
  37. "test": "test"
  38. },
  39. "eslintConfig": {
  40. "root": true,
  41. "extends": "mdcs",
  42. "parser": "@babel/eslint-parser",
  43. "parserOptions": {
  44. "babelOptions": {
  45. "configFile": "./utils/build/.babelrc.json"
  46. }
  47. },
  48. "plugins": [
  49. "html"
  50. ],
  51. "globals": {
  52. "__THREE_DEVTOOLS__": "readonly",
  53. "WebGL2ComputeRenderingContext": "readonly",
  54. "potpack": "readonly",
  55. "fflate": "readonly",
  56. "bodymovin": "readonly",
  57. "OIMO": "readonly",
  58. "Stats": "readonly",
  59. "XRWebGLBinding": "readonly",
  60. "XRWebGLLayer": "readonly",
  61. "GPUShaderStage": "readonly",
  62. "GPUBufferUsage": "readonly",
  63. "GPUTextureUsage": "readonly",
  64. "QUnit": "readonly"
  65. },
  66. "rules": {
  67. "no-throw-literal": [
  68. "error"
  69. ],
  70. "quotes": [
  71. "error",
  72. "single"
  73. ],
  74. "prefer-const": [
  75. "error",
  76. {
  77. "destructuring": "any",
  78. "ignoreReadBeforeAssign": false
  79. }
  80. ]
  81. }
  82. },
  83. "scripts": {
  84. "start": "npm run dev",
  85. "test": "npm run lint && npm run test-unit",
  86. "build": "rollup -c utils/build/rollup.config.js",
  87. "build-module": "ONLY_MODULE=true rollup -c utils/build/rollup.config.js",
  88. "build-examples": "rollup -c utils/build/rollup.examples.config.js && echo '\nFormatting...' && eslint examples/js --ext js --ignore-pattern libs --ignore-pattern ifc --fix",
  89. "dev": "concurrently --names \"ROLLUP,HTTP\" -c \"bgBlue.bold,bgGreen.bold\" \"rollup -c utils/build/rollup.config.js -w -m inline\" \"servez -p 8080\"",
  90. "lint": "eslint src --ext js",
  91. "lint-examples": "eslint examples/js examples/jsm --ext js --ignore-pattern libs --ignore-pattern ifc",
  92. "lint-fix": "npm run lint -- --fix && npm run lint-examples -- --fix",
  93. "lint-docs": "eslint docs --ext html",
  94. "test-unit": "npm run unit --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. }