package.json 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. {
  2. "name": "three",
  3. "version": "0.181.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 && servez -p 8080",
  52. "dev-ssl": "node utils/build/dev.js && servez -p 8080 --ssl",
  53. "preview": "concurrently --names \"ROLLUP,HTTP\" -c \"bgBlue.bold,bgGreen.bold\" \"rollup -c utils/build/rollup.config.js -w -m inline\" \"servez -p 8080\"",
  54. "preview-ssl": "concurrently --names \"ROLLUP,HTTPS\" -c \"bgBlue.bold,bgGreen.bold\" \"rollup -c utils/build/rollup.config.js -w -m inline\" \"servez -p 8080 --ssl\"",
  55. "lint-core": "eslint src",
  56. "lint-addons": "eslint examples/jsm --ext .js --ignore-pattern libs --ignore-pattern ifc",
  57. "lint-examples": "eslint examples --ext .html",
  58. "lint-docs": "eslint docs --ignore-pattern prettify.js",
  59. "lint-editor": "eslint editor --ignore-pattern libs",
  60. "lint-playground": "eslint playground --ignore-pattern libs",
  61. "lint-manual": "eslint manual --ignore-pattern 3rdparty --ignore-pattern prettify.js --ignore-pattern shapefile.js",
  62. "lint-test": "eslint test --ignore-pattern vendor",
  63. "lint-utils": "eslint utils --ignore-pattern prettify --ignore-pattern fuse",
  64. "lint": "npm run lint-core",
  65. "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",
  66. "test-unit": "qunit test/unit/three.source.unit.js",
  67. "test-unit-addons": "qunit test/unit/three.addons.unit.js",
  68. "test-e2e": "node test/e2e/puppeteer.js",
  69. "test-e2e-cov": "node test/e2e/check-coverage.js",
  70. "test-e2e-webgpu": "node test/e2e/puppeteer.js --webgpu",
  71. "test-treeshake": "rollup -c test/rollup.treeshake.config.js",
  72. "make-screenshot": "node test/e2e/puppeteer.js --make"
  73. },
  74. "keywords": [
  75. "three",
  76. "three.js",
  77. "javascript",
  78. "3d",
  79. "virtual-reality",
  80. "augmented-reality",
  81. "webgl",
  82. "webgl2",
  83. "webaudio",
  84. "webgpu",
  85. "webxr",
  86. "canvas",
  87. "svg",
  88. "html5"
  89. ],
  90. "author": "mrdoob",
  91. "license": "MIT",
  92. "bugs": {
  93. "url": "https://github.com/mrdoob/three.js/issues"
  94. },
  95. "homepage": "https://threejs.org/",
  96. "devDependencies": {
  97. "@rollup/plugin-node-resolve": "^16.0.0",
  98. "@rollup/plugin-terser": "^0.4.0",
  99. "concurrently": "^9.0.0",
  100. "eslint": "^8.37.0",
  101. "eslint-config-mdcs": "^5.0.0",
  102. "eslint-plugin-compat": "^6.0.0",
  103. "eslint-plugin-html": "^8.0.0",
  104. "eslint-plugin-import": "^2.27.5",
  105. "jimp": "^1.6.0",
  106. "jsdoc": "^4.0.5",
  107. "magic-string": "^0.30.0",
  108. "pixelmatch": "^7.0.0",
  109. "puppeteer": "^24.25.0",
  110. "qunit": "^2.19.4",
  111. "rollup": "^4.6.0",
  112. "rollup-plugin-filesize": "^10.0.0",
  113. "servez": "^2.2.4"
  114. },
  115. "overrides": {
  116. "jpeg-js": "^0.4.4"
  117. },
  118. "jspm": {
  119. "files": [
  120. "package.json",
  121. "LICENSE",
  122. "README.md",
  123. "build/three.js",
  124. "build/three.min.js",
  125. "build/three.module.js"
  126. ],
  127. "directories": {}
  128. }
  129. }
粤ICP备19079148号