Skip to content
This repository has been archived by the owner on Jan 13, 2022. It is now read-only.

Commit

Permalink
1.5.9 release
Browse files Browse the repository at this point in the history
  • Loading branch information
Pong420 committed Apr 7, 2020
1 parent 7ab4f93 commit 70e695d
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 5 deletions.
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# 1.5.9

### Bug Fixes

- Fix subtitle change, default subtitle

# 1.5.8

### Bug Fixes
Expand All @@ -7,7 +13,6 @@
### Update

- New plugin `ElectronFullscreenToggle`
-

# 1.5.7

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "videojs-plus",
"version": "1.5.8",
"version": "1.5.9",
"description": "An extension and skin for video.js",
"main": "dist/videojs-plus.umd.js",
"module": "dist/videojs-plus.es5.js",
Expand Down
17 changes: 14 additions & 3 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import scss from 'rollup-plugin-scss';
import json from 'rollup-plugin-json';
import copy from 'rollup-plugin-copy';
import kebabCase from 'lodash/kebabCase';
import pkg from './package.json';

function createEntry(input, output, css, plugins = []) {
return {
Expand Down Expand Up @@ -36,7 +37,8 @@ function createEntry(input, output, css, plugins = []) {
scss({
output: styles => {
if (styles && styles.length) {
const cssOutput = css || output[0].file.replace(/\.(umd|es|iife).js/, '.css');
const cssOutput =
css || output[0].file.replace(/\.(umd|es|iife).js/, '.css');
mkdirp(cssOutput.replace(/[^\/]*$/, ''));
fs.writeFileSync(cssOutput, styles);
}
Expand All @@ -57,14 +59,23 @@ const output = setFileName =>
globals: {
'video.js': 'videojs'
},
banner: `/* eslint-disable */`
banner: `
/* eslint-disable */
/* VERSION: 1.5.9 */
`
.trim()
.replace(/^(\s{2})+/gm, '')
.replace(/^ *\n/, '')
};
});

const distDir = 'dist';

export default [
createEntry('source/index.js', output(format => path.join(distDir, `/videojs-plus.${format}.js`))),
createEntry(
'source/index.js',
output(format => path.join(distDir, `/videojs-plus.${format}.js`))
),
...fs.readdirSync(pluginsDir).map(pluginName => {
const kebabCaseName = kebabCase(pluginName);
const srcDir = `${pluginsDir}/${pluginName}/`;
Expand Down

0 comments on commit 70e695d

Please sign in to comment.