package.json 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. {
  2. "name": "three",
  3. "version": "0.182.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. "examples/fonts",
  32. "LICENSE",
  33. "package.json",
  34. "README.md",
  35. "src"
  36. ],
  37. "directories": {
  38. "doc": "docs",
  39. "example": "examples",
  40. "test": "test"
  41. },
  42. "browserslist": [
  43. "> 1%, not dead, not ie 11, not op_mini all"
  44. ],
  45. "scripts": {
  46. "start": "npm run dev",
  47. "test": "npm run lint && npm run test-unit && npm run test-unit-addons",
  48. "build": "rollup -c utils/build/rollup.config.js",
  49. "build-module": "rollup -c utils/build/rollup.config.js --configOnlyModule",
  50. "build-docs": "jsdoc -c utils/docs/jsdoc.config.json",
  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-playground": "eslint playground",
  58. "lint-manual": "eslint manual",
  59. "lint-test": "eslint test",
  60. "lint-utils": "eslint utils",
  61. "lint": "npm run lint-core",
  62. "lint-fix": "npm run lint-core -- --fix && npm run lint-addons -- --fix && npm run lint-examples -- --fix && npm run lint-docs -- --fix && npm run lint-editor -- --fix && npm run lint-playground -- --fix && npm run lint-manual -- --fix && npm run lint-test -- --fix && npm run lint-utils -- --fix",
  63. "test-unit": "qunit test/unit/three.source.unit.js",
  64. "test-unit-addons": "qunit test/unit/three.addons.unit.js",
  65. "test-e2e": "node test/e2e/puppeteer.js",
  66. "test-e2e-cov": "node test/e2e/check-coverage.js",
  67. "test-e2e-webgpu": "node test/e2e/puppeteer.js --webgpu",
  68. "test-treeshake": "rollup -c test/rollup.treeshake.config.js",
  69. "make-screenshot": "node test/e2e/puppeteer.js --make"
  70. },
  71. "keywords": [
  72. "three",
  73. "three.js",
  74. "javascript",
  75. "3d",
  76. "virtual-reality",
  77. "augmented-reality",
  78. "webgl",
  79. "webgl2",
  80. "webaudio",
  81. "webgpu",
  82. "webxr",
  83. "canvas",
  84. "svg",
  85. "html5"
  86. ],
  87. "author": "mrdoob",
  88. "license": "MIT",
  89. "bugs": {
  90. "url": "https://github.com/mrdoob/three.js/issues"
  91. },
  92. "homepage": "https://threejs.org/",
  93. "devDependencies": {
  94. "@eslint/js": "^9.0.0",
  95. "@rollup/plugin-node-resolve": "^16.0.0",
  96. "@rollup/plugin-terser": "^0.4.0",
  97. "eslint": "^9.0.0",
  98. "eslint-config-mdcs": "^5.0.0",
  99. "eslint-plugin-compat": "^6.0.0",
  100. "eslint-plugin-html": "^8.1.3",
  101. "eslint-plugin-jsdoc": "^61.4.1",
  102. "globals": "^17.0.0",
  103. "jpeg-js": "^0.4.4",
  104. "jsdoc": "^4.0.5",
  105. "pngjs": "^7.0.0",
  106. "magic-string": "^0.30.0",
  107. "puppeteer": "^24.25.0",
  108. "qunit": "^2.19.4",
  109. "rollup": "^4.6.0"
  110. },
  111. "jspm": {
  112. "files": [
  113. "package.json",
  114. "LICENSE",
  115. "README.md",
  116. "build/three.js",
  117. "build/three.min.js",
  118. "build/three.module.js"
  119. ],
  120. "directories": {}
  121. }
  122. }
粤ICP备19079148号