package.json 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. {
  2. "name": "vrview",
  3. "version": "2.0.2",
  4. "description": "Embed VR content into your webpage.",
  5. "main": "index.js",
  6. "dependencies": {
  7. "@tweenjs/tween.js": "^16.8.0",
  8. "es6-promise": "^3.0.2",
  9. "eventemitter3": "^1.2.0",
  10. "lodash": "^4.17.5",
  11. "shaka-player": "^2.0.0",
  12. "stats-js": "^1.0.0-alpha1",
  13. "three": "^0.84.0",
  14. "urijs": "^1.18.2",
  15. "webvr-boilerplate": "^0.4.6",
  16. "webvr-polyfill": "^0.9.38"
  17. },
  18. "devDependencies": {
  19. "browserify": "^13.1.1",
  20. "debug": "^2.6.9",
  21. "derequire": "^2.0.6",
  22. "eslint": "^4.2.0",
  23. "eslint-config-google": "^0.9.1",
  24. "rollup": "^0.37.2",
  25. "uglify-es": "^3.0.24",
  26. "watchify": "^3.8.0"
  27. },
  28. "scripts": {
  29. "_mkdir": "mkdir -p build",
  30. "build-min": "npm run _mkdir && browserify src/embed/main.js | derequire | uglifyjs -c > build/embed.min.js && npm run build-three-closure",
  31. "build-dev": "npm run _mkdir && browserify src/embed/main.js | derequire > build/embed.js && npm run build-three-closure",
  32. "build-analytics-min": "npm run _mkdir && browserify src/embed/with-analytics.js | derequire | uglifyjs -c > build/embed.min.js && npm run build-three-closure",
  33. "build-analytics-dev": "npm run _mkdir && browserify src/embed/with-analytics.js | derequire > build/embed.js && npm run build-three-closure",
  34. "build-api-min": "npm run _mkdir && browserify --standalone VRView src/api/main.js | derequire | uglifyjs -c > build/vrview.min.js",
  35. "build-api-dev": "npm run _mkdir && browserify --standalone VRView src/api/main.js | derequire > build/vrview.js",
  36. "build": "npm run build-min; npm run build-dev; npm run build-api",
  37. "build-analytics": "npm run build-analytics-min; npm run build-analytics-dev; npm run build-api",
  38. "build-api": "npm run build-api-min; npm run build-api-dev",
  39. "watch": "npm run _mkdir && watchify src/embed/main.js -v -d -o build/embed.js",
  40. "watch-api": "npm run _mkdir && watchify --standalone VRView src/api/main.js -v -d -o build/vrview.js",
  41. "build-three-closure": "npm run _mkdir && rollup -c src/third_party/three/rollup.config.js && java -jar src/third_party/three/closure-compiler-v20160713.jar --warning_level=VERBOSE --jscomp_off=globalThis --jscomp_off=checkTypes --externs src/third_party/three/externs.js --language_in=ECMASCRIPT5_STRICT --js build/three.js --js_output_file build/three.min.js",
  42. "build-dms": "npm run _mkdir && uglifyjs scripts/js/device-motion-sender.js > build/device-motion-sender.min.js",
  43. "build-all": "npm run build-analytics; npm run build-three-closure; npm run build-dms",
  44. "test": "npm run build"
  45. },
  46. "repository": {
  47. "type": "git",
  48. "url": "git+https://github.com/google/vrview.git"
  49. },
  50. "author": "",
  51. "license": "Apache-2.0",
  52. "bugs": {
  53. "url": "https://github.com/google/vrview/issues"
  54. },
  55. "homepage": "https://github.com/google/vrview#readme"
  56. }