Skip to content

Commit

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

Expand Down
4 changes: 0 additions & 4 deletions dist/markerAnimate.min.js

This file was deleted.

1 change: 0 additions & 1 deletion dist/markerAnimate.min.js.map

This file was deleted.

6 changes: 3 additions & 3 deletions dist/markerAnimate.js → dist/markerAnimate.umd.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
(function (root, factory) {
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module unless amdModuleId is set
define(["jquery","jquery.easing"], function (a0,b1) {
return (factory(a0,b1));
define(["jquery-easing"], function (a0) {
return (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"),require("jquery.easing"));
module.exports = factory(require("jquery-easing"));
} else {
factory(jQuery);
}
Expand Down
4 changes: 4 additions & 0 deletions dist/markerAnimate.umd.min.js

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

1 change: 1 addition & 0 deletions dist/markerAnimate.umd.min.js.map

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"title": "marker-animate",
"version": "0.0.1",
"description": "marker-animate",
"main": "markerAnimate.js",
"main": "dist/markerAnimate.umd.js",
"scripts": {
"//": "use '|| true' to prevent warning",
"build": "npm install && grunt",
Expand Down

0 comments on commit 103589a

Please sign in to comment.