package.json 4.0 KB

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