ecg-quicktest-model
Version:
JavaScript Model for the ECG quick test
53 lines (44 loc) • 1.14 kB
JavaScript
/*
* helper-lib
* http://github.com/assemble/helper-lib
*/
module.exports = function(grunt) {
'use strict';
// load all grunt tasks
require('matchdep').filterDev('grunt-*').forEach(grunt.loadNpmTasks);
// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
watch: {
tests: {
files: ['src/**/*', 'test/**/*'],
tasks: ['jshint', 'test']
}
},
// Configuration to be run (and then tested).
// Run mocha tests.
simplemocha: {
options: {
globals: ['should'],
timeout: 3000,
ignoreLeaks: false,
ui: 'bdd',
reporter: 'list'
},
all: {src: ['test/**/*.js'] }
},
jshint: {
options: {
jshintrc: '.jshintrc'
},
all: ['src/**/*', 'test/**/*.js']
},
// Clean test files before building or re-testing.
clean: {
}
});
// By default, build templates using helpers and run all tests.
grunt.registerTask('validate', ['jshint']);
grunt.registerTask('test', ['jshint', 'simplemocha']);
grunt.registerTask('dev', ['test', 'watch']);
};