Skip to content

Commit

Permalink
Added dist and src folders. Improved the settings for bower and publi…
Browse files Browse the repository at this point in the history
…shed to npm.

Left the original js files on the root in case someone is still linking to those.
  • Loading branch information
RobertoGonzalez committed Sep 29, 2015
1 parent 8f096b9 commit 40c002a
Show file tree
Hide file tree
Showing 8 changed files with 529 additions and 10 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Expand Up @@ -6,4 +6,5 @@ build
components
coverage
*.orig
.idea
.idea
bower_components/
5 changes: 4 additions & 1 deletion bower.json
@@ -1,7 +1,10 @@
{
"name": "midnight",
"description": "Switch fixed headers on the fly",
"main": "midnight.jquery.js",
"main": "dist/midnight.jquery.min.js",
"dependencies": {
"jquery": "~1.11.3"
},
"homepage": "https://github.com/Aerolab/midnight.js",
"license": "MIT",
"authors": [
Expand Down
500 changes: 500 additions & 0 deletions dist/midnight.jquery.js

Large diffs are not rendered by default.

11 changes: 11 additions & 0 deletions dist/midnight.jquery.min.js

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

6 changes: 3 additions & 3 deletions gulpfile.js
Expand Up @@ -13,13 +13,13 @@ var getCopyright = function () {
};

gulp.task('build', function () {
gulp.src('./midnight.jquery.src.js')
gulp.src('./src/midnight.jquery.src.js')
.pipe(header(getCopyright(), {version: getVersion()}))
.pipe(concat('midnight.jquery.js'))
.pipe(gulp.dest('./'))
.pipe(gulp.dest('./dist'))
.pipe(uglify({preserveComments:'some'}))
.pipe(concat('midnight.jquery.min.js'))
.pipe(gulp.dest('./'));
.pipe(gulp.dest('./dist'));
});

gulp.task('default', ['build']);
6 changes: 3 additions & 3 deletions index.html
Expand Up @@ -67,7 +67,7 @@


<div class="top-links" data-midnight="white">
<a class="button" href="https://aerolab.github.io/midnight.js/midnight.jquery.min.js" download>Download</a>
<a class="button" href="https://aerolab.github.io/midnight.js/dist/midnight.jquery.min.js" download>Download</a>
<a class="button button-github" href="https://github.com/Aerolab/midnight.js" target="_blank">Fork on GitHub</a>
</div>

Expand Down Expand Up @@ -224,7 +224,7 @@ <h2>Further customization</h2>

<div class="container">
<div class="buttons wow fadeIn">
<a class="button" href="https://aerolab.github.io/midnight.js/midnight.jquery.min.js" download>Download</a>
<a class="button" href="https://aerolab.github.io/midnight.js/dist/midnight.jquery.min.js" download>Download</a>
<a class="button" href="https://github.com/Aerolab/midnight.js" target="_blank"><i class="icon-github"></i> Fork on GitHub</a>
</div>
</div>
Expand All @@ -243,7 +243,7 @@ <h2>Further customization</h2>
<script src="assets/js/prism.js"></script>
<script src="assets/js/wow.min.js"></script>
<script src="assets/js/viewport-units-buggyfill.js"></script>
<script src="midnight.jquery.min.js"></script>
<script src="dist/midnight.jquery.min.js"></script>
<script>


Expand Down
8 changes: 6 additions & 2 deletions package.json
@@ -1,7 +1,11 @@
{
"name": "Midnight.JS",
"version": "1.1.0",
"name": "midnight.js",
"version": "1.1.1",
"description": "A jQuery plugin to switch fixed headers on the fly",
"main": "dist/midnight.jquery.min.js",
"dependencies": {
"jquery": "~1.11.3"
},
"devDependencies": {
"gulp": "^3.8.8",
"gulp-concat": "^2.4.1",
Expand Down
File renamed without changes.

0 comments on commit 40c002a

Please sign in to comment.