mirror of
https://github.com/niklasvh/html2canvas.git
synced 2023-08-10 21:13:10 +03:00
Upgraded to Grunt 0.4.0.
This commit is contained in:
parent
b2df50a858
commit
2d95a761b0
@ -12,9 +12,6 @@ module.exports = function(grunt) {
|
|||||||
pre: '(function(window, document, undefined){',
|
pre: '(function(window, document, undefined){',
|
||||||
post: '})(window,document);'
|
post: '})(window,document);'
|
||||||
},
|
},
|
||||||
lint: {
|
|
||||||
files: ['build/<%= pkg.name %>.js']
|
|
||||||
},
|
|
||||||
qunit: {
|
qunit: {
|
||||||
files: ['tests/qunit/index.html']
|
files: ['tests/qunit/index.html']
|
||||||
},
|
},
|
||||||
@ -24,7 +21,7 @@ module.exports = function(grunt) {
|
|||||||
dest: 'build/<%= pkg.name %>.js'
|
dest: 'build/<%= pkg.name %>.js'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
min: {
|
uglify: {
|
||||||
dist: {
|
dist: {
|
||||||
src: ['<banner:meta.banner>', '<config:concat.dist.dest>'],
|
src: ['<banner:meta.banner>', '<config:concat.dist.dest>'],
|
||||||
dest: 'build/<%= pkg.name %>.min.js'
|
dest: 'build/<%= pkg.name %>.min.js'
|
||||||
@ -35,6 +32,7 @@ module.exports = function(grunt) {
|
|||||||
tasks: 'lint qunit'
|
tasks: 'lint qunit'
|
||||||
},
|
},
|
||||||
jshint: {
|
jshint: {
|
||||||
|
all: ['build/<%= pkg.name %>.js'],
|
||||||
options: {
|
options: {
|
||||||
curly: true,
|
curly: true,
|
||||||
eqeqeq: true,
|
eqeqeq: true,
|
||||||
@ -51,8 +49,7 @@ module.exports = function(grunt) {
|
|||||||
globals: {
|
globals: {
|
||||||
jQuery: true
|
jQuery: true
|
||||||
}
|
}
|
||||||
},
|
}
|
||||||
uglify: {}
|
|
||||||
});
|
});
|
||||||
|
|
||||||
var selenium = require("./tests/selenium.js");
|
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.
|
// Default task.
|
||||||
grunt.registerTask('default', 'concat lint qunit min webdriver');
|
grunt.registerTask('default', ['concat', 'jshint', 'qunit', 'uglify', 'webdriver']);
|
||||||
|
|
||||||
};
|
};
|
10
package.json
10
package.json
@ -6,11 +6,21 @@
|
|||||||
"author": {
|
"author": {
|
||||||
"name":"Niklas von Hertzen (@niklasvh)"
|
"name":"Niklas von Hertzen (@niklasvh)"
|
||||||
},
|
},
|
||||||
|
"engines": {
|
||||||
|
"node": ">=0.8.0"
|
||||||
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"base64-arraybuffer": ">= 0.1.0",
|
"base64-arraybuffer": ">= 0.1.0",
|
||||||
"png-js": ">= 0.1.1",
|
"png-js": ">= 0.1.1",
|
||||||
"webdriver.js": ">= 0.1.0"
|
"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",
|
"homepage": "http://html2canvas.hertzen.com",
|
||||||
"licenses": [{
|
"licenses": [{
|
||||||
"type": "MIT"
|
"type": "MIT"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user