node-ssi
Version:
40 lines (37 loc) • 928 B
JavaScript
/**
* Copyright (C) 2014 yanni4night.com
* Gruntfile.js
*
* changelog
* 2014-08-20[11:00:15]:authorized
*
* @author yanni4night@gmail.com
* @version 0.1.0
* @since 0.1.0
*/
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
jshint: {
options: {
node: true,
evil:true
},
index: ['index.js']
},
nodeunit: {
tests: ['test/*_test.js']
},
watch: {
index: {
files: ['index.js','test/**/*.{js,html}'],
tasks: ['test']
}
}
});
grunt.loadNpmTasks('grunt-contrib-nodeunit');
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.registerTask('default', ['jshint']);
grunt.registerTask('test', ['default', 'nodeunit']);
};