2014-08-01 02:28:44 -05:00
|
|
|
'use strict';
|
|
|
|
|
|
|
|
module.exports = function(grunt) {
|
|
|
|
|
|
|
|
// Project configuration.
|
|
|
|
grunt.initConfig({
|
|
|
|
jshint: {
|
|
|
|
options: {
|
|
|
|
jshintrc: '.jshintrc'
|
|
|
|
},
|
|
|
|
gruntfile: {
|
2014-10-23 21:11:39 +02:00
|
|
|
src: ['scribe.js', 'Gruntfile.js']
|
2014-08-01 02:28:44 -05:00
|
|
|
},
|
|
|
|
lib: {
|
2014-11-01 12:25:31 +01:00
|
|
|
src: ['lib/**/*.js', 'examples/**/*.js', 'static/js/**/*.js']
|
2014-08-01 02:28:44 -05:00
|
|
|
},
|
|
|
|
test: {
|
|
|
|
src: ['test/**/*.js']
|
|
|
|
},
|
|
|
|
},
|
|
|
|
watch: {
|
|
|
|
gruntfile: {
|
|
|
|
files: '<%= jshint.gruntfile.src %>',
|
|
|
|
tasks: ['jshint:gruntfile']
|
|
|
|
},
|
|
|
|
lib: {
|
|
|
|
files: '<%= jshint.lib.src %>',
|
2014-10-23 18:39:01 +02:00
|
|
|
tasks: ['jshint:lib']
|
2014-08-01 02:28:44 -05:00
|
|
|
},
|
|
|
|
test: {
|
|
|
|
files: '<%= jshint.test.src %>',
|
2014-10-23 18:39:01 +02:00
|
|
|
tasks: ['jshint:test']
|
2014-08-01 02:28:44 -05:00
|
|
|
},
|
|
|
|
},
|
|
|
|
});
|
|
|
|
|
|
|
|
// These plugins provide necessary tasks.
|
|
|
|
grunt.loadNpmTasks('grunt-contrib-jshint');
|
|
|
|
grunt.loadNpmTasks('grunt-contrib-watch');
|
|
|
|
|
|
|
|
// Default task.
|
2014-12-20 15:48:15 +01:00
|
|
|
grunt.registerTask('default', ['jshint']);
|
2014-08-01 02:28:44 -05:00
|
|
|
|
|
|
|
};
|