startserve
Version:
Startserve is an open source command line http server for serving static files.
52 lines (47 loc) • 1.12 kB
JavaScript
module.exports = function(grunt) {
"use strict";
/**
* Initialize grunt configurations.
*/
grunt.initConfig({
jsonlint: {
files: {
src: [
'./package.json',
'./config/.jscsrc',
'./config/.jshintrc'
]
}
},
jshint: {
all: ["./bin/**/*.js", "./libs/**/*.js"],
options: {
jshintrc: './config/.jshintrc'
}
},
jscs: {
src: ["./bin/**/*.js", "./libs/**/*.js"],
options: {
config: "./config/.jscsrc"
}
}
});
/**
* Load tasks
*/
grunt.loadNpmTasks("grunt-jsonlint");
grunt.loadNpmTasks("grunt-contrib-jshint");
grunt.loadNpmTasks("grunt-jscs");
/**
* Define tasks : Tasks for development eco - system.
*/
grunt.registerTask("default", [
"jsonlint",
"jshint",
"jscs"
]);
/**
* Alias for `default`.
*/
grunt.registerTask('dev', ["default"]);
};