package.json 4.4 KB

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