mirror of
https://github.com/videojs/video.js.git
synced 2025-11-29 23:07:51 +02:00
chore: package json cleanup (#5649)
This commit is contained in:
committed by
Gary Katsevman
parent
bd58039c78
commit
85ad44e13e
@@ -1,8 +1,9 @@
|
||||
const generate = require('videojs-generate-karma-config');
|
||||
|
||||
module.exports = function(config) {
|
||||
const coverageFlag = process.env.npm_config_coverage;
|
||||
const reportCoverage = false; // process.env.TRAVIS || coverageFlag || false;
|
||||
// const coverageFlag = process.env.npm_config_coverage;
|
||||
// process.env.TRAVIS || coverageFlag || false;
|
||||
const reportCoverage = false;
|
||||
|
||||
// see https://github.com/videojs/videojs-generate-karma-config
|
||||
// for options
|
||||
@@ -14,7 +15,7 @@ module.exports = function(config) {
|
||||
serverBrowsers(defaults) {
|
||||
return [];
|
||||
},
|
||||
coverage: reportCoverage,
|
||||
coverage: reportCoverage
|
||||
};
|
||||
|
||||
config = generate(config, options);
|
||||
@@ -44,7 +45,7 @@ module.exports = function(config) {
|
||||
debug: true,
|
||||
plugin: ['proxyquireify/plugin'],
|
||||
transform: [
|
||||
['babelify', {"presets": [["@babel/preset-env", {"loose": true}]]}],
|
||||
['babelify', {presets: [['@babel/preset-env', {loose: true}]]}]
|
||||
]
|
||||
};
|
||||
|
||||
@@ -52,14 +53,15 @@ module.exports = function(config) {
|
||||
config.browserify.transform.push('browserify-istanbul');
|
||||
}
|
||||
|
||||
|
||||
config.preprocessors = {
|
||||
'test/globals-shim.js': ['browserify'],
|
||||
'test/unit/**/*.js': ['browserify'],
|
||||
'test/unit/**/*.js': ['browserify']
|
||||
};
|
||||
|
||||
// pin Browserstack Firefox version to 64
|
||||
/* eslint-disable camelcase */
|
||||
config.customLaunchers.bsFirefox.browser_version = '64.0';
|
||||
/* eslint-enable camelcase */
|
||||
|
||||
// uncomment the section below to re-enable all browserstack video recording
|
||||
// it is off by default because it slows the build
|
||||
@@ -70,4 +72,9 @@ module.exports = function(config) {
|
||||
}
|
||||
});
|
||||
*/
|
||||
|
||||
/* eslint-disable no-console */
|
||||
console.log(JSON.stringify(config, null, 2));
|
||||
/* eslint-enable no-console */
|
||||
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user