package.json 3.8 KB

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