Skip to content

Commit

Permalink
Wrap everything inside an IIFE and add bower file
Browse files Browse the repository at this point in the history
  • Loading branch information
raphamorim committed Aug 10, 2015
1 parent 5638c1f commit 4ca0773
Show file tree
Hide file tree
Showing 5 changed files with 453 additions and 428 deletions.
23 changes: 23 additions & 0 deletions bower.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"name": "inphinity.js",
"main": "inphinity.js",
"version": "0.9.1",
"homepage": "https://github.com/raphamorim/inphinity",
"authors": [
"Raphael H. Amorim <rapha850@gmail.com>"
],
"description": "A infinity scroll without jQuery or other dependency",
"keywords": [
"infinity",
"scroll",
"native"
],
"license": "MIT",
"ignore": [
"**/.*",
"node_modules",
"bower_components",
"test",
"tests"
]
}
12 changes: 6 additions & 6 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ var gulp = require('gulp'),
concat = require('gulp-concat');

gulp.task('build', function() {
return gulp.src('src/*.js')
.pipe(concat('./inphinity.js'))
.pipe(gulp.dest('./'))
.pipe(rename('inphinity.min.js'))
.pipe(uglify())
.pipe(gulp.dest('./'));
return gulp.src('src/**/*.js')
.pipe(concat('./inphinity.js'))
.pipe(gulp.dest('./'))
.pipe(rename('inphinity.min.js'))
.pipe(uglify())
.pipe(gulp.dest('./'));
});

gulp.task('default', ['build'], function(){
Expand Down

0 comments on commit 4ca0773

Please sign in to comment.