-
Notifications
You must be signed in to change notification settings - Fork 338
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
FrDH
committed
Mar 9, 2016
1 parent
a3968f1
commit ec24d45
Showing
10 changed files
with
100 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,9 @@ | ||
# Ignore Mac system files. | ||
._* | ||
._* | ||
|
||
# Ignore sass-cache files. | ||
*.sass-cache* | ||
*.scssc | ||
|
||
# Ignore Gulp modules | ||
node_modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{ | ||
"name": "jQuery.dotdotdot", | ||
"main": "src/js/jquery.dotdotdot.js", | ||
"version": "1.7.5", | ||
"main": "src/jquery.dotdotdot.min.umd.js", | ||
"version": "1.8.0", | ||
"homepage": "http://dotdotdot.frebsite.nl/", | ||
"authors": [ | ||
"Fred Heusschen <[email protected]>" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
// npm install gulp-uglify gulp-rename gulp-umd --save-dev | ||
|
||
var gulp = require( 'gulp' ), | ||
uglify = require( 'gulp-uglify' ), | ||
rename = require( 'gulp-rename' ), | ||
umd = require( 'gulp-umd' ); | ||
|
||
|
||
|
||
// Default task 'gulp': Runs JS tasks | ||
gulp.task( 'default', function() { | ||
gulp.start( 'js' ); | ||
}); | ||
|
||
|
||
|
||
// Watch task 'gulp watch': Starts a watch on JS tasks | ||
gulp.task( 'watch', function() { | ||
gulp.watch( 'src/*.js', [ 'js' ] ); | ||
}); | ||
|
||
|
||
|
||
// 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' ]; }, | ||
exports: function() { return true; }, | ||
namespace: sanitizeNamespaceForUmd | ||
})) | ||
.pipe( rename({ suffix: '.umd' }) ) | ||
.pipe( gulp.dest( 'src' ) ); | ||
}); | ||
|
||
function sanitizeNamespaceForUmd( file ) { | ||
path = file.path.split( '\\' ).join( '/' ).split( '/' ); | ||
path = path[ path.length - 1 ]; | ||
return path.split( '.' ).join( '_' ); | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
{ | ||
"name": "jquery.dotdotdot", | ||
"main": "src/js/jquery.dotdotdot.js", | ||
"version": "1.7.5", | ||
"main": "src/jquery.dotdotdot.min.umd.js", | ||
"version": "1.8.0", | ||
"homepage": "http://dotdotdot.frebsite.nl/", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/BeSite/jQuery.dotdotdot.git" | ||
"url": "https://github.com/FrDH/jQuery.dotdotdot.git" | ||
}, | ||
"author": "Fred Heusschen <[email protected]>", | ||
"description": "A jQuery plugin for advanced cross-browser ellipsis on multiple line content.", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 12 additions & 12 deletions
24
src/js/jquery.dotdotdot.min.js → src/jquery.dotdotdot.min.js
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.