package.json 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  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. "quotes": [
  57. "error",
  58. "single"
  59. ],
  60. "prefer-const": [
  61. "error",
  62. {
  63. "destructuring": "any",
  64. "ignoreReadBeforeAssign": false
  65. }
  66. ]
  67. }
  68. },
  69. "scripts": {
  70. "start": "npm run dev",
  71. "test": "npm run lint && npm run test-unit",
  72. "build": "rollup -c utils/build/rollup.config.js",
  73. "build-module": "ONLY_MODULE=true rollup -c utils/build/rollup.config.js",
  74. "build-examples": "rollup -c utils/build/rollup.examples.config.js && echo '\nFormatting...' && eslint examples/js --ext js --ignore-pattern libs --ignore-pattern ifc --fix",
  75. "dev": "concurrently --names \"ROLLUP,HTTP\" -c \"bgBlue.bold,bgGreen.bold\" \"rollup -c utils/build/rollup.config.js -w -m inline\" \"servez -p 8080\"",
  76. "lint": "eslint src --ext js",
  77. "lint-examples": "eslint examples/js examples/jsm --ext js --ignore-pattern libs --ignore-pattern ifc",
  78. "lint-fix": "npm run lint -- --fix && npm run lint-examples -- --fix",
  79. "lint-docs": "eslint docs --ext html",
  80. "test-unit": "npm run unit --prefix test",
  81. "test-unit-examples": "npm run unit-examples --prefix test",
  82. "test-e2e": "node test/e2e/puppeteer.js",
  83. "test-e2e-cov": "node test/e2e/check-coverage.js",
  84. "test-treeshake": "rollup -c test/rollup.treeshake.config.js",
  85. "make-screenshot": "node test/e2e/puppeteer.js --make",
  86. "prepublishOnly": "node utils/prepublish.js"
  87. },
  88. "keywords": [
  89. "three",
  90. "three.js",
  91. "javascript",
  92. "3d",
  93. "virtual-reality",
  94. "augmented-reality",
  95. "webgl",
  96. "webgl2",
  97. "webaudio",
  98. "webgpu",
  99. "webxr",
  100. "canvas",
  101. "svg",
  102. "html5"
  103. ],
  104. "author": "mrdoob",
  105. "license": "MIT",
  106. "bugs": {
  107. "url": "https://github.com/mrdoob/three.js/issues"
  108. },
  109. "homepage": "https://threejs.org/",
  110. "devDependencies": {
  111. "@babel/core": "^7.15.5",
  112. "@babel/eslint-parser": "^7.15.7",
  113. "@babel/plugin-proposal-class-properties": "^7.14.5",
  114. "@babel/preset-env": "^7.15.6",
  115. "@rollup/plugin-babel": "^5.3.0",
  116. "@rollup/plugin-node-resolve": "^13.0.5",
  117. "chalk": "^4.1.2",
  118. "concurrently": "^6.2.2",
  119. "eslint": "^7.32.0",
  120. "eslint-config-mdcs": "^5.0.0",
  121. "eslint-plugin-html": "^6.2.0",
  122. "glob": "^7.2.0",
  123. "rollup": "^2.57.0",
  124. "rollup-plugin-filesize": "^9.1.1",
  125. "rollup-plugin-terser": "^7.0.2",
  126. "rollup-plugin-visualizer": "^5.5.2",
  127. "servez": "^1.12.0"
  128. },
  129. "jspm": {
  130. "files": [
  131. "package.json",
  132. "LICENSE",
  133. "README.md",
  134. "build/three.js",
  135. "build/three.min.js",
  136. "build/three.module.js"
  137. ],
  138. "directories": {}
  139. }
  140. }