Skip to content

Commit def509f

Browse files
committed
Add jquery easing plugin
1 parent b39d87d commit def509f

File tree

3 files changed

+57
-0
lines changed

3 files changed

+57
-0
lines changed

Makefile

+1
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ build:
66
grunt build --gruntfile jquery/Gruntfile.js
77
grunt build --gruntfile tablesorter/Gruntfile.js
88
grunt build --gruntfile datatables/Gruntfile.js
9+
grunt build --gruntfile easing/Gruntfile.js

easing/Gruntfile.js

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
module.exports = function(grunt) {
2+
var pkg = grunt.file.readJSON('package.json');
3+
4+
grunt.initConfig({
5+
pkg: pkg,
6+
7+
download: {
8+
options: {
9+
dest: 'dist'
10+
},
11+
src: {
12+
options: {
13+
header: [
14+
'define("<%= pkg.family %>/<%= pkg.name %>/<%= pkg.version %>/easing-debug", ["jquery-debug"], function(require) {',
15+
' var jQuery = require("jquery-debug"); '
16+
].join('\n'),
17+
footer: '});'
18+
},
19+
url: 'https://raw.github.com/danro/jquery-easing/master/jquery.easing.js',
20+
name: 'easing-debug.js'
21+
},
22+
min: {
23+
options: {
24+
header: [
25+
'define("<%= pkg.family %>/<%= pkg.name %>/<%= pkg.version %>/easing", ["jquery"], function(require) {',
26+
' var jQuery = require("jquery"); '
27+
].join('\n'),
28+
footer: '});'
29+
},
30+
url: 'https://raw.github.com/danro/jquery-easing/master/jquery.easing.min.js',
31+
name: 'easing.js'
32+
}
33+
}
34+
});
35+
36+
grunt.loadTasks('../_tasks/download/tasks');
37+
grunt.registerTask('build', ['download']);
38+
};

easing/package.json

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"family": "jquery",
3+
"name": "easing",
4+
"version": "1.3.0",
5+
"description": "jQuery easing plugin",
6+
"author": {
7+
"name": "jQuery Foundation and other contributors",
8+
"url": "http://jquery.com/"
9+
},
10+
"keywords": [ "jquery", "animation", "easing" ],
11+
12+
"spm": {
13+
"alias": {
14+
"jquery": "jquery"
15+
},
16+
"output": ["easing.js"]
17+
}
18+
}

0 commit comments

Comments
 (0)