package.json 3.4 KB

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