Scribe.js/Gruntfile.js

45 lines
921 B
JavaScript
Raw Normal View History

'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']
},
lib: {
2014-11-01 12:25:31 +01:00
src: ['lib/**/*.js', 'examples/**/*.js', 'static/js/**/*.js']
},
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']
},
test: {
files: '<%= jshint.test.src %>',
2014-10-23 18:39:01 +02:00
tasks: ['jshint:test']
},
},
});
// 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']);
};