Add Gruntfile.js to gitignore for now

This commit is contained in:
Guillaume Wuip 2015-01-01 17:21:15 +01:00
parent a3e880efb0
commit 07cf1ff77e
2 changed files with 45 additions and 1 deletions

2
.gitignore vendored
View file

@ -7,4 +7,4 @@ logs*/
Thumbs.db
npm-debug.log
npm-debug.logGruntfile.js

44
Gruntfile.js Normal file
View file

@ -0,0 +1,44 @@
'use strict';
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
jshint: {
options: {
jshintrc: '.jshintrc'
},
gruntfile: {
src: ['scribe.js', 'Gruntfile.js']
},
lib: {
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 %>',
tasks: ['jshint:lib']
},
test: {
files: '<%= jshint.test.src %>',
tasks: ['jshint:test']
},
},
});
// These plugins provide necessary tasks.
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-contrib-watch');
// Default task.
grunt.registerTask('default', ['jshint']);
};