package.json 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. {
  2. "name": "three",
  3. "version": "0.120.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": 1,
  38. "@typescript-eslint/indent": [
  39. "error",
  40. "tab",
  41. {
  42. "SwitchCase": 1
  43. }
  44. ],
  45. "prefer-const": [
  46. "error",
  47. {
  48. "destructuring": "any",
  49. "ignoreReadBeforeAssign": false
  50. }
  51. ]
  52. }
  53. },
  54. "scripts": {
  55. "start": "npm run dev",
  56. "test": "npm run test-lint && npm run test-unit",
  57. "build": "rollup -c utils/build/rollup.config.js",
  58. "build-closure": "npm run build && google-closure-compiler --warning_level=VERBOSE --jscomp_off=globalThis --jscomp_off=checkTypes --externs utils/build/externs.js --language_in=ECMASCRIPT5_STRICT --js build/three.js --js_output_file build/three.min.js",
  59. "dev": "concurrently --names \"ROLLUP,HTTP\" -c \"bgBlue.bold,bgGreen.bold\" \"rollup -c utils/build/rollup.config.js -w -m inline\" \"http-server -c-1 -p 8080\"",
  60. "dev-test": "concurrently --names \"ROLLUP,ROLLUPTEST,HTTP\" -c \"bgBlue.bold,bgRed.bold,bgGreen.bold\" \"rollup -c utils/build/rollup.config.js -w -m inline\" \"npm run dev --prefix test\" \"http-server -p 8080\"",
  61. "lint-fix": "eslint src --ext js --ext ts --fix && eslint examples/js/ --ext js --ext ts --ignore-pattern libs --fix",
  62. "lint-docs": "eslint docs --ext html",
  63. "lint-examples": "eslint examples/jsm --ext js --ext ts --ignore-pattern libs && tsc -p utils/build/tsconfig-examples.lint.json",
  64. "test-lint": "eslint src --ext js --ext ts && tsc -p utils/build/tsconfig.lint.json",
  65. "test-unit": "npm run unit --prefix test",
  66. "test-e2e": "node test/e2e/puppeteer.js",
  67. "test-e2e-cov": "node test/e2e/check-coverage.js",
  68. "make-screenshot": "node test/e2e/puppeteer.js --make"
  69. },
  70. "keywords": [
  71. "three",
  72. "three.js",
  73. "javascript",
  74. "3d",
  75. "virtual-reality",
  76. "augmented-reality",
  77. "webgl",
  78. "webgl2",
  79. "webaudio",
  80. "webxr",
  81. "canvas",
  82. "svg",
  83. "html5"
  84. ],
  85. "author": "mrdoob",
  86. "license": "MIT",
  87. "bugs": {
  88. "url": "https://github.com/mrdoob/three.js/issues"
  89. },
  90. "homepage": "https://threejs.org/",
  91. "devDependencies": {
  92. "@typescript-eslint/eslint-plugin": "^3.9.0",
  93. "@typescript-eslint/parser": "^3.9.0",
  94. "concurrently": "^5.3.0",
  95. "eslint": "^7.6.0",
  96. "eslint-config-mdcs": "^5.0.0",
  97. "eslint-plugin-html": "^6.0.3",
  98. "google-closure-compiler": "20200719.0.0",
  99. "http-server": "^0.12.3",
  100. "rollup": "^2.23.1",
  101. "rollup-plugin-buble": "^0.19.8",
  102. "typescript": "^3.9.7"
  103. },
  104. "jspm": {
  105. "files": [
  106. "package.json",
  107. "LICENSE",
  108. "README.md",
  109. "build/three.js",
  110. "build/three.min.js",
  111. "build/three.module.js"
  112. ],
  113. "directories": {}
  114. }
  115. }