app-bus
Version:
An asynchronous application event bus for javascript designed to work with the pub/sub paradigm.
43 lines (38 loc) • 883 B
JavaScript
module.exports = function(grunt) {
require('load-grunt-tasks')(grunt);
grunt.initConfig({
'eslint': {
target: [
'src/*.js',
'test/*.js'
]
},
'babel': {
options: {
sourceMap: true
},
dist: {
files: {
'dist/app-bus.js': 'src/app-bus.js'
}
}
},
'mochaTest': {
test: {
options: {
reporter: 'spec',
require: ['babel-register', 'babel-polyfill']
},
src: ['test/**/*.js']
}
}
});
grunt.registerTask('default', [
'eslint',
'babel',
'mochaTest'
]);
grunt.registerTask('test', [
'mochaTest'
])
};