File tree Expand file tree Collapse file tree 2 files changed +60
-0
lines changed Expand file tree Collapse file tree 2 files changed +60
-0
lines changed Original file line number Diff line number Diff line change @@ -57,4 +57,30 @@ module.exports = function(grunt) {
57
57
// Default task.
58
58
grunt . registerTask ( 'default' , 'lint qunit concat min' ) ;
59
59
60
+ grunt . registerTask ( "manifest" , function ( ) {
61
+ var pkg = grunt . config ( "pkg" ) ;
62
+ grunt . file . write ( "requestAnimationFrame.jquery.json" , JSON . stringify ( {
63
+ name : "requestAnimationFrame" ,
64
+ title : pkg . title ,
65
+ description : pkg . description ,
66
+ keywords : pkg . keywords ,
67
+ version : pkg . version ,
68
+ author : {
69
+ name : pkg . author . name ,
70
+ url : pkg . author . url . replace ( "master" , pkg . version )
71
+ } ,
72
+ maintainers : pkg . maintainers ,
73
+ licenses : pkg . licenses . map ( function ( license ) {
74
+ license . url = license . url . replace ( "master" , pkg . version ) ;
75
+ return license ;
76
+ } ) ,
77
+ bugs : pkg . bugs ,
78
+ homepage : pkg . homepage ,
79
+ docs : pkg . homepage ,
80
+ dependencies : {
81
+ jquery : ">=1.8"
82
+ }
83
+ } , null , "\t" ) ) ;
84
+ } ) ;
85
+
60
86
} ;
Original file line number Diff line number Diff line change
1
+ {
2
+ "name" : " jquery-requestAnimationFrame" ,
3
+ "title" : " jQuery requestAnimationFrame" ,
4
+ "description" : " Replaces the standard jQuery timer loop with requestAnimationFrame where supported. Requires jQuery 1.8" ,
5
+ "version" : " 0.1.0" ,
6
+ "homepage" : " https://github.com/gnarf37/jquery-requestAnimationFrame" ,
7
+ "author" : {
8
+ "name" : " Corey Frang" ,
9
+ "url" : " https://github.com/gnarf37"
10
+ },
11
+ "maintainers" : [
12
+ {
13
+ "name" : " Corey Frang" ,
14
+ "email" : " gnarf37@gmail.com" ,
15
+ "url" : " http://gnarf.net"
16
+ }
17
+ ],
18
+ "repository" : {
19
+ "type" : " git" ,
20
+ "url" : " git://github.com/gnarf37/jquery-requestAnimationFrame.git"
21
+ },
22
+ "bugs" : " https://github.com/gnarf37/jquery-requestAnimationFrame/issues" ,
23
+ "licenses" : [
24
+ {
25
+ "type" : " MIT" ,
26
+ "url" : " https://github.com/jquery/gnarf37/jquery-requestAnimationFrame/blob/master/LICENSE-MIT"
27
+ }
28
+ ],
29
+ "dependencies" : {},
30
+ "devDependencies" : {
31
+ "grunt" : " ~0.3.17"
32
+ },
33
+ "keywords" : [ " animation" ]
34
+ }
You can’t perform that action at this time.
0 commit comments