aframe-physics-extras
Version:
Cannon API interface components the A-Frame Physics System.
43 lines (41 loc) • 1.19 kB
JavaScript
// karma configuration
var karmaConf = {
browserify: {
debug: true
},
browsers: ['Firefox', 'Chrome'],
// prevent timeout during recording playback
browserNoActivityTimeout: 600000,
client: {
captureConsole: false,
mocha: {'ui': 'tdd'}
},
files: [
// module and dependencies
{pattern: 'main.js', included: true},
// test files.
{pattern: './**/*.test.js'},
// HTML machinima scenes (pre-processed by html2js)
{pattern: 'scenes/*.html'},
// machinima recording files (served at base/recordings/)
{pattern: 'recordings/*.json', included: false, served: true},
// assets
{pattern: 'assets/*.*', included: false, served: true}
],
frameworks: ['mocha', 'sinon-chai', 'browserify'],
preprocessors: {
'main.js': ['browserify'],
'./**/*.js': ['browserify'],
// process machinima scene files into window.__html__ array
'scenes/*.html': ['html2js']
},
reporters: ['mocha'],
// machinima: make scene html available
html2JsPreprocessor: {
stripPrefix: 'scenes/'
}
}
// Apply configuration
module.exports = function (config) {
config.set(karmaConf)
}