package.json 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. {
  2. "name": "three",
  3. "version": "0.121.1",
  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": ["error"],
  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. "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\"",
  59. "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\"",
  60. "lint-fix": "eslint src --ext js --ext ts --fix && eslint examples/js/ --ext js --ext ts --ignore-pattern libs --fix",
  61. "lint-docs": "eslint docs --ext html",
  62. "lint-examples": "eslint examples/jsm --ext js --ext ts --ignore-pattern libs && tsc -p utils/build/tsconfig-examples.lint.json",
  63. "test-lint": "eslint src --ext js --ext ts && tsc -p utils/build/tsconfig.lint.json",
  64. "test-unit": "npm run unit --prefix test",
  65. "test-e2e": "node test/e2e/puppeteer.js",
  66. "test-e2e-cov": "node test/e2e/check-coverage.js",
  67. "make-screenshot": "node test/e2e/puppeteer.js --make"
  68. },
  69. "keywords": [
  70. "three",
  71. "three.js",
  72. "javascript",
  73. "3d",
  74. "virtual-reality",
  75. "augmented-reality",
  76. "webgl",
  77. "webgl2",
  78. "webaudio",
  79. "webxr",
  80. "canvas",
  81. "svg",
  82. "html5"
  83. ],
  84. "author": "mrdoob",
  85. "license": "MIT",
  86. "bugs": {
  87. "url": "https://github.com/mrdoob/three.js/issues"
  88. },
  89. "homepage": "https://threejs.org/",
  90. "devDependencies": {
  91. "@babel/core": "^7.11.6",
  92. "@babel/plugin-proposal-class-properties": "^7.10.4",
  93. "@babel/preset-env": "^7.11.5",
  94. "@rollup/plugin-babel": "^5.2.1",
  95. "@typescript-eslint/eslint-plugin": "^4.0.0",
  96. "@typescript-eslint/parser": "^4.0.0",
  97. "concurrently": "^5.3.0",
  98. "eslint": "^7.6.0",
  99. "eslint-config-mdcs": "^5.0.0",
  100. "eslint-plugin-html": "^6.0.3",
  101. "http-server": "^0.12.3",
  102. "rollup": "^2.28.1",
  103. "rollup-plugin-terser": "^7.0.2",
  104. "typescript": "^4.0.2"
  105. },
  106. "jspm": {
  107. "files": [
  108. "package.json",
  109. "LICENSE",
  110. "README.md",
  111. "build/three.js",
  112. "build/three.min.js",
  113. "build/three.module.js"
  114. ],
  115. "directories": {}
  116. }
  117. }