Skip to content

Commit

Permalink
Modernize plugin (v2.0) (#35)
Browse files Browse the repository at this point in the history
- new build system (ES6)
- 'advanced' video.js plugin (fixes #29)
- support for wavesurfer.js 2 (fixes #32)
- support for `fluid` video.js option (fixes #28)
- React example (fixes #33)
  • Loading branch information
thijstriemstra committed Oct 2, 2017
1 parent 2fa281e commit cba3eab
Show file tree
Hide file tree
Showing 32 changed files with 1,263 additions and 977 deletions.
10 changes: 10 additions & 0 deletions .babelrc
@@ -0,0 +1,10 @@
{
"presets": [
["env", {
"targets": {
"browsers": ["last 3 versions"]
},
"debug": false
}]
]
}
12 changes: 10 additions & 2 deletions .gitignore
Expand Up @@ -4,7 +4,15 @@
.DS_Store

examples/media/test

# Dependency-related directories
node_modules
bower_components
dist
doc

# Build-related directories
dist/
dist-test/
docs/
es5/
tmp
coverage/
7 changes: 1 addition & 6 deletions .jscsrc
Expand Up @@ -4,13 +4,8 @@
"disallowMultipleSpaces": true,
"disallowTabs": true,
"disallowSpaceBeforeSemicolon": true,
"disallowPaddingNewlinesInBlocks": true,
"requireNewlineBeforeBlockStatements": true,
"validateIndentation": 4,
"requireSpacesInForStatement": true,
"requireSpacesInConditionalExpression": true,
"requireSpaceAfterLineComment": true,
"requirePaddingNewLinesInObjects": true,
"requireNewlineBeforeBlockStatements": true,
"requireBlocksOnNewline": true
}
}
19 changes: 0 additions & 19 deletions .jshintrc

This file was deleted.

8 changes: 3 additions & 5 deletions .npmignore
@@ -1,5 +1,3 @@
# exclude everything except dist, lang and src
**/*
!dist/**
!lang/**
!src/**
# Intentionally left blank, so that npm does not ignore anything by default,
# but relies on the package.json "files" array to explicitly define what ends
# up in the package.
7 changes: 3 additions & 4 deletions .travis.yml
@@ -1,9 +1,8 @@
sudo: false
language: node_js
node_js:
- "node"
before_install: npm install -g grunt-cli
- 'node'
install: npm install
before_script: grunt
cache:
directories:
- node_modules
- node_modules
17 changes: 17 additions & 0 deletions CHANGES.md
@@ -1,6 +1,23 @@
videojs-wavesurfer changelog
============================

2.0.0 - unreleased
------------------

- Rewrite plugin using ES6 (#29)
- Wavesurfer.js version 2.0.0 or newer is now required: older versions are no
longer supported (#32)
- Added support for the video.js `fluid` option (#28 by @ikbensiep)
- Added default CSS styles (that previsouly were only included in the examples):
`dist/css/videojs.wavesurfer.css`
- Added React example (#33)

Backwards-incompatible changes (when upgrading from a previous version):

- Use `player.wavesurfer()` instead of `player.waveform` to interact with the
plugin, e.g. `player.wavesurfer().getDuration()`


1.3.6 - 2017/09/23
------------------

Expand Down
76 changes: 0 additions & 76 deletions Gruntfile.js

This file was deleted.

0 comments on commit cba3eab

Please sign in to comment.