UNPKG

prestige

Version:

Server designed to connect distributed applications via their REST API

63 lines (61 loc) 1.5 kB
module.exports = function(grunt) { grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), jshint: { // define the files to lint files: ['./lib/**/*.js'], // configure JSHint (documented at http://www.jshint.com/docs/) options: { maxdepth: 2, maxcomplexity: 4, strict: true, undef: false, eqeqeq: true }, }, plato: { coverage: { options: { maxdepth: 2, maxcomplexity: 4, strict: true, undef: false, eqeqeq: true }, files: { 'plato': ['lib/**/*.js'] } } }, mochaTest: { test: { src: ['test/**/*.js'], options: { captureFile: 'mocha/results.txt' } } }, forever: { prestige:{ options: { index: 'app.js', logDir: 'log' } } } }); //grunt grunt.registerTask('default', ['jshint', 'mochaTest']); //start and stop grunt.registerTask('start', ['forever:prestige:start']); grunt.registerTask('stop', ['forever:prestige:stop']); //individual testing tasks grunt.registerTask('plato', ['plato:coverage']); grunt.registerTask('mocha', ['mochaTest']); grunt.registerTask('coverage', ['shell']); //load packages grunt.loadNpmTasks('grunt-mocha-test'); grunt.loadNpmTasks('grunt-plato'); grunt.loadNpmTasks('grunt-forever'); grunt.loadNpmTasks('grunt-contrib-jshint'); };