package.json 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  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",
  49. "build-test": "rollup -c test/rollup.unit.config.js",
  50. "build-closure": "rollup -c && 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 rollup-examples.config.js",
  52. "dev": "concurrently --names \"ROLLUP,HTTP\" -c \"bgBlue.bold,bgGreen.bold\" \"rollup -c -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 -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. "webgl"
  64. ],
  65. "author": "mrdoob",
  66. "license": "MIT",
  67. "bugs": {
  68. "url": "https://github.com/mrdoob/three.js/issues"
  69. },
  70. "homepage": "https://threejs.org/",
  71. "devDependencies": {
  72. "@typescript-eslint/eslint-plugin": "^2.0.0",
  73. "@typescript-eslint/parser": "^2.0.0",
  74. "concurrently": "^4.1.2",
  75. "eslint": "^6.2.1",
  76. "eslint-config-mdcs": "^4.2.3",
  77. "eslint-plugin-html": "^6.0.0",
  78. "failonlyreporter": "^1.0.0",
  79. "google-closure-compiler": "20190729.0.0",
  80. "http-server": "^0.11.1",
  81. "qunit": "^2.9.2",
  82. "rollup": "^1.19.4",
  83. "typescript": "^3.5.3",
  84. "rollup-plugin-buble": "^0.19.8"
  85. },
  86. "jspm": {
  87. "files": [
  88. "package.json",
  89. "LICENSE",
  90. "README.md",
  91. "build/three.js",
  92. "build/three.min.js",
  93. "build/three.module.js"
  94. ],
  95. "directories": {}
  96. }
  97. }
粤ICP备19079148号