package.json 3.5 KB

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