package.json 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. {
  2. "name": "three",
  3. "version": "0.93.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. "files": [
  10. "package.json",
  11. "bower.json",
  12. "LICENSE",
  13. "README.md",
  14. "build/three.js",
  15. "build/three.min.js",
  16. "build/three.module.js",
  17. "src",
  18. "examples/js",
  19. "examples/fonts"
  20. ],
  21. "directories": {
  22. "doc": "docs",
  23. "example": "examples",
  24. "test": "test"
  25. },
  26. "eslintConfig": {
  27. "extends": "mdcs"
  28. },
  29. "scripts": {
  30. "build": "rollup -c",
  31. "build-test": "rollup -c test/rollup.unit.config.js",
  32. "build-uglify": "rollup -c && uglifyjs build/three.js -cm --preamble \"// threejs.org/license\" > build/three.min.js",
  33. "build-closure": "rollup -c && java -jar node_modules/google-closure-compiler/compiler.jar --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",
  34. "dev": "concurrently --names \"ROLLUP,HTTP\" -c \"bgBlue.bold,bgGreen.bold\" \"rollup -c -w -m inline\" \"serve --port 8080\"",
  35. "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\" \"serve --port 8080\"",
  36. "start": "npm run dev",
  37. "lint": "eslint src",
  38. "test": "npm run build-test && qunit test/unit/three.source.unit.js",
  39. "travis": "npm run lint && npm test",
  40. "editor": "electron ./editor/main.js"
  41. },
  42. "keywords": [
  43. "three",
  44. "three.js",
  45. "3d",
  46. "webgl"
  47. ],
  48. "author": "mrdoob",
  49. "license": "MIT",
  50. "bugs": {
  51. "url": "https://github.com/mrdoob/three.js/issues"
  52. },
  53. "homepage": "https://threejs.org/",
  54. "devDependencies": {
  55. "concurrently": "^3.5.1",
  56. "electron": "^2.0.2",
  57. "eslint": "^4.19.1",
  58. "eslint-config-mdcs": "^4.2.3",
  59. "google-closure-compiler": "20180506.0.0",
  60. "qunit": "^2.6.1",
  61. "rollup": "^0.59.4",
  62. "rollup-watch": "^4.3.1",
  63. "serve": "6.5.8",
  64. "uglify-js": "^3.3.28"
  65. }
  66. }