package.json 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. {
  2. "name": "three",
  3. "version": "0.113.2",
  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. }
  46. },
  47. "scripts": {
  48. "build": "rollup -c utils/build/rollup.config.js",
  49. "build-test": "rollup -c test/rollup.unit.config.js",
  50. "build-closure": "rollup -c utils/build/rollup.config.js && 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",
  51. "build-examples": "rollup -c utils/build/rollup-examples.config.js",
  52. "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\"",
  53. "dev-test": "concurrently --names \"ROLLUP,ROLLUPTEST,HTTP\" -c \"bgBlue.bold,bgRed.bold,bgGreen.bold\" \"rollup -c utils/build/rollup.config.js -w -m inline\" \"rollup -c test/rollup.unit.config.js -w -m inline\" \"http-server -p 8080\"",
  54. "start": "npm run dev",
  55. "lint": "eslint src --ext js --ext ts && tsc -p utils/build/tsconfig.lint.json",
  56. "lint-examples": "eslint examples/jsm --ext js --ext ts --ignore-pattern libs && tsc -p utils/build/tsconfig-examples.lint.json",
  57. "test": "npm run build-test && qunit -r failonlyreporter test/unit/three.source.unit.js",
  58. "travis": "npm run lint && npm test"
  59. },
  60. "keywords": [
  61. "three",
  62. "three.js",
  63. "3d",
  64. "canvas",
  65. "svg",
  66. "webgl"
  67. ],
  68. "author": "mrdoob",
  69. "license": "MIT",
  70. "bugs": {
  71. "url": "https://github.com/mrdoob/three.js/issues"
  72. },
  73. "homepage": "https://threejs.org/",
  74. "devDependencies": {
  75. "@types/webgl2": "^0.0.5",
  76. "@typescript-eslint/eslint-plugin": "^2.15.0",
  77. "@typescript-eslint/parser": "^2.15.0",
  78. "concurrently": "^5.0.2",
  79. "eslint": "^6.8.0",
  80. "eslint-config-mdcs": "^4.2.3",
  81. "eslint-plugin-html": "^6.0.0",
  82. "failonlyreporter": "^1.0.0",
  83. "google-closure-compiler": "20200101.0.0",
  84. "http-server": "^0.12.0",
  85. "qunit": "^2.9.3",
  86. "rollup": "^1.28.0",
  87. "rollup-plugin-buble": "^0.19.8",
  88. "typescript": "^3.7.4"
  89. },
  90. "jspm": {
  91. "files": [
  92. "package.json",
  93. "LICENSE",
  94. "README.md",
  95. "build/three.js",
  96. "build/three.min.js",
  97. "build/three.module.js"
  98. ],
  99. "directories": {}
  100. }
  101. }