forked from googlearchive/vrview
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
54 lines (54 loc) · 2.78 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
{
"name": "vrview",
"version": "2.0.1",
"description": "Embed VR content into your webpage.",
"main": "index.js",
"dependencies": {
"@tweenjs/tween.js": "^16.11.0",
"es6-promise": "^3.0.2",
"eventemitter3": "^1.2.0",
"shaka-player": "^2.3.2",
"stats-js": "^1.0.0-alpha1",
"three": "^0.84.0",
"urijs": "^1.19.0",
"webvr-boilerplate": "^0.4.6",
"webvr-polyfill": "^0.9.41"
},
"devDependencies": {
"browserify": "^13.1.1",
"derequire": "^2.0.6",
"eslint": "^4.17.0",
"eslint-config-google": "^0.9.1",
"rollup": "^0.37.2",
"uglify-es": "^3.3.9",
"watchify": "^3.10.0"
},
"scripts": {
"_mkdir": "mkdir -p build",
"build-min": "npm run _mkdir && browserify src/embed/main.js | derequire | uglifyjs -c > build/embed.min.js && npm run build-three-closure",
"build-dev": "npm run _mkdir && browserify src/embed/main.js | derequire > build/embed.js && npm run build-three-closure",
"build-analytics-min": "npm run _mkdir && browserify src/embed/with-analytics.js | derequire | uglifyjs -c > build/embed.min.js && npm run build-three-closure",
"build-analytics-dev": "npm run _mkdir && browserify src/embed/with-analytics.js | derequire > build/embed.js && npm run build-three-closure",
"build-api-min": "npm run _mkdir && browserify --standalone VRView src/api/main.js | derequire | uglifyjs -c > build/vrview.min.js",
"build-api-dev": "npm run _mkdir && browserify --standalone VRView src/api/main.js | derequire > build/vrview.js",
"build": "npm run build-min; npm run build-dev; npm run build-api",
"build-analytics": "npm run build-analytics-min; npm run build-analytics-dev; npm run build-api",
"build-api": "npm run build-api-min; npm run build-api-dev",
"watch": "npm run _mkdir && watchify src/embed/main.js -v -d -o build/embed.js",
"watch-api": "npm run _mkdir && watchify --standalone VRView src/api/main.js -v -d -o build/vrview.js",
"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",
"build-dms": "npm run _mkdir && uglifyjs scripts/js/device-motion-sender.js > build/device-motion-sender.min.js",
"build-all": "npm run build-analytics; npm run build-three-closure; npm run build-dms",
"test": "npm run build"
},
"repository": {
"type": "git",
"url": "git+https://github.com/google/vrview.git"
},
"author": "",
"license": "Apache-2.0",
"bugs": {
"url": "https://github.com/google/vrview/issues"
},
"homepage": "https://github.com/google/vrview#readme"
}