Skip to content

Commit

Permalink
chore(package): update rollup and rollup-plugin-json (#93)
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonocasey authored May 24, 2018
1 parent 30c223b commit 33db8a8
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 28 deletions.
22 changes: 12 additions & 10 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -121,10 +121,10 @@
"npm-run-all": "^4.0.2",
"qunit": "^2.5.1",
"rimraf": "^2.6.1",
"rollup": "^0.58.2",
"rollup": "^0.59.3",
"rollup-plugin-babel": "^3.0.4",
"rollup-plugin-commonjs": "^9.1.3",
"rollup-plugin-json": "^2.1.1",
"rollup-plugin-json": "^3.0.0",
"rollup-plugin-multi-entry": "^2.0.1",
"rollup-plugin-node-resolve": "^3.0.0",
"rollup-plugin-re": "^1.0.6",
Expand Down
13 changes: 9 additions & 4 deletions scripts/modules.rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,21 @@ import replace from './rollup-replace';
import commonjs from 'rollup-plugin-commonjs';
import resolve from 'rollup-plugin-node-resolve';

const name = 'videojsVr';
const globals = {
'video.js': 'videojs'
};

export default {
name: 'videojsVr',
input: 'src/plugin.js',
output: [{
name,
globals,
file: 'dist/videojs-vr.cjs.js',
format: 'cjs'
}, {
name,
globals,
file: 'dist/videojs-vr.es.js',
format: 'es'
}],
Expand All @@ -29,9 +37,6 @@ export default {
'three',
'webvr-boilerplate'
],
globals: {
'video.js': 'videojs'
},
legacy: true,
plugins: [
resolve({
Expand Down
17 changes: 10 additions & 7 deletions scripts/test.rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,19 @@ import multiEntry from 'rollup-plugin-multi-entry';
import resolve from 'rollup-plugin-node-resolve';
import replace from './rollup-replace';

const name = 'videojsVrTests';
const globals = {
'qunit': 'QUnit',
'qunitjs': 'QUnit',
'sinon': 'sinon',
'video.js': 'videojs'
};

export default {
name: 'videojsVrTests',
input: 'test/**/*.test.js',
output: {
name,
globals,
file: 'test/dist/bundle.js',
format: 'iife'
},
Expand All @@ -23,12 +32,6 @@ export default {
'sinon',
'video.js'
],
globals: {
'qunit': 'QUnit',
'qunitjs': 'QUnit',
'sinon': 'sinon',
'video.js': 'videojs'
},
legacy: true,
plugins: [
multiEntry({
Expand Down
10 changes: 5 additions & 5 deletions scripts/umd.rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,18 @@ import resolve from 'rollup-plugin-node-resolve';
import replace from './rollup-replace';

export default {
name: 'videojsVr',
input: 'src/plugin.js',
output: {
name: 'videojsVr',
file: 'dist/videojs-vr.js',
format: 'umd'
format: 'umd',
globals: {
'video.js': 'videojs'
}
},
external: [
'video.js'
],
globals: {
'video.js': 'videojs'
},
legacy: true,
plugins: [
resolve({
Expand Down

0 comments on commit 33db8a8

Please sign in to comment.