package.json 3.8 KB

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