forked from meemoo/meemoo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgrunt.js
55 lines (52 loc) · 1.13 KB
/
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
/*global module:false */
module.exports = function(grunt) {
"use strict";
grunt.initConfig({
meta: {
banner: '/*! Meemoo.js - v1 - ' +
'<%= grunt.template.today("yyyy-mm-dd") %>\n' +
'* http://meemoo.org/\n' +
'* https://github.com/meemoo/meemoo/\n' +
'* Copyright (c) <%= grunt.template.today("yyyy") %> Forrest Oliphant;' +
' Licensed MIT, AGPL \n' +
'*/'
},
min: {
dist: {
src: [
'<banner:meta.banner>',
'v1/meemoo.js'
],
dest: 'v1/meemoo-min.js'
}
},
lint: {
files: ['grunt.js', 'v1/meemoo.js']
},
watch: {
files: '<config:lint.files>',
tasks: 'lint'
},
jshint: {
options: {
forin:true,
noarg:true,
noempty:true,
eqeqeq:true,
bitwise:true,
strict:true,
undef:true,
curly:true,
browser:true,
devel:true,
indent:2,
maxerr:50
},
globals: {
"console": true
}
}
});
// Default task.
grunt.registerTask('default', 'lint min');
};