mailbuild
Version:
mailbuild is a low level rfc2822 message composer. Define your own mime tree, no magic included.
59 lines (53 loc) • 1.46 kB
JavaScript
module.exports = function(grunt) {
'use strict';
// Project configuration.
grunt.initConfig({
jshint: {
all: ['*.js', 'src/*.js', 'test/*.js'],
options: {
jshintrc: '.jshintrc'
}
},
connect: {
dev: {
options: {
port: 12345,
base: '.',
keepalive: true
}
},
test: {
options: {
port: 12346,
base: '.'
}
}
},
mochaTest: {
all: {
options: {
reporter: 'spec'
},
src: ['test/*-unit.js']
}
},
mocha_phantomjs: {
all: {
options: {
reporter: 'spec',
urls: [
'http://localhost:12346/test/index.html'
]
}
}
}
});
// Load the plugin(s)
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-mocha-phantomjs');
grunt.loadNpmTasks('grunt-contrib-connect');
grunt.loadNpmTasks('grunt-mocha-test');
// Tasks
grunt.registerTask('dev', ['connect:dev']);
grunt.registerTask('default', ['jshint', 'mochaTest', 'connect:test', 'mocha_phantomjs']);
};