Skip to content

Commit

Permalink
Version 2.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
FrDH committed Aug 28, 2017
1 parent c5232b1 commit d65bb4b
Show file tree
Hide file tree
Showing 9 changed files with 101 additions and 422 deletions.
4 changes: 2 additions & 2 deletions bower.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "jQuery.dotdotdot",
"main": "src/jquery.dotdotdot.min.umd.js",
"version": "1.8.3",
"main": "dist/jquery.dotdotdot.js",
"version": "2.0.0",
"homepage": "http://dotdotdot.frebsite.nl/",
"authors": [
"Fred Heusschen <info@frebsite.nl>"
Expand Down
24 changes: 24 additions & 0 deletions dist/jquery.dotdotdot.js

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

18 changes: 0 additions & 18 deletions dotdotdot.jquery.json

This file was deleted.

22 changes: 10 additions & 12 deletions gulpfile.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
// npm install gulp-uglify gulp-rename gulp-umd --save-dev
// npm install

var gulp = require( 'gulp' ),
uglify = require( 'gulp-uglify' ),
rename = require( 'gulp-rename' ),
umd = require( 'gulp-umd' );
var gulp = require( 'gulp' ),
uglify = require( 'gulp-uglify' ),
umd = require( 'gulp-umd' );



Expand All @@ -24,18 +23,17 @@ gulp.task( 'watch', function() {
// JS task 'gulp js': Runs all JS tasks
gulp.task( 'js', function() {
return gulp.src( 'src/jquery.dotdotdot.js' )
// .pipe( jshint('.jshintrc') )
// .pipe( jshint.reporter( 'default' ) )
.pipe( uglify({ preserveComments: 'license' }) )
.pipe( rename({ suffix: '.min' }) )
.pipe( gulp.dest( 'src' ) )
.pipe( umd({
dependencies: function() { return [ 'jquery' ]; },
dependencies: function() { return [ {
name : 'jquery',
global : 'jQuery',
param : 'jQuery'
} ]; },
exports: function() { return true; },
namespace: sanitizeNamespaceForUmd
}))
.pipe( rename({ suffix: '.umd' }) )
.pipe( gulp.dest( 'src' ) );
.pipe( gulp.dest( 'dist' ) );
});

function sanitizeNamespaceForUmd( file ) {
Expand Down

0 comments on commit d65bb4b

Please sign in to comment.