super-hands
Version:
All-in-one natural hand controller interaction component for A-Frame.
52 lines (50 loc) • 1.3 kB
JavaScript
// karma configuration
const karmaConf = {
browserify: {
debug: true,
transform: [
['babelify']
]
},
browsers: ['Firefox_NoVR', 'Chrome'],
// machinima: prevent timeout during recording playback
browserNoActivityTimeout: 600000,
client: {
captureConsole: false,
mocha: { ui: 'tdd' }
},
customLaunchers: {
Firefox_NoVR: {
base: 'Firefox',
prefs: {
'dom.vr.enabled': false
}
}
},
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 }
],
frameworks: ['mocha', 'sinon-chai', 'chai-shallow-deep-equal', '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)
}