Skip to content

Commit

Permalink
Merge pull request #12 from tomByrer/patch-2
Browse files Browse the repository at this point in the history
fix version
  • Loading branch information
RobertoGonzalez committed Sep 30, 2014
2 parents 61e890a + 5d11d49 commit c1997b9
Show file tree
Hide file tree
Showing 7 changed files with 428 additions and 14 deletions.
9 changes: 9 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
.DS_Store
*.log
node_modules
build
*.node
components
coverage
*.orig
.idea
4 changes: 2 additions & 2 deletions Copyright
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
* Midnight.js <%= version %>
* jQuery plugin to switch between multiple fixed header designs on the fly, so it looks in line with the content below it.
* http://aerolab.github.io/midnight.js/
*
*
* Copyright (c) 2014 Aerolab <[email protected]>
*
*
* Released under the MIT license
* http://aerolab.github.io/midnight.js/LICENSE.txt
*/
Expand Down
9 changes: 8 additions & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,13 @@ var getCopyright = function () {
return fs.readFileSync('Copyright');
};

gulp.task('buildfromsrc', function () {
gulp.src('./midnight.jquery.src.js')
.pipe(header(getCopyright(), {version: getVersion()}))
.pipe(concat('midnight.jquery.js'))
.pipe(gulp.dest(''));
});

// task
gulp.task('minifyjs', function () {
gulp.src('./midnight.jquery.js')
Expand All @@ -21,4 +28,4 @@ gulp.task('minifyjs', function () {
.pipe(gulp.dest(''));
});

gulp.task('default', ['minifyjs']);
gulp.task('default', ['buildfromsrc', 'minifyjs']);
10 changes: 4 additions & 6 deletions midnight.jquery.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
/*!
* Midnight.js v1.0.1
* Midnight.js 1.0.2
* jQuery plugin to switch between multiple fixed header designs on the fly, so it looks in line with the content below it.
* http://aerolab.github.io/midnight.js/
*
*
* Copyright (c) 2014 Aerolab <[email protected]>
*
*
* Released under the MIT license
* http://aerolab.github.io/midnight.js/LICENSE.txt
*/


((function ( $ ) {
((function ( $ ) {

$.fn.midnight = function( customOptions ) {

Expand Down
6 changes: 3 additions & 3 deletions midnight.jquery.min.js

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

Loading

0 comments on commit c1997b9

Please sign in to comment.