package.json 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. {
  2. "name": "three",
  3. "version": "0.122.0",
  4. "description": "JavaScript 3D library",
  5. "main": "build/three.js",
  6. "module": "build/three.module.js",
  7. "types": "src/Three.d.ts",
  8. "repository": {
  9. "type": "git",
  10. "url": "https://github.com/mrdoob/three.js"
  11. },
  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. "parser": "@typescript-eslint/parser",
  31. "extends": "mdcs",
  32. "plugins": [
  33. "html",
  34. "@typescript-eslint"
  35. ],
  36. "rules": {
  37. "@typescript-eslint/no-unused-vars": [
  38. "error"
  39. ],
  40. "@typescript-eslint/indent": [
  41. "error",
  42. "tab",
  43. {
  44. "SwitchCase": 1
  45. }
  46. ],
  47. "prefer-const": [
  48. "error",
  49. {
  50. "destructuring": "any",
  51. "ignoreReadBeforeAssign": false
  52. }
  53. ]
  54. }
  55. },
  56. "scripts": {
  57. "test": "npm run test-lint && npm run test-unit",
  58. "build": "rollup -c utils/build/rollup.config.js",
  59. "lint-fix": "eslint src --ext js --ext ts --fix && eslint examples/js/ --ext js --ext ts --ignore-pattern libs --fix",
  60. "lint-docs": "eslint docs --ext html",
  61. "lint-examples": "eslint examples/jsm --ext js --ext ts --ignore-pattern libs && tsc -p utils/build/tsconfig-examples.lint.json",
  62. "test-lint": "eslint src --ext js --ext ts && tsc -p utils/build/tsconfig.lint.json",
  63. "test-unit": "npm run unit --prefix test",
  64. "test-e2e": "node test/e2e/puppeteer.js",
  65. "test-e2e-cov": "node test/e2e/check-coverage.js",
  66. "make-screenshot": "node test/e2e/puppeteer.js --make"
  67. },
  68. "keywords": [
  69. "three",
  70. "three.js",
  71. "javascript",
  72. "3d",
  73. "virtual-reality",
  74. "augmented-reality",
  75. "webgl",
  76. "webgl2",
  77. "webaudio",
  78. "webxr",
  79. "canvas",
  80. "svg",
  81. "html5"
  82. ],
  83. "author": "mrdoob",
  84. "license": "MIT",
  85. "bugs": {
  86. "url": "https://github.com/mrdoob/three.js/issues"
  87. },
  88. "homepage": "https://threejs.org/",
  89. "devDependencies": {
  90. "@babel/core": "^7.12.3",
  91. "@babel/plugin-proposal-class-properties": "^7.12.1",
  92. "@babel/preset-env": "^7.12.1",
  93. "@rollup/plugin-babel": "^5.2.1",
  94. "@typescript-eslint/eslint-plugin": "^4.6.0",
  95. "@typescript-eslint/parser": "^4.6.0",
  96. "eslint": "^7.12.1",
  97. "eslint-config-mdcs": "^5.0.0",
  98. "eslint-plugin-html": "^6.0.3",
  99. "rollup": "^2.32.1",
  100. "rollup-plugin-terser": "^7.0.2",
  101. "typescript": "^4.0.5"
  102. },
  103. "jspm": {
  104. "files": [
  105. "package.json",
  106. "LICENSE",
  107. "README.md",
  108. "build/three.js",
  109. "build/three.min.js",
  110. "build/three.module.js"
  111. ],
  112. "directories": {}
  113. }
  114. }
粤ICP备19079148号