package.json 3.3 KB

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