Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
58 lines (55 sloc) 1.57 KB
module.exports = function (grunt) {
'use strict';
grunt.initConfig({
pkg: grunt.file.readJSON('./package.json'),
watchify: {
dist: {
src: './lib/subscriber.js',
dest: './public/ears.js'
}
},
connect: {
server: {
options: {
port: 8000,
base: 'public',
keepalive: true
}
}
},
simplemocha: {
options: {
timeout: 2000,
ui: 'bdd',
reporter: 'spec'
},
all: {
src: ['test/**/*.js']
}
},
jshint2: {
options: {
jshintrc: '.jshintrc',
force: false,
cache: true,
reporter: 'default',
globals: {
module: true,
require: true,
it: true,
describe: true,
beforeEach: true,
afterEach: true
}
},
all: ['index.js', 'Gruntfile.js', 'test/**/*.js', 'lib/**/*.js']
}
});
grunt.loadNpmTasks('grunt-simple-mocha');
grunt.loadNpmTasks('grunt-jshint2');
grunt.loadNpmTasks('grunt-contrib-connect');
grunt.loadNpmTasks('grunt-watchify');
grunt.registerTask('default', ['watchify', 'connect']);
grunt.registerTask('test', ['simplemocha']);
grunt.registerTask('lint', ['jshint2']);
};