Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
brainfood
/
videojs-contrib-hls
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
d33786f1
authored
2016-05-03 15:22:37 -0400
by
Gary Katsevman
Committed by
Jon-Carlos Rivera
2016-05-03 15:22:37 -0400
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
only browserify-shim the dist files (#675)
1 parent
70936d39
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
7 deletions
package.json
scripts/build-test.js
scripts/watch-test.js
package.json
View file @
d33786f
...
...
@@ -16,7 +16,7 @@
"build:js"
:
"npm-run-all build:js:babel build:js:browserify build:js:bannerize build:js:uglify"
,
"build:js:babel"
:
"babel src -d es5"
,
"build:js:bannerize"
:
"bannerize dist/videojs-contrib-hls.js --banner=scripts/banner.ejs"
,
"build:js:browserify"
:
"browserify . -s videojs-contrib-hls -o dist/videojs-contrib-hls.js"
,
"build:js:browserify"
:
"browserify . -s videojs-contrib-hls -
t browserify-shim -
o dist/videojs-contrib-hls.js"
,
"build:js:uglify"
:
"uglifyjs dist/videojs-contrib-hls.js --comments --mangle --compress -o dist/videojs-contrib-hls.min.js"
,
"build:test"
:
"npm-run-all build:test:manifest build:test:js"
,
"build:test:js"
:
"node scripts/build-test.js"
,
...
...
@@ -52,11 +52,6 @@
],
"author"
:
"Brightcove, Inc"
,
"license"
:
"Apache-2.0"
,
"browserify"
:
{
"transform"
:
[
"browserify-shim"
]
},
"browserify-shim"
:
{
"qunit"
:
"global:QUnit"
,
"sinon"
:
"global:sinon"
,
...
...
scripts/build-test.js
View file @
d33786f
...
...
@@ -5,6 +5,7 @@ var glob = require('glob');
glob
(
'test/**/*.test.js'
,
function
(
err
,
files
)
{
browserify
(
files
)
.
transform
(
'babelify'
)
.
transform
(
'browserify-shim'
)
.
bundle
()
.
pipe
(
fs
.
createWriteStream
(
'dist-test/videojs-contrib-hls.js'
));
});
...
...
scripts/watch-test.js
View file @
d33786f
...
...
@@ -8,7 +8,9 @@ glob('test/**/*.test.js', function(err, files) {
cache
:
{},
packageCache
:
{},
plugin
:
[
watchify
]
}).
transform
(
'babelify'
);
})
.
transform
(
'babelify'
)
.
transform
(
'browserify-shim'
);
var
bundle
=
function
()
{
b
.
bundle
().
pipe
(
fs
.
createWriteStream
(
'dist-test/videojs-contrib-hls.js'
));
...
...
Please
register
or
sign in
to post a comment