Skip to content

Commit

Permalink
tick v1.2.3; fix building pkgd.min.js
Browse files Browse the repository at this point in the history
changelog
  • Loading branch information
desandro committed Apr 17, 2015
1 parent ab002be commit a97d83b
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 22 deletions.
2 changes: 1 addition & 1 deletion bower.json
@@ -1,7 +1,7 @@
{
"name": "draggabilly",
"main": "draggabilly.js",
"version": "1.2.2",
"version": "1.2.3",
"description": "make that shiz draggable",
"dependencies": {
"classie": "~1.0.1",
Expand Down
8 changes: 8 additions & 0 deletions changelog.md
@@ -1,5 +1,13 @@
# Changelog

#### v1.2.3

+ Updated `draggabilly.pkgd.min.js`, botched in v1.2.2

#### v1.2.2

Fixed bug with AMD/RequireJS, missing `return factory`. Fixed [#82](https://github.com/desandro/draggabilly/pull/82)

#### v1.2.1

+ Fixed bug not removing `is-pointer-down` class
Expand Down
4 changes: 2 additions & 2 deletions dist/draggabilly.pkgd.js
@@ -1,5 +1,5 @@
/*!
* Draggabilly PACKAGED v1.2.2
* Draggabilly PACKAGED v1.2.3
* Make that shiz draggable
* http://draggabilly.desandro.com
* MIT license
Expand Down Expand Up @@ -1737,7 +1737,7 @@ return Unidragger;
}));

/*!
* Draggabilly v1.2.2
* Draggabilly v1.2.3
* Make that shiz draggable
* http://draggabilly.desandro.com
* MIT license
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
@@ -1,5 +1,5 @@
/*!
* Draggabilly v1.2.2
* Draggabilly v1.2.3
* Make that shiz draggable
* http://draggabilly.desandro.com
* MIT license
Expand Down
19 changes: 4 additions & 15 deletions gulpfile.js
Expand Up @@ -94,12 +94,13 @@ function getBanner() {

var replace = require('gulp-replace');
var rename = require('gulp-rename');
var uglify = require('gulp-uglify');

function addBanner( str ) {
return replace( /^/, str );
}

gulp.task( 'requirejs', function() {
gulp.task( 'dist', function() {
var banner = getBanner();
// HACK src is not needed
// should refactor rjsOptimize to produce src
Expand All @@ -119,27 +120,15 @@ gulp.task( 'requirejs', function() {
// add banner
.pipe( addBanner( banner ) )
.pipe( rename('draggabilly.pkgd.js') )
.pipe( gulp.dest('dist') );
});

// ----- uglify ----- //

var uglify = require('gulp-uglify');

gulp.task( 'uglify', function() {
var banner = getBanner();
return gulp.src('dist/draggabilly.pkgd.js')
.pipe( gulp.dest('dist') )
// pkgd.min.js
.pipe( uglify() )
// add banner
.pipe( addBanner( banner ) )
.pipe( rename('draggabilly.pkgd.min.js') )
.pipe( gulp.dest('dist') );
});

// ----- dist ----- //

gulp.task( 'dist', [ 'requirejs', 'uglify' ] );

// ----- default ----- //

gulp.task( 'default', [
Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "draggabilly",
"version": "1.2.2",
"version": "1.2.3",
"description": "make that shiz draggable",
"main": "draggabilly.js",
"dependencies": {
Expand Down

0 comments on commit a97d83b

Please sign in to comment.