Permalink
Browse files

add grunt file

  • Loading branch information...
Dmitriy Kiyatkin
Dmitriy Kiyatkin committed Dec 12, 2012
1 parent da3dd3d commit 60858dc055d024f30beea0e5e7378cc5288e87e5
Showing with 41 additions and 0 deletions.
  1. +1 −0 .npmignore
  2. +40 −0 grunt.js
View
@@ -0,0 +1 @@
+/node_modules/
View
@@ -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.