package.json 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. {
  2. "name": "three",
  3. "version": "0.184.0",
  4. "description": "JavaScript 3D library",
  5. "type": "module",
  6. "main": "./build/three.cjs",
  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. "./addons": "./examples/jsm/Addons.js",
  16. "./addons/*": "./examples/jsm/*",
  17. "./src/*": "./src/*",
  18. "./webgpu": "./build/three.webgpu.js",
  19. "./tsl": "./build/three.tsl.js"
  20. },
  21. "repository": {
  22. "type": "git",
  23. "url": "https://github.com/mrdoob/three.js"
  24. },
  25. "sideEffects": [
  26. "./src/nodes/**/*"
  27. ],
  28. "files": [
  29. "build",
  30. "examples/jsm",
  31. "LICENSE",
  32. "package.json",
  33. "README.md",
  34. "src"
  35. ],
  36. "directories": {
  37. "doc": "docs",
  38. "example": "examples",
  39. "test": "test"
  40. },
  41. "browserslist": [
  42. "> 1%, not dead, not ie 11, not op_mini all"
  43. ],
  44. "scripts": {
  45. "start": "npm run dev",
  46. "test": "npm run lint && npm run test-unit && npm run test-unit-addons",
  47. "build": "rollup -c utils/build/rollup.config.js",
  48. "build-docs": "jsdoc -c utils/docs/jsdoc.config.json && npm run build-llms",
  49. "build-llms": "node utils/llms/build.js",
  50. "build-module": "rollup -c utils/build/rollup.config.js --configOnlyModule",
  51. "dev": "node utils/build/dev.js && node utils/server.js -p 8080",
  52. "preview": "node utils/build/preview.js",
  53. "lint-core": "eslint src",
  54. "lint-addons": "eslint examples/jsm",
  55. "lint-examples": "eslint examples",
  56. "lint-editor": "eslint editor",
  57. "lint-manual": "eslint manual",
  58. "lint-test": "eslint test",
  59. "lint-utils": "eslint utils",
  60. "lint": "npm run lint-core",
  61. "lint-fix": "npm run lint-core -- --fix && npm run lint-addons -- --fix && npm run lint-examples -- --fix && npm run lint-editor -- --fix && npm run lint-manual -- --fix && npm run lint-test -- --fix && npm run lint-utils -- --fix",
  62. "test-unit": "node test/unit/puppeteer.unit.js --testPage=UnitTests.html --mode=headless",
  63. "test-unit-headful": "node test/unit/puppeteer.unit.js --testPage=UnitTests.html --mode=headful",
  64. "test-unit-addons": "node test/unit/puppeteer.unit.js --testPage=UnitTestsAddons.html --mode=headless",
  65. "test-unit-addons-headful": "node test/unit/puppeteer.unit.js --testPage=UnitTestsAddons.html --mode=headful",
  66. "test-e2e": "node test/e2e/puppeteer.js",
  67. "test-e2e-cov": "node test/e2e/check-coverage.js",
  68. "test-e2e-webgpu": "node test/e2e/puppeteer.js --webgpu",
  69. "test-treeshake": "rollup -c test/rollup.treeshake.config.js",
  70. "make-screenshot": "node test/e2e/puppeteer.js --make"
  71. },
  72. "keywords": [
  73. "three",
  74. "three.js",
  75. "javascript",
  76. "3d",
  77. "virtual-reality",
  78. "augmented-reality",
  79. "webgl",
  80. "webgl2",
  81. "webaudio",
  82. "webgpu",
  83. "webxr",
  84. "canvas",
  85. "svg",
  86. "html5"
  87. ],
  88. "author": "mrdoob",
  89. "license": "MIT",
  90. "bugs": {
  91. "url": "https://github.com/mrdoob/three.js/issues"
  92. },
  93. "homepage": "https://threejs.org/",
  94. "devDependencies": {
  95. "@eslint/js": "^9.0.0",
  96. "@rollup/plugin-node-resolve": "^16.0.0",
  97. "@rollup/plugin-terser": "^1.0.0",
  98. "eslint": "^9.0.0",
  99. "eslint-config-mdcs": "^5.0.0",
  100. "eslint-plugin-compat": "^7.0.0",
  101. "eslint-plugin-html": "^8.1.3",
  102. "eslint-plugin-jsdoc": "^63.0.0",
  103. "globals": "^17.0.0",
  104. "jpeg-js": "^0.4.4",
  105. "jsdoc": "^4.0.5",
  106. "magic-string": "^0.30.0",
  107. "pngjs": "^7.0.0",
  108. "puppeteer": "^25.0.0",
  109. "rollup": "^4.6.0",
  110. "turndown": "^7.2.2"
  111. },
  112. "jspm": {
  113. "files": [
  114. "package.json",
  115. "LICENSE",
  116. "README.md",
  117. "build/three.js",
  118. "build/three.min.js",
  119. "build/three.module.js"
  120. ],
  121. "directories": {}
  122. }
  123. }
粤ICP备19079148号