package.json 3.9 KB

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