package.json 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. {
  2. "name": "three",
  3. "version": "0.152.0",
  4. "description": "JavaScript 3D library",
  5. "type": "module",
  6. "main": "./build/three.js",
  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/*",
  16. "./src/*": "./src/*",
  17. "./nodes": "./examples/jsm/nodes/Nodes.js"
  18. },
  19. "repository": {
  20. "type": "git",
  21. "url": "https://github.com/mrdoob/three.js"
  22. },
  23. "sideEffects": false,
  24. "files": [
  25. "build/three.js",
  26. "build/three.cjs",
  27. "build/three.min.js",
  28. "build/three.module.js",
  29. "build/three.module.min.js",
  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",
  48. "build": "rollup -c utils/build/rollup.config.js",
  49. "build-module": "rollup -c utils/build/rollup.config.js --configOnlyModule",
  50. "dev": "concurrently --names \"ROLLUP,HTTP\" -c \"bgBlue.bold,bgGreen.bold\" \"rollup -c utils/build/rollup.config.js -w -m inline\" \"servez -p 8080 --ssl\"",
  51. "lint-core": "eslint src",
  52. "lint-addons": "eslint examples/jsm --ext .js --ignore-pattern libs --ignore-pattern ifc",
  53. "lint-examples": "eslint examples --ext .html",
  54. "lint-docs": "eslint docs --ignore-pattern prettify.js",
  55. "lint-editor": "eslint editor --ignore-pattern libs",
  56. "lint-playground": "eslint playground --ignore-pattern libs",
  57. "lint-manual": "eslint manual --ignore-pattern 3rdparty --ignore-pattern prettify.js --ignore-pattern shapefile.js",
  58. "lint-test": "eslint test --ignore-pattern vendor",
  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-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",
  62. "test-unit": "qunit -r failonlyreporter -f !-webonly test/unit/three.source.unit.js",
  63. "test-e2e": "node test/e2e/puppeteer.js",
  64. "test-e2e-cov": "node test/e2e/check-coverage.js",
  65. "test-treeshake": "rollup -c test/rollup.treeshake.config.js",
  66. "make-screenshot": "node test/e2e/puppeteer.js --make"
  67. },
  68. "keywords": [
  69. "three",
  70. "three.js",
  71. "javascript",
  72. "3d",
  73. "virtual-reality",
  74. "augmented-reality",
  75. "webgl",
  76. "webgl2",
  77. "webaudio",
  78. "webgpu",
  79. "webxr",
  80. "canvas",
  81. "svg",
  82. "html5"
  83. ],
  84. "author": "mrdoob",
  85. "license": "MIT",
  86. "bugs": {
  87. "url": "https://github.com/mrdoob/three.js/issues"
  88. },
  89. "homepage": "https://threejs.org/",
  90. "devDependencies": {
  91. "@rollup/plugin-node-resolve": "^15.0.1",
  92. "@rollup/plugin-terser": "^0.4.0",
  93. "chalk": "^5.2.0",
  94. "concurrently": "^8.0.1",
  95. "eslint": "^8.37.0",
  96. "eslint-config-mdcs": "^5.0.0",
  97. "eslint-plugin-compat": "^4.1.2",
  98. "eslint-plugin-html": "^7.1.0",
  99. "eslint-plugin-import": "^2.27.5",
  100. "failonlyreporter": "^1.0.0",
  101. "jimp": "^0.22.7",
  102. "pixelmatch": "^5.3.0",
  103. "puppeteer-core": "^19.8.1",
  104. "qunit": "^2.19.4",
  105. "rollup": "^3.20.2",
  106. "rollup-plugin-filesize": "^10.0.0",
  107. "rollup-plugin-visualizer": "^5.9.0",
  108. "servez": "^1.14.2"
  109. },
  110. "overrides": {
  111. "jpeg-js": "^0.4.4"
  112. },
  113. "jspm": {
  114. "files": [
  115. "package.json",
  116. "LICENSE",
  117. "README.md",
  118. "build/three.js",
  119. "build/three.min.js",
  120. "build/three.module.js"
  121. ],
  122. "directories": {}
  123. }
  124. }