Skip to content

Commit

Permalink
v3.0.1
Browse files Browse the repository at this point in the history
* File name changed from "JSMpeg" to "jsmpeg-player";
  • Loading branch information
cycjimmy committed Aug 19, 2019
1 parent 0758bbe commit 6278ed7
Show file tree
Hide file tree
Showing 9 changed files with 20 additions and 65 deletions.
1 change: 1 addition & 0 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,5 @@ src
dist
static
yarn.lock
webpack.config.js

4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
### Use in browser
```html
<div id="videoWrapper"></div>
<script src="JSMpeg.min.js"></script>
<script src="jsmpeg-player.min.js"></script>
<script>
var videoUrl = '../static/media/test_video.ts';
new JSMpeg.VideoElement('#videoWrapper', videoUrl);
Expand All @@ -88,7 +88,7 @@
## CDN
To use via a CDN include this in your HTML:
```text
<script src="https://cdn.jsdelivr.net/npm/jsmpeg-player@3/build/JSMpeg.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/jsmpeg-player@3/build/jsmpeg-player.min.js"></script>
```

## Encoding Video/Audio for [jsmpeg](https://github.com/phoboslab/jsmpeg) by [ffmpeg](https://ffmpeg.org/). E.g:
Expand Down
4 changes: 2 additions & 2 deletions build/JSMpeg.js → build/jsmpeg-player.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* jsmpeg-player v3.0.0
* jsmpeg-player v3.0.1
* Homepage: https://github.com/cycdpo/jsmpeg-player#readme
* Released under the MIT License.
*/
Expand Down Expand Up @@ -1205,13 +1205,13 @@ exports.locals = {

"use strict";


/*
MIT License http://www.opensource.org/licenses/mit-license.php
Author Tobias Koppers @sokra
*/
// css base code, injected by the css-loader
// eslint-disable-next-line func-names

module.exports = function (useSourceMap) {
var list = []; // return the list of modules as css string

Expand Down
2 changes: 1 addition & 1 deletion build/JSMpeg.min.js → build/jsmpeg-player.min.js

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

5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "jsmpeg-player",
"version": "3.0.0",
"version": "3.0.1",
"description": "MPEG1 Video Player Based On JSMpeg",
"main": "build/JSMpeg.js",
"main": "build/jsmpeg-player.js",
"scripts": {
"test": "jest",
"start": "cross-env NODE_ENV=development webpack --display-modules --display-reasons --display-error-details --watch --color",
Expand Down Expand Up @@ -58,6 +58,7 @@
"ws": "^7.1.2"
},
"dependencies": {
"@cycjimmy/sass-lib": "^0.0.3",
"awesome-js-funcs": "^0.1.6"
}
}
43 changes: 0 additions & 43 deletions src/theme/_utilities.scss

This file was deleted.

2 changes: 1 addition & 1 deletion src/theme/style.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import "utilities";
@import "~@cycjimmy/sass-lib";

.canvas,
.poster {
Expand Down
19 changes: 5 additions & 14 deletions webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var
const
path = require('path')
, webpack = require('webpack')
, packageJson = require('./package.json')
Expand All @@ -10,13 +10,13 @@ var
, {CleanWebpackPlugin} = require('clean-webpack-plugin')
;

var
const
IS_DEVELOPMENT = process.env.NODE_ENV === 'development'
, IS_PRODUCTION = process.env.NODE_ENV === 'production'
, cssIdentifier = IS_PRODUCTION ? '[hash:base64:10]' : '[path][name]__[local]'
;

var config = {
const config = {
mode: 'none',
entry: path.resolve('src', 'index.js'),

Expand All @@ -25,8 +25,8 @@ var config = {
? path.resolve('dist')
: path.resolve('build'),
filename: IS_PRODUCTION
? 'JSMpeg.min.js'
: 'JSMpeg.js',
? 'jsmpeg-player.min.js'
: 'jsmpeg-player.js',
library: 'JSMpeg',
libraryTarget: 'umd',
libraryExport: 'default'
Expand All @@ -46,21 +46,12 @@ var config = {
{
test: /\.js$/,
type: 'javascript/auto',
include: [
path.resolve('src'),
],
exclude: [
path.resolve('node_modules'),
],
loader: 'babel-loader'
},

// Style
{
test: /\.scss$/,
exclude: [
path.resolve('node_modules'),
],
use: [
{
loader: 'style-loader'
Expand Down
5 changes: 5 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -893,6 +893,11 @@
exec-sh "^0.3.2"
minimist "^1.2.0"

"@cycjimmy/sass-lib@^0.0.3":
version "0.0.3"
resolved "https://registry.yarnpkg.com/@cycjimmy/sass-lib/-/sass-lib-0.0.3.tgz#9f21666ffdffb18103ca0e2f9951312642eb3d19"
integrity sha512-tK2LszB4ihXkS117CF7ExZztgmHlOUQb6+Ym+BHl2McrrOiezIzC9Pk50maC42Z6ZLdJV7oLAjQw/+4zg+NmIg==

"@jest/console@^24.7.1":
version "24.7.1"
resolved "https://registry.yarnpkg.com/@jest/console/-/console-24.7.1.tgz#32a9e42535a97aedfe037e725bd67e954b459545"
Expand Down

0 comments on commit 6278ed7

Please sign in to comment.