forked from bgrins/filereader.js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgrunt.js
33 lines (29 loc) · 959 Bytes
/
grunt.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/*global module:false*/
var exec = require('child_process').exec;
module.exports = function(grunt) {
grunt.initConfig({
meta: {
version: '0.9',
banner: '/*!\n' +
' FileReader.js - a lightweight wrapper for common FileReader usage.\n' +
' Copyright <%= grunt.template.today("yyyy") %> Brian Grinstead - MIT License.\n' +
' See http://github.com/bgrins/filereader.js for documentation.\n' +
' Built: <%= grunt.template.today("yyyy-mm-dd hh:mm:ss TT") %>\n' +
'*/\n'
},
min: {
dist: {
src: ['<banner:meta.banner>', 'filereader.js'],
dest: 'filereader.min.js'
}
},
uglify: {}
});
grunt.registerTask('docs', 'Process Annotated Source.', function() {
var done = this.async();
exec("docco filereader.js", function() {
done();
});
});
grunt.registerTask('default', 'min docs');
};