package.json 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. {
  2. "name": "three",
  3. "version": "0.107.0",
  4. "description": "JavaScript 3D library",
  5. "main": "build/three.js",
  6. "repository": "mrdoob/three.js",
  7. "jsnext:main": "build/three.module.js",
  8. "module": "build/three.module.js",
  9. "types": "src/Three.d.ts",
  10. "files": [
  11. "build/three.js",
  12. "build/three.min.js",
  13. "build/three.module.js",
  14. "examples/js",
  15. "examples/jsm",
  16. "examples/fonts",
  17. "LICENSE",
  18. "package.json",
  19. "README.md",
  20. "src"
  21. ],
  22. "directories": {
  23. "doc": "docs",
  24. "example": "examples",
  25. "test": "test"
  26. },
  27. "eslintConfig": {
  28. "parser": "@typescript-eslint/parser",
  29. "extends": "mdcs",
  30. "plugins": [
  31. "html",
  32. "@typescript-eslint"
  33. ],
  34. "rules": {
  35. "@typescript-eslint/no-unused-vars": 1,
  36. "@typescript-eslint/indent": [
  37. "error",
  38. "tab",
  39. {
  40. "SwitchCase": 1
  41. }
  42. ]
  43. }
  44. },
  45. "scripts": {
  46. "build": "rollup -c",
  47. "build-test": "rollup -c test/rollup.unit.config.js",
  48. "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",
  49. "build-examples": "rollup -c rollup-examples.config.js",
  50. "dev": "concurrently --names \"ROLLUP,HTTP\" -c \"bgBlue.bold,bgGreen.bold\" \"rollup -c -w -m inline\" \"http-server -c-1 -p 8080\"",
  51. "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\"",
  52. "start": "npm run dev",
  53. "lint": "eslint src --ext js --ext ts && tsc src/Three.d.ts --noEmit",
  54. "test": "npm run build-test && qunit -r failonlyreporter test/unit/three.source.unit.js",
  55. "travis": "npm run lint && npm test"
  56. },
  57. "keywords": [
  58. "three",
  59. "three.js",
  60. "3d",
  61. "webgl"
  62. ],
  63. "author": "mrdoob",
  64. "license": "MIT",
  65. "bugs": {
  66. "url": "https://github.com/mrdoob/three.js/issues"
  67. },
  68. "homepage": "https://threejs.org/",
  69. "devDependencies": {
  70. "@typescript-eslint/eslint-plugin": "^1.11.0",
  71. "@typescript-eslint/parser": "^1.11.0",
  72. "concurrently": "^4.1.1",
  73. "eslint": "^6.0.1",
  74. "eslint-config-mdcs": "^4.2.3",
  75. "eslint-plugin-html": "^6.0.0",
  76. "failonlyreporter": "^1.0.0",
  77. "google-closure-compiler": "20190618.0.0",
  78. "http-server": "^0.11.1",
  79. "qunit": "^2.9.2",
  80. "rollup": "^1.16.2",
  81. "typescript": "^3.5.2"
  82. },
  83. "jspm": {
  84. "files": [
  85. "package.json",
  86. "LICENSE",
  87. "README.md",
  88. "build/three.js",
  89. "build/three.min.js",
  90. "build/three.module.js"
  91. ],
  92. "directories": {}
  93. }
  94. }