Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: remove threejs files from the repo #43

Merged
merged 1 commit into from
Jan 16, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down
16 changes: 15 additions & 1 deletion scripts/modules.rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand All @@ -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/**',
Expand Down
14 changes: 14 additions & 0 deletions scripts/rollup-replace.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import replace from 'rollup-plugin-replace';

export default function(options) {

return replace(Object.assign({
'include': ['node_modules/three/examples/js/**'],
'delimiters': ['', ''],
'THREE.VRControls =': "var THREE = require('three');var VRControls;\nmodule.exports = VRControls =",
'THREE.VREffect =': "var THREE = require('three');var VREffect;\nmodule.exports = VREffect =",
'THREE.VRControls': 'VRControls',
'THREE.VREffect': 'VREffect'
}, options || {}));
}

2 changes: 2 additions & 0 deletions scripts/test.rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down Expand Up @@ -39,6 +40,7 @@ export default {
jsnext: true
}),
json(),
replace(),
commonjs({
sourceMap: false
}),
Expand Down
2 changes: 2 additions & 0 deletions scripts/umd.rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand All @@ -30,6 +31,7 @@ export default {
jsnext: true
}),
json(),
replace(),
commonjs({
sourceMap: false
}),
Expand Down
162 changes: 0 additions & 162 deletions src/VRControls.js

This file was deleted.

Loading