package.json 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. {
  2. "name": "three",
  3. "version": "0.128.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. "parser": "@babel/eslint-parser",
  33. "parserOptions": {
  34. "babelOptions": {
  35. "configFile": "./utils/build/.babelrc.json"
  36. }
  37. },
  38. "plugins": [
  39. "html"
  40. ],
  41. "globals": {
  42. "potpack": true,
  43. "fflate": true,
  44. "ZSTDDecoder": true,
  45. "bodymovin": true
  46. },
  47. "rules": {
  48. "quotes": [
  49. "error",
  50. "single"
  51. ],
  52. "prefer-const": [
  53. "error",
  54. {
  55. "destructuring": "any",
  56. "ignoreReadBeforeAssign": false
  57. }
  58. ]
  59. }
  60. },
  61. "scripts": {
  62. "start": "npm run dev",
  63. "test": "npm run lint && npm run test-unit",
  64. "build": "rollup -c utils/build/rollup.config.js",
  65. "build-examples": "rollup -c utils/build/rollup.examples.config.js && echo '\nFormatting...' && eslint examples/js --ext js --ignore-pattern libs --ignore-pattern ifc --fix",
  66. "dev": "concurrently --names \"ROLLUP,HTTP\" -c \"bgBlue.bold,bgGreen.bold\" \"rollup -c utils/build/rollup.config.js -w -m inline\" \"servez -p 8080\"",
  67. "lint": "eslint src --ext js",
  68. "lint-examples": "eslint examples/js examples/jsm --ext js --ignore-pattern libs --ignore-pattern ifc",
  69. "lint-fix": "npm run lint -- --fix && npm run lint-examples -- --fix",
  70. "lint-docs": "eslint docs --ext html",
  71. "test-unit": "npm run unit --prefix test",
  72. "test-unit-examples": "npm run unit-examples --prefix test",
  73. "test-e2e": "node test/e2e/puppeteer.js",
  74. "test-e2e-cov": "node test/e2e/check-coverage.js",
  75. "test-treeshake": "rollup -c test/rollup.treeshake.config.js",
  76. "make-screenshot": "node test/e2e/puppeteer.js --make",
  77. "prepublishOnly": "node utils/prepublish.js"
  78. },
  79. "keywords": [
  80. "three",
  81. "three.js",
  82. "javascript",
  83. "3d",
  84. "virtual-reality",
  85. "augmented-reality",
  86. "webgl",
  87. "webgl2",
  88. "webaudio",
  89. "webxr",
  90. "canvas",
  91. "svg",
  92. "html5"
  93. ],
  94. "author": "mrdoob",
  95. "license": "MIT",
  96. "bugs": {
  97. "url": "https://github.com/mrdoob/three.js/issues"
  98. },
  99. "homepage": "https://threejs.org/",
  100. "devDependencies": {
  101. "@babel/core": "^7.13.15",
  102. "@babel/eslint-parser": "^7.13.14",
  103. "@babel/plugin-proposal-class-properties": "^7.13.0",
  104. "@babel/preset-env": "^7.13.15",
  105. "@rollup/plugin-babel": "^5.3.0",
  106. "@rollup/plugin-node-resolve": "^11.2.1",
  107. "chalk": "^4.1.0",
  108. "concurrently": "^6.0.2",
  109. "eslint": "^7.24.0",
  110. "eslint-config-mdcs": "^5.0.0",
  111. "eslint-plugin-html": "^6.1.2",
  112. "glob": "^7.1.6",
  113. "rollup": "^2.45.2",
  114. "rollup-plugin-filesize": "^9.1.1",
  115. "rollup-plugin-terser": "^7.0.2",
  116. "rollup-plugin-visualizer": "^5.3.6",
  117. "servez": "^1.11.0"
  118. },
  119. "jspm": {
  120. "files": [
  121. "package.json",
  122. "LICENSE",
  123. "README.md",
  124. "build/three.js",
  125. "build/three.min.js",
  126. "build/three.module.js"
  127. ],
  128. "directories": {}
  129. }
  130. }