Skip to content

Commit

Permalink
add grunt file
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmitriy Kiyatkin committed Dec 12, 2012
1 parent da3dd3d commit 60858dc
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 0 deletions.
1 change: 1 addition & 0 deletions .npmignore
@@ -0,0 +1 @@
/node_modules/
40 changes: 40 additions & 0 deletions grunt.js
@@ -0,0 +1,40 @@
module.exports = function(grunt) {

// Project configuration.
grunt.initConfig({
pkg: '<json:package.json>',
test: {
files: ['test/*.js']
},
lint: {
files: ['grunt.js', 'test/*.js', 'index.js']
},
watch: {
files: '<config:lint.files>',
tasks: 'default'
},
jshint: {
options: {
curly: true,
eqeqeq: true,
immed: true,
latedef: true,
newcap: true,
noarg: true,
sub: true,
undef: true,
boss: true,
eqnull: true,
strict: false,
node: true
},
globals: {
exports: true
}
}
});

// Default task.
grunt.registerTask('default', 'lint test');

};

0 comments on commit 60858dc

Please sign in to comment.