Skip to content

Commit 1c1a551

Browse files
committed
Adding manifests for plugins site
1 parent a8ca204 commit 1c1a551

File tree

2 files changed

+60
-0
lines changed

2 files changed

+60
-0
lines changed

grunt.js

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,4 +57,30 @@ module.exports = function(grunt) {
5757
// Default task.
5858
grunt.registerTask('default', 'lint qunit concat min');
5959

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+
6086
};

package.json

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
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+
}

0 commit comments

Comments
 (0)