Skip to content

Instantly share code, notes, and snippets.

@UberMouse
Created May 8, 2015 03:58
Show Gist options
  • Save UberMouse/4037d82e054b6c6eb2a8 to your computer and use it in GitHub Desktop.
Save UberMouse/4037d82e054b6c6eb2a8 to your computer and use it in GitHub Desktop.
// Karma configuration
// Generated on Fri May 08 2015 13:51:33 GMT+1200 (NZST)
module.exports = function(config) {
config.set({
basePath: '',
plugins: [
'karma-babel-preprocessor',
'karma-mocha',
'karma-chrome-launcher',
],
frameworks: ['mocha'],
files: [
'src/**/*.js',
'test/**/*.js'
],
exclude: [
],
preprocessors: {
'src/**/*.js': ['babel'],
'test/**/*.js': ['babel']
},
babelPreprocessor: {
options: {
sourceMap: 'inline'
},
filename: function(file) {
return file.originalPath.replace(/\.js$/, '.es5.js');
},
sourceFileName: function(file) {
return file.originalPath;
}
},
reporters: ['progress'],
port: 9876,
colors: true,
logLevel: config.LOG_INFO,
autoWatch: true,
browsers: ['Chrome'],
singleRun: false
});
};
{
"name": "Mizuchi",
"version": "0.0.0",
"description": "Server for managing Media",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "git://github.com/UberMouse/Mizuchi.git"
},
"author": "UberMouse",
"license": "MIT",
"bugs": {
"url": "https://github.com/UberMouse/Mizuchi/issues"
},
"dependencies": {
"babel": "*",
"koa": "*",
"koa-body": "*",
"koa-json": "*",
"koa-router": "*",
"mongoose": "*",
"pouchdb": "*"
},
"homepage": "https://github.com/UberMouse/Mizuchi",
"devDependencies": {
"supertest": "~0.15.0",
"mocha": "~2.2.4",
"co-mocha": "~1.1.0",
"co-supertest": "0.0.8",
"karma": "~0.12.31",
"karma-babel-preprocessor": "~5.1.0"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment