Skip to content

Commit

Permalink
v1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
xqq committed Nov 25, 2016
1 parent 8b77b7b commit cf81f50
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
4 changes: 2 additions & 2 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ function doWatchify() {
entries: 'src/index.js',
standalone: 'flvjs',
debug: true,
transform: [babelify],
transform: ['babelify', 'browserify-versionify'],
plugin: ['browserify-derequire']
};

Expand Down Expand Up @@ -96,7 +96,7 @@ gulp.task('build', ['clean', 'lint'], function () {
entries: 'src/index.js',
standalone: 'flvjs',
debug: true,
transform: [babelify],
transform: ['babelify', 'browserify-versionify'],
plugin: ['browserify-derequire']
});

Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "flv.js",
"version": "1.0.0",
"version": "1.1.0",
"description": "HTML5 FLV Player",
"main": "./dist/flv.js",
"types": "./d.ts/flv.d.ts",
Expand Down Expand Up @@ -28,6 +28,7 @@
"babelify": "^7.3.0",
"browserify": "^13.1.1",
"browserify-derequire": "^0.9.4",
"browserify-versionify": "^1.0.6",
"del": "^2.2.0",
"gulp": "^3.9.1",
"gulp-cli": "^1.2.2",
Expand Down
7 changes: 7 additions & 0 deletions src/flv.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,5 +76,12 @@ flvjs.FlvPlayer = FlvPlayer;
flvjs.NativePlayer = NativePlayer;
flvjs.LoggingControl = LoggingControl;

Object.defineProperty(flvjs, 'version', {
enumerable: true,
get: function () {
// replaced by browserify-versionify transform
return '__VERSION__';
}
});

export default flvjs;

0 comments on commit cf81f50

Please sign in to comment.