Skip to content

Commit

Permalink
remove named RequireJS module. Fixes #87
Browse files Browse the repository at this point in the history
tick version 1.2.4
  • Loading branch information
desandro committed May 27, 2015
1 parent a97d83b commit ed35f65
Show file tree
Hide file tree
Showing 9 changed files with 45 additions and 8 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "draggabilly",
"main": "draggabilly.js",
"version": "1.2.3",
"version": "1.2.4",
"description": "make that shiz draggable",
"dependencies": {
"classie": "~1.0.1",
Expand Down
4 changes: 4 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

#### v1.2.4

Removed named RequireJS module. Fixed [#87](https://github.com/desandro/draggabilly/issues/87)

#### v1.2.3

+ Updated `draggabilly.pkgd.min.js`, botched in v1.2.2
Expand Down
6 changes: 3 additions & 3 deletions dist/draggabilly.pkgd.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* Draggabilly PACKAGED v1.2.3
* Draggabilly PACKAGED v1.2.4
* Make that shiz draggable
* http://draggabilly.desandro.com
* MIT license
Expand Down Expand Up @@ -1737,7 +1737,7 @@ return Unidragger;
}));

/*!
* Draggabilly v1.2.3
* Draggabilly v1.2.4
* Make that shiz draggable
* http://draggabilly.desandro.com
* MIT license
Expand All @@ -1748,7 +1748,7 @@ return Unidragger;

if ( typeof define == 'function' && define.amd ) {
// AMD
define( 'draggabilly/draggabilly',[
define( [
'classie/classie',
'get-style-property/get-style-property',
'get-size/get-size',
Expand Down
4 changes: 2 additions & 2 deletions dist/draggabilly.pkgd.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion draggabilly.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* Draggabilly v1.2.3
* Draggabilly v1.2.4
* Make that shiz draggable
* http://draggabilly.desandro.com
* MIT license
Expand Down
2 changes: 2 additions & 0 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,8 @@ gulp.task( 'dist', function() {
// add banner
.pipe( addBanner( banner ) )
.pipe( rename('draggabilly.pkgd.js') )
// remove named module
.pipe( replace( "'draggabilly/draggabilly',", '' ) )
.pipe( gulp.dest('dist') )
// pkgd.min.js
.pipe( uglify() )
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "draggabilly",
"version": "1.2.3",
"version": "1.2.4",
"description": "make that shiz draggable",
"main": "draggabilly.js",
"dependencies": {
Expand Down
28 changes: 28 additions & 0 deletions sandbox/require-js/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<!doctype html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width" />

<title>requirejs</title>

<style>
.draggie {
width: 100px;
height: 100px;
background: #09F;
}
</style>


<script data-main="main" src="https://cdnjs.cloudflare.com/ajax/libs/require.js/2.1.17/require.js"></script>

</head>
<body>

<h1>requirejs</h1>

<div class="draggie"></div>

</body>
</html>
3 changes: 3 additions & 0 deletions sandbox/require-js/main.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
requirejs([ '../../dist/draggabilly.pkgd'], function( Draggabilly ) {
new Draggabilly('.draggie');
});

0 comments on commit ed35f65

Please sign in to comment.