Upgraded to Grunt 0.4.0.

This commit is contained in:
Dan Farrelly 2013-03-21 22:40:09 -04:00
parent b2df50a858
commit 2d95a761b0
2 changed files with 20 additions and 7 deletions

View File

@ -12,9 +12,6 @@ module.exports = function(grunt) {
pre: '(function(window, document, undefined){',
post: '})(window,document);'
},
lint: {
files: ['build/<%= pkg.name %>.js']
},
qunit: {
files: ['tests/qunit/index.html']
},
@ -24,7 +21,7 @@ module.exports = function(grunt) {
dest: 'build/<%= pkg.name %>.js'
}
},
min: {
uglify: {
dist: {
src: ['<banner:meta.banner>', '<config:concat.dist.dest>'],
dest: 'build/<%= pkg.name %>.min.js'
@ -35,6 +32,7 @@ module.exports = function(grunt) {
tasks: 'lint qunit'
},
jshint: {
all: ['build/<%= pkg.name %>.js'],
options: {
curly: true,
eqeqeq: true,
@ -51,8 +49,7 @@ module.exports = function(grunt) {
globals: {
jQuery: true
}
},
uglify: {}
}
});
var selenium = require("./tests/selenium.js");
@ -67,7 +64,13 @@ module.exports = function(grunt) {
}
});
// Load tasks
grunt.loadNpmTasks('grunt-contrib-concat');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-contrib-qunit');
// Default task.
grunt.registerTask('default', 'concat lint qunit min webdriver');
grunt.registerTask('default', ['concat', 'jshint', 'qunit', 'uglify', 'webdriver']);
};

View File

@ -6,11 +6,21 @@
"author": {
"name":"Niklas von Hertzen (@niklasvh)"
},
"engines": {
"node": ">=0.8.0"
},
"dependencies": {
"base64-arraybuffer": ">= 0.1.0",
"png-js": ">= 0.1.1",
"webdriver.js": ">= 0.1.0"
},
"devDependencies":{
"grunt": ">=0.4.0",
"grunt-contrib-concat": "*",
"grunt-contrib-uglify": "*",
"grunt-contrib-jshint": "*",
"grunt-contrib-qunit": "*"
},
"homepage": "http://html2canvas.hertzen.com",
"licenses": [{
"type": "MIT"