forked from videojs/videojs-playlist
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Update tooling using generator v5 prerelease. (videojs#79)
BREAKING CHANGE: Remove Bower support.
- Loading branch information
1 parent
e29593f
commit 0b53140
Showing
21 changed files
with
318 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"presets": [ | ||
"es3", | ||
["es2015", {"loose": true}] | ||
], | ||
"plugins": ["transform-object-assign"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,5 +30,5 @@ node_modules/ | |
|
||
# Build-related directories | ||
dist/ | ||
build/ | ||
|
||
docs/api/ | ||
test/dist/ |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"plugins": ["plugins/markdown"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
/** | ||
* <%- pkg.name %> | ||
* @version <%- pkg.version %> | ||
* @copyright <%- date.getFullYear() %> <%- pkg.author %> | ||
* @license <%- pkg.license %> | ||
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
/** | ||
* Rollup configuration for packaging the plugin in a module that is consumable | ||
* by either CommonJS (e.g. Node or Browserify) or ECMAScript (e.g. Rollup). | ||
* | ||
* These modules DO NOT include their dependencies as we expect those to be | ||
* handled by the module system. | ||
*/ | ||
import babel from 'rollup-plugin-babel'; | ||
import json from 'rollup-plugin-json'; | ||
|
||
export default { | ||
moduleName: 'videojsPlaylist', | ||
entry: 'src/plugin.js', | ||
external: ['video.js'], | ||
globals: { | ||
'video.js': 'videojs' | ||
}, | ||
legacy: true, | ||
plugins: [ | ||
json(), | ||
babel({ | ||
babelrc: false, | ||
exclude: 'node_modules/**', | ||
presets: [ | ||
'es3', | ||
['es2015', { | ||
loose: true, | ||
modules: false | ||
}] | ||
], | ||
plugins: [ | ||
'external-helpers', | ||
'transform-object-assign' | ||
] | ||
}) | ||
], | ||
targets: [ | ||
{dest: 'dist/videojs-playlist.cjs.js', format: 'cjs'}, | ||
{dest: 'dist/videojs-playlist.es.js', format: 'es'} | ||
] | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
/** | ||
* Rollup configuration for packaging the plugin in a test bundle. | ||
* | ||
* This includes all dependencies for both the plugin and its tests. | ||
*/ | ||
import babel from 'rollup-plugin-babel'; | ||
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'; | ||
|
||
export default { | ||
moduleName: 'videojsPlaylistTests', | ||
entry: 'test/**/*.test.js', | ||
dest: 'test/dist/bundle.js', | ||
format: 'iife', | ||
external: [ | ||
'qunit', | ||
'qunitjs', | ||
'sinon', | ||
'video.js' | ||
], | ||
globals: { | ||
'qunit': 'QUnit', | ||
'qunitjs': 'QUnit', | ||
'sinon': 'sinon', | ||
'video.js': 'videojs' | ||
}, | ||
legacy: true, | ||
plugins: [ | ||
multiEntry({ | ||
exports: false | ||
}), | ||
resolve({ | ||
browser: true, | ||
main: true, | ||
jsnext: true | ||
}), | ||
commonjs({ | ||
sourceMap: false | ||
}), | ||
babel({ | ||
babelrc: false, | ||
exclude: 'node_modules/**', | ||
presets: [ | ||
'es3', | ||
['es2015', { | ||
loose: true, | ||
modules: false | ||
}] | ||
], | ||
plugins: [ | ||
'external-helpers', | ||
'transform-object-assign' | ||
] | ||
}) | ||
] | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
/** | ||
* Rollup configuration for packaging the plugin in a module that is consumable | ||
* as the `src` of a `script` tag or via AMD or similar client-side loading. | ||
* | ||
* This module DOES include its dependencies. | ||
*/ | ||
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'; | ||
|
||
export default { | ||
moduleName: 'videojsPlaylist', | ||
entry: 'src/plugin.js', | ||
dest: 'dist/videojs-playlist.js', | ||
format: 'umd', | ||
external: ['video.js'], | ||
globals: { | ||
'video.js': 'videojs' | ||
}, | ||
legacy: true, | ||
plugins: [ | ||
resolve({ | ||
browser: true, | ||
main: true, | ||
jsnext: true | ||
}), | ||
json(), | ||
commonjs({ | ||
sourceMap: false | ||
}), | ||
babel({ | ||
babelrc: false, | ||
exclude: 'node_modules/**', | ||
presets: [ | ||
'es3', | ||
['es2015', { | ||
loose: true, | ||
modules: false | ||
}] | ||
], | ||
plugins: [ | ||
'external-helpers', | ||
'transform-object-assign' | ||
] | ||
}) | ||
] | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
const execSync = require('child_process').execSync; | ||
const path = require('path'); | ||
const semver = require('semver'); | ||
const pkg = require('../package.json'); | ||
|
||
if (!semver.prerelease(pkg.version)) { | ||
process.chdir(path.resolve(__dirname, '..')); | ||
execSync('conventional-changelog -p videojs -i CHANGELOG.md -s'); | ||
execSync('git add CHANGELOG.md'); | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<!doctype html> | ||
<html> | ||
<head> | ||
<meta charset="utf-8"> | ||
<title>videojs-playlist Unit Tests</title> | ||
<link rel="stylesheet" href="../node_modules/qunitjs/qunit/qunit.css"> | ||
<link rel="stylesheet" href="../node_modules/video.js/dist/video-js.css"> | ||
</head> | ||
<body> | ||
<div id="qunit"></div> | ||
<div id="qunit-fixture"></div> | ||
<script src="../node_modules/es5-shim/es5-shim.js"></script> | ||
<script src="../node_modules/sinon/pkg/sinon.js"></script> | ||
<script src="../node_modules/qunitjs/qunit/qunit.js"></script> | ||
<script src="../node_modules/video.js/dist/video.js"></script> | ||
<script src="../test/dist/bundle.js"></script> | ||
</body> | ||
</html> |
Oops, something went wrong.