Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: remove threejs files from the repo
Browse files Browse the repository at this point in the history
brandonocasey committed Jan 12, 2018
1 parent 23691ff commit 4c82926
Showing 8 changed files with 573 additions and 1,330 deletions.
1,163 changes: 551 additions & 612 deletions package-lock.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -49,7 +49,6 @@
"docs:api": "jsdoc src -r -c jsdoc.json -d docs/api",
"docs:toc": "doctoc README.md",
"lint": "vjsstandard",
"prestart": "npm run build",
"start": "npm-run-all -p start:server watch",
"start:server": "static -a 0.0.0.0 -p 9999 -H '{\"Cache-Control\": \"no-cache, must-revalidate\"}' .",
"pretest": "npm-run-all lint build",
@@ -127,6 +126,7 @@
"rollup-plugin-json": "^2.1.1",
"rollup-plugin-multi-entry": "^2.0.1",
"rollup-plugin-node-resolve": "^3.0.0",
"rollup-plugin-replace": "^2.0.0",
"rollup-watch": "^3.2.2",
"semver": "^5.3.0",
"sinon": "^2.2.0",
16 changes: 15 additions & 1 deletion scripts/modules.rollup.config.js
Original file line number Diff line number Diff line change
@@ -7,6 +7,9 @@
*/
import babel from 'rollup-plugin-babel';
import json from 'rollup-plugin-json';
import replace from './rollup-replace';
import commonjs from 'rollup-plugin-commonjs';
import resolve from 'rollup-plugin-node-resolve';

export default {
name: 'videojsVr',
@@ -22,14 +25,25 @@ export default {
'global',
'global/document',
'global/window',
'video.js'
'video.js',
'three',
'webvr-boilerplate'
],
globals: {
'video.js': 'videojs'
},
legacy: true,
plugins: [
resolve({
browser: true,
main: true,
jsnext: true
}),
json(),
replace(),
commonjs({
sourceMap: false
}),
babel({
babelrc: false,
exclude: 'node_modules/**',
2 changes: 2 additions & 0 deletions scripts/test.rollup.config.js
Original file line number Diff line number Diff line change
@@ -8,6 +8,7 @@ import commonjs from 'rollup-plugin-commonjs';
import json from 'rollup-plugin-json';
import multiEntry from 'rollup-plugin-multi-entry';
import resolve from 'rollup-plugin-node-resolve';
import replace from './rollup-replace';

export default {
name: 'videojsVrTests',
@@ -39,6 +40,7 @@ export default {
jsnext: true
}),
json(),
replace(),
commonjs({
sourceMap: false
}),
2 changes: 2 additions & 0 deletions scripts/umd.rollup.config.js
Original file line number Diff line number Diff line change
@@ -8,6 +8,7 @@ import babel from 'rollup-plugin-babel';
import commonjs from 'rollup-plugin-commonjs';
import json from 'rollup-plugin-json';
import resolve from 'rollup-plugin-node-resolve';
import replace from './rollup-replace';

export default {
name: 'videojsVr',
@@ -30,6 +31,7 @@ export default {
jsnext: true
}),
json(),
replace(),
commonjs({
sourceMap: false
}),
162 changes: 0 additions & 162 deletions src/VRControls.js

This file was deleted.

547 changes: 0 additions & 547 deletions src/VREffect.js

This file was deleted.

9 changes: 2 additions & 7 deletions src/plugin.js
Original file line number Diff line number Diff line change
@@ -5,13 +5,8 @@ import './webvr-config.js';
import 'webvr-polyfill/src/main';
import videojs from 'video.js';
import * as THREE from 'three';
// previously we used
// * three/examples/js/controls/VRControls.js
// * three/examples/js/effects/VREffects.js
// but since we are using es6 now, there is no good way to make them export to us
// so the code has been copied locally to allow exporting
import VRControls from './VRControls.js';
import VREffect from './VREffect.js';
import VRControls from 'three/examples/js/controls/VRControls.js';
import VREffect from 'three/examples/js/effects/VREffect.js';
import WebVRManager from 'webvr-boilerplate/build/webvr-manager';

// import controls so they get regisetered with videojs

0 comments on commit 4c82926

Please sign in to comment.