Created
September 16, 2015 00:00
-
-
Save mjbradford89/bde3ff441e7062e0a1be to your computer and use it in GitHub Desktop.
karma.conf.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var metal = require('gulp-metal'); | |
var babelOptions = { | |
resolveModuleSource: metal.renameAlias, | |
sourceMap: 'both' | |
}; | |
module.exports = function (config) { | |
config.set({ | |
frameworks: ['mocha', 'chai', 'source-map-support', 'commonjs'], | |
files: [ | |
'bower_components/soyutils/soyutils.js', | |
'bower_components/metal*/src/**/*.js', | |
'bower_components/steel*/src/**/*.js', | |
'src/**/*.js', | |
'test/**/*.js' | |
], | |
preprocessors: { | |
'src/**/*.js': ['babel', 'commonjs'], | |
'bower_components/metal*/**/*.js': ['babel', 'commonjs'], | |
'bower_components/steel*/**/*.js': ['babel', 'commonjs'], | |
'test/**/*.js': ['babel', 'commonjs'] | |
}, | |
browsers: ['Chrome'], | |
babelPreprocessor: {options: babelOptions} | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment