Skip to content

Commit

Permalink
renamed dist file to .umd.
Browse files Browse the repository at this point in the history
  • Loading branch information
viskin committed May 30, 2015
1 parent d74eaef commit 4c67701
Show file tree
Hide file tree
Showing 8 changed files with 20 additions and 12 deletions.
9 changes: 5 additions & 4 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,13 @@ module.exports = function(grunt) {
markerAnimate: {
options: {
src: 'jquery.easing.1.3.js',
dest: 'dist/jquery.easing.1.3.js',
dest: 'dist/jquery.easing.1.3.umd.js',
deps: {
'default': ['jQuery'],
amd: ['jquery'],
cjs: ['jquery']
}
},
objectToExport: "jQuery"
}
}
},
Expand All @@ -28,8 +29,8 @@ module.exports = function(grunt) {
banner: '/* <%= grunt.task.current.target %> v<%= pkg.version %> <%= grunt.template.today("dd-mm-yyyy") %> Node wrapper for jQuery Easing plugin (C) 2015 Terikon Software */\n'
},
markerAnimate: {
src: 'dist/jquery.easing.1.3.js',
dest: 'dist/jquery.easing.1.3.min.js'
src: 'dist/jquery.easing.1.3.umd.js',
dest: 'dist/jquery.easing.1.3.umd.min.js'
}
},

Expand Down
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,10 @@ To install:

```
npm install jquery-easing
```

Usage:

```js
var jQuery = require("jquery-easing");
```
4 changes: 0 additions & 4 deletions dist/jquery.easing.1.3.min.js

This file was deleted.

1 change: 0 additions & 1 deletion dist/jquery.easing.1.3.min.js.map

This file was deleted.

5 changes: 3 additions & 2 deletions dist/jquery.easing.1.3.js → dist/jquery.easing.1.3.umd.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module unless amdModuleId is set
define(["jquery"], function (a0) {
return (factory(a0));
return (root['jQuery'] = factory(a0));
});
} else if (typeof exports === 'object') {
// Node. Does not work with strict CommonJS, but
// only CommonJS-like environments that support module.exports,
// like Node.
module.exports = factory(require("jquery"));
} else {
factory(jQuery);
root['jQuery'] = factory(jQuery);
}
}(this, function (jQuery) {

Expand Down Expand Up @@ -219,5 +219,6 @@ jQuery.extend( jQuery.easing,
* OF THE POSSIBILITY OF SUCH DAMAGE.
*
*/
return jQuery;

}));
4 changes: 4 additions & 0 deletions dist/jquery.easing.1.3.umd.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 4c67701

Please sign in to comment.