1
0

package.json 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. {
  2. "name": "three",
  3. "version": "0.168.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.webgpu.js"
  20. },
  21. "repository": {
  22. "type": "git",
  23. "url": "https://github.com/mrdoob/three.js"
  24. },
  25. "sideEffects": [ "./src/nodes/**/*" ],
  26. "files": [
  27. "build",
  28. "examples/jsm",
  29. "examples/fonts",
  30. "LICENSE",
  31. "package.json",
  32. "README.md",
  33. "src"
  34. ],
  35. "directories": {
  36. "doc": "docs",
  37. "example": "examples",
  38. "test": "test"
  39. },
  40. "browserslist": [
  41. "> 1%, not dead, not ie 11, not op_mini all"
  42. ],
  43. "scripts": {
  44. "start": "npm run dev",
  45. "test": "npm run lint && npm run test-unit && npm run test-unit-addons",
  46. "build": "rollup -c utils/build/rollup.config.js",
  47. "build-module": "rollup -c utils/build/rollup.config.js --configOnlyModule",
  48. "dev": "concurrently --names \"ROLLUP,HTTP\" -c \"bgBlue.bold,bgGreen.bold\" \"rollup -c utils/build/rollup.config.js -w -m inline\" \"servez -p 8080\"",
  49. "dev-ssl": "concurrently --names \"ROLLUP,HTTPS\" -c \"bgBlue.bold,bgGreen.bold\" \"rollup -c utils/build/rollup.config.js -w -m inline\" \"servez -p 8080 --ssl\"",
  50. "lint-core": "eslint src",
  51. "lint-addons": "eslint examples/jsm --ext .js --ignore-pattern libs --ignore-pattern ifc",
  52. "lint-examples": "eslint examples --ext .html",
  53. "lint-docs": "eslint docs --ignore-pattern prettify.js",
  54. "lint-editor": "eslint editor --ignore-pattern libs",
  55. "lint-playground": "eslint playground --ignore-pattern libs",
  56. "lint-manual": "eslint manual --ignore-pattern 3rdparty --ignore-pattern prettify.js --ignore-pattern shapefile.js",
  57. "lint-test": "eslint test --ignore-pattern vendor",
  58. "lint-utils": "eslint utils",
  59. "lint": "npm run lint-core",
  60. "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",
  61. "test-unit": "qunit -r failonlyreporter -f !-webonly test/unit/three.source.unit.js",
  62. "test-unit-addons": "qunit -r failonlyreporter -f !-webonly test/unit/three.addons.unit.js",
  63. "test-e2e": "node test/e2e/puppeteer.js",
  64. "test-e2e-cov": "node test/e2e/check-coverage.js",
  65. "test-e2e-webgpu": "node test/e2e/puppeteer.js --webgpu",
  66. "test-treeshake": "rollup -c test/rollup.treeshake.config.js",
  67. "test-circular-deps": "dpdm --no-warning --no-tree --exit-code circular:1 src/nodes/Nodes.js",
  68. "make-screenshot": "node test/e2e/puppeteer.js --make"
  69. },
  70. "keywords": [
  71. "three",
  72. "three.js",
  73. "javascript",
  74. "3d",
  75. "virtual-reality",
  76. "augmented-reality",
  77. "webgl",
  78. "webgl2",
  79. "webaudio",
  80. "webgpu",
  81. "webxr",
  82. "canvas",
  83. "svg",
  84. "html5"
  85. ],
  86. "author": "mrdoob",
  87. "license": "MIT",
  88. "bugs": {
  89. "url": "https://github.com/mrdoob/three.js/issues"
  90. },
  91. "homepage": "https://threejs.org/",
  92. "devDependencies": {
  93. "@rollup/plugin-node-resolve": "^15.0.1",
  94. "@rollup/plugin-terser": "^0.4.0",
  95. "chalk": "^5.2.0",
  96. "concurrently": "^9.0.0",
  97. "dpdm": "^3.14.0",
  98. "eslint": "^8.37.0",
  99. "eslint-config-mdcs": "^5.0.0",
  100. "eslint-plugin-compat": "^6.0.0",
  101. "eslint-plugin-html": "^8.0.0",
  102. "eslint-plugin-import": "^2.27.5",
  103. "failonlyreporter": "^1.0.0",
  104. "jimp": "^0.22.7",
  105. "magic-string": "^0.30.0",
  106. "pixelmatch": "^6.0.0",
  107. "puppeteer": "^22.0.0",
  108. "qunit": "^2.19.4",
  109. "rollup": "^4.6.0",
  110. "rollup-plugin-filesize": "^10.0.0",
  111. "rollup-plugin-visualizer": "^5.9.0",
  112. "servez": "^2.0.0"
  113. },
  114. "overrides": {
  115. "jpeg-js": "^0.4.4"
  116. },
  117. "jspm": {
  118. "files": [
  119. "package.json",
  120. "LICENSE",
  121. "README.md",
  122. "build/three.js",
  123. "build/three.min.js",
  124. "build/three.module.js"
  125. ],
  126. "directories": {}
  127. }
  128. }