catlogjs
Version:
Static site generator, translate human readable text format(such as markdown) into html, with a lot of other functions
61 lines (56 loc) • 1.3 kB
JavaScript
/*
* grunt-contrib-sass
* http://gruntjs.com/
*
* Copyright (c) 2012 Sindre Sorhus, contributors
* Licensed under the MIT license.
*/
'use strict';
module.exports = function (grunt) {
grunt.initConfig({
jshint: {
options: {
jshintrc: '.jshintrc'
},
all: [
'Gruntfile.js',
'tasks/*.js',
'<%= nodeunit.tests %>'
]
},
clean: {
test: ['tmp']
},
htmlmin: {
options: {
removeComments: true,
collapseWhitespace: true
},
compile: {
files: {
'tmp/test.html': ['test/fixtures/test.html']
}
},
multiple: {
files: {
'tmp/multiple.html': ['test/fixtures/multiple*.html']
}
},
empty: {
files: {
'tmp/idontexist.html': ['test/fixtures/idontexist.html']
}
}
},
nodeunit: {
tests: ['test/*_test.js']
}
});
grunt.loadTasks('tasks');
grunt.loadNpmTasks('grunt-contrib-clean');
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-contrib-nodeunit');
grunt.loadNpmTasks('grunt-contrib-internal');
grunt.registerTask('test', ['clean', 'htmlmin', 'nodeunit']);
grunt.registerTask('default', ['jshint', 'test', 'build-contrib']);
};