package.json 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. {
  2. "name": "three",
  3. "version": "0.108.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. }
  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 src/Three.d.ts --noEmit",
  56. "test": "npm run build-test && qunit -r failonlyreporter test/unit/three.source.unit.js",
  57. "travis": "npm run lint && npm test"
  58. },
  59. "keywords": [
  60. "three",
  61. "three.js",
  62. "3d",
  63. "canvas",
  64. "svg",
  65. "webgl"
  66. ],
  67. "author": "mrdoob",
  68. "license": "MIT",
  69. "bugs": {
  70. "url": "https://github.com/mrdoob/three.js/issues"
  71. },
  72. "homepage": "https://threejs.org/",
  73. "devDependencies": {
  74. "@typescript-eslint/eslint-plugin": "^2.0.0",
  75. "@typescript-eslint/parser": "^2.0.0",
  76. "concurrently": "^4.1.2",
  77. "eslint": "^6.2.1",
  78. "eslint-config-mdcs": "^4.2.3",
  79. "eslint-plugin-html": "^6.0.0",
  80. "failonlyreporter": "^1.0.0",
  81. "google-closure-compiler": "20190729.0.0",
  82. "http-server": "^0.11.1",
  83. "qunit": "^2.9.2",
  84. "rollup": "^1.19.4",
  85. "typescript": "^3.5.3",
  86. "rollup-plugin-buble": "^0.19.8"
  87. },
  88. "jspm": {
  89. "files": [
  90. "package.json",
  91. "LICENSE",
  92. "README.md",
  93. "build/three.js",
  94. "build/three.min.js",
  95. "build/three.module.js"
  96. ],
  97. "directories": {}
  98. }
  99. }