Skip to content

Commit 5d11d49

Browse files
committed
fix version
Split `src.js` off of `midnight.jquery.js` Add Gulp task to add fresh header to src, output to `midnight.jquery.js` (So please edit `midnight.jquery.src.js` from now on) Add `.gitignore` actually changed version in `package.json` :)
1 parent 8208905 commit 5d11d49

6 files changed

+426
-12
lines changed

.gitignore

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
.DS_Store
2+
*.log
3+
node_modules
4+
build
5+
*.node
6+
components
7+
coverage
8+
*.orig
9+
.idea

Copyright

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
* Midnight.js <%= version %>
33
* jQuery plugin to switch between multiple fixed header designs on the fly, so it looks in line with the content below it.
44
* http://aerolab.github.io/midnight.js/
5-
*
5+
*
66
* Copyright (c) 2014 Aerolab <info@aerolab.co>
7-
*
7+
*
88
* Released under the MIT license
99
* http://aerolab.github.io/midnight.js/LICENSE.txt
1010
*/

gulpfile.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,13 @@ var getCopyright = function () {
1212
return fs.readFileSync('Copyright');
1313
};
1414

15+
gulp.task('buildfromsrc', function () {
16+
gulp.src('./midnight.jquery.src.js')
17+
.pipe(header(getCopyright(), {version: getVersion()}))
18+
.pipe(concat('midnight.jquery.js'))
19+
.pipe(gulp.dest(''));
20+
});
21+
1522
// task
1623
gulp.task('minifyjs', function () {
1724
gulp.src('./midnight.jquery.js')
@@ -21,4 +28,4 @@ gulp.task('minifyjs', function () {
2128
.pipe(gulp.dest(''));
2229
});
2330

24-
gulp.task('default', ['minifyjs']);
31+
gulp.task('default', ['buildfromsrc', 'minifyjs']);

midnight.jquery.js

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,14 @@
11
/*!
2-
* Midnight.js v1.0.1
2+
* Midnight.js 1.0.2
33
* jQuery plugin to switch between multiple fixed header designs on the fly, so it looks in line with the content below it.
44
* http://aerolab.github.io/midnight.js/
5-
*
5+
*
66
* Copyright (c) 2014 Aerolab <info@aerolab.co>
7-
*
7+
*
88
* Released under the MIT license
99
* http://aerolab.github.io/midnight.js/LICENSE.txt
1010
*/
11-
12-
13-
((function ( $ ) {
11+
((function ( $ ) {
1412

1513
$.fn.midnight = function( customOptions ) {
1614

midnight.jquery.min.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)