Skip to content

Commit

Permalink
Updated to Grunt 0.4
Browse files Browse the repository at this point in the history
  • Loading branch information
Lukas Böcker committed Jan 5, 2013
1 parent 15f296d commit 7cf3f09
Show file tree
Hide file tree
Showing 4 changed files with 55 additions and 49 deletions.
3 changes: 2 additions & 1 deletion .travis.yml
Expand Up @@ -3,4 +3,5 @@ node_js:
- 0.8
before_script:
- "export DISPLAY=:99.0"
- "npm install"
- "npm install -g grunt-cli"
- "npm install"
49 changes: 49 additions & 0 deletions Gruntfile.js
@@ -0,0 +1,49 @@
module.exports = function (grunt) {
'use strict';

// Project configuration.
grunt.initConfig({

pkg: grunt.file.readJSON('package.json'),

nodeunit: {
test: ['test/**/*.js']
},

watch: {
scripts: {
files: '<%= jshint.files %>',
tasks: 'default',
options: {
interrupt: true
}
}
},

jshint: {
options: {
curly: true,
eqeqeq: true,
immed: true,
latedef: true,
newcap: true,
noarg: true,
sub: true,
undef: true,
boss: true,
eqnull: true,
node: true,
es5: true
},
globals: {},
files: ['grunt.js', 'tasks/**/*.js', 'test/**/*.js']
}
});

grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-contrib-nodeunit');
grunt.loadNpmTasks('grunt-contrib-watch');

grunt.registerTask('default', ['jshint:files', 'nodeunit:test']);
grunt.registerTask('travis', 'default');
};
47 changes: 0 additions & 47 deletions grunt.js

This file was deleted.

5 changes: 4 additions & 1 deletion package.json
Expand Up @@ -29,7 +29,10 @@
"test": "grunt travis --verbose"
},
"dependencies": {
"grunt": ">=0.3.x",
"grunt": ">=0.4.x",
"grunt-contrib-jshint": "0.1.x",
"grunt-contrib-nodeunit": "0.1.x",
"grunt-contrib-watch": "0.2.x",
"lodash": "latest",
"semver": "1.1.x",
"temp": "0.4.x",
Expand Down

0 comments on commit 7cf3f09

Please sign in to comment.