File tree 1 file changed +30
-2
lines changed
1 file changed +30
-2
lines changed Original file line number Diff line number Diff line change 1
1
module . exports = function ( grunt ) {
2
2
3
3
grunt . initConfig ( {
4
+
5
+ // Meta informations
6
+ pkg : '<json:package.json>' ,
7
+ meta : {
8
+ banner : '/*\n' +
9
+ ' * <%= pkg.title || pkg.name %> - v<%= pkg.version %>\n' +
10
+ ' * <%= pkg.description %>\n' +
11
+ ' * <%= pkg.homepage %>\n\n' +
12
+ ' * Copyright (c) <%= grunt.template.today("yyyy") %>\n' +
13
+ ' * MIT License\n' +
14
+ ' */'
15
+ } ,
16
+ concat : {
17
+ dist : {
18
+ src : [ '<banner:meta.banner>' , '<file_strip_banner:src/jquery.github.js>' ] ,
19
+ dest : 'dist/jquery.github.js'
20
+ }
21
+ } ,
22
+
23
+ // Lint definitions
4
24
lint : {
5
- files : [ 'jquery.github.js' ]
25
+ files : [ 'src/ jquery.github.js' ]
6
26
} ,
7
27
jshint : {
8
28
options : {
9
29
multistr : true
10
30
}
31
+ } ,
32
+
33
+ // Minify definitions
34
+ min : {
35
+ dist : {
36
+ src : [ '<banner:meta.banner>' , '<config:concat.dist.dest>' ] ,
37
+ dest : 'dist/jquery.github.min.js'
38
+ }
11
39
}
12
40
} ) ;
13
41
14
- grunt . registerTask ( 'default' , 'lint' ) ;
42
+ grunt . registerTask ( 'default' , 'lint min concat ' ) ;
15
43
grunt . registerTask ( 'travis' , 'lint' ) ;
16
44
17
45
} ;
You can’t perform that action at this time.
0 commit comments