package.json 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. {
  2. "name": "three",
  3. "version": "0.127.0",
  4. "description": "JavaScript 3D library",
  5. "main": "build/three.js",
  6. "module": "build/three.module.js",
  7. "repository": {
  8. "type": "git",
  9. "url": "https://github.com/mrdoob/three.js"
  10. },
  11. "sideEffects": false,
  12. "files": [
  13. "build/three.js",
  14. "build/three.min.js",
  15. "build/three.module.js",
  16. "examples/js",
  17. "examples/jsm",
  18. "examples/fonts",
  19. "LICENSE",
  20. "package.json",
  21. "README.md",
  22. "src"
  23. ],
  24. "directories": {
  25. "doc": "docs",
  26. "example": "examples",
  27. "test": "test"
  28. },
  29. "eslintConfig": {
  30. "root": true,
  31. "extends": "mdcs",
  32. "plugins": [
  33. "html"
  34. ],
  35. "globals": {
  36. "potpack": true,
  37. "fflate": true,
  38. "ZSTDDecoder": true,
  39. "bodymovin": true
  40. },
  41. "rules": {
  42. "quotes": [
  43. "error",
  44. "single"
  45. ],
  46. "prefer-const": [
  47. "error",
  48. {
  49. "destructuring": "any",
  50. "ignoreReadBeforeAssign": false
  51. }
  52. ]
  53. }
  54. },
  55. "scripts": {
  56. "start": "npm run dev",
  57. "test": "npm run lint && npm run test-unit",
  58. "build": "rollup -c utils/build/rollup.config.js",
  59. "build-examples": "rollup -c utils/build/rollup.examples.config.js && echo '\nFormatting...' && eslint examples/js --ext js --ignore-pattern libs --ignore-pattern ifc --fix",
  60. "dev": "concurrently --names \"ROLLUP,HTTP\" -c \"bgBlue.bold,bgGreen.bold\" \"rollup -c utils/build/rollup.config.js -w -m inline\" \"servez -p 8080\"",
  61. "lint": "eslint src --ext js",
  62. "lint-examples": "eslint examples/js examples/jsm --ext js --ignore-pattern libs --ignore-pattern ifc",
  63. "lint-fix": "npm run lint -- --fix && npm run lint-examples -- --fix",
  64. "lint-docs": "eslint docs --ext html",
  65. "test-unit": "npm run unit --prefix test",
  66. "test-unit-examples": "npm run unit-examples --prefix test",
  67. "test-e2e": "node test/e2e/puppeteer.js",
  68. "test-e2e-cov": "node test/e2e/check-coverage.js",
  69. "test-treeshake": "rollup -c test/rollup.treeshake.config.js",
  70. "make-screenshot": "node test/e2e/puppeteer.js --make"
  71. },
  72. "keywords": [
  73. "three",
  74. "three.js",
  75. "javascript",
  76. "3d",
  77. "virtual-reality",
  78. "augmented-reality",
  79. "webgl",
  80. "webgl2",
  81. "webaudio",
  82. "webxr",
  83. "canvas",
  84. "svg",
  85. "html5"
  86. ],
  87. "author": "mrdoob",
  88. "license": "MIT",
  89. "bugs": {
  90. "url": "https://github.com/mrdoob/three.js/issues"
  91. },
  92. "homepage": "https://threejs.org/",
  93. "devDependencies": {
  94. "@babel/core": "^7.13.15",
  95. "@babel/plugin-proposal-class-properties": "^7.13.0",
  96. "@babel/preset-env": "^7.13.15",
  97. "@rollup/plugin-babel": "^5.3.0",
  98. "@rollup/plugin-node-resolve": "^11.2.1",
  99. "chalk": "^4.1.0",
  100. "concurrently": "^6.0.2",
  101. "eslint": "^7.24.0",
  102. "eslint-config-mdcs": "^5.0.0",
  103. "eslint-plugin-html": "^6.1.2",
  104. "glob": "^7.1.6",
  105. "rollup": "^2.45.2",
  106. "rollup-plugin-filesize": "^9.1.1",
  107. "rollup-plugin-terser": "^7.0.2",
  108. "rollup-plugin-visualizer": "^5.3.6",
  109. "servez": "^1.11.0"
  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. }