-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
1 parent
a42beb9
commit f1b54b5
Showing
14 changed files
with
101 additions
and
145 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,3 +1,3 @@ | ||
*.DS_Store | ||
build/node_modules | ||
node_modules | ||
assets |
File renamed without changes.
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,6 +1,8 @@ | ||
{ | ||
"name": "parallax", | ||
"description": "Parallax Engine that reacts to the orientation of a smart device.", | ||
"version": "1.0.0", | ||
"license": "MIT", | ||
"homepage": "http://wagerfield.github.io/parallax/", | ||
"authors": [ | ||
"Matthew Wagerfield <[email protected]>" | ||
|
@@ -11,12 +13,9 @@ | |
"deploy/jquery.parallax.js", | ||
"deploy/jquery.parallax.min.js" | ||
], | ||
"description": "Simple, lightweight Parallax Engine that reacts to the orientation of a smart device. Where no gyroscope or motion detection hardware is available, the position of the cursor is used instead.", | ||
"license": "MIT", | ||
"ignore": [ | ||
"**/.*", | ||
"assets", | ||
"build", | ||
"source", | ||
"examples" | ||
], | ||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
Large diffs are not rendered by default.
Oops, something went wrong.
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
Large diffs are not rendered by default.
Oops, something went wrong.
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,43 @@ | ||
var gulp = require('gulp'), | ||
plugins = require("gulp-load-plugins")(); | ||
|
||
function build(stream, file) { | ||
return stream | ||
.pipe(plugins.jshint()) | ||
.pipe(plugins.jshint.reporter('jshint-stylish')) | ||
.pipe(plugins.concat(file)) | ||
.pipe(gulp.dest('deploy')) | ||
.pipe(plugins.rename({suffix: '.min'})) | ||
.pipe(plugins.uglify()) | ||
.pipe(gulp.dest('deploy')); | ||
} | ||
|
||
gulp.task('build.parallax', function() { | ||
return build(gulp.src([ | ||
'LICENSE', | ||
'source/parallax.js', | ||
'source/requestAnimationFrame.js' | ||
]), 'parallax.js'); | ||
}); | ||
|
||
gulp.task('build.jquery.parallax', function() { | ||
return build(gulp.src([ | ||
'LICENSE', | ||
'source/jquery.parallax.js', | ||
'source/requestAnimationFrame.js' | ||
]), 'jquery.parallax.js'); | ||
}); | ||
|
||
gulp.task('clean', function() { | ||
return gulp.src(['deploy'], {read: false}).pipe(plugins.clean()); | ||
}); | ||
|
||
gulp.task('build', ['clean'], function() { | ||
gulp.start('build.parallax', 'build.jquery.parallax'); | ||
}); | ||
|
||
gulp.task('watch', function() { | ||
gulp.watch('source/**/*.js', ['build']); | ||
}); | ||
|
||
gulp.task('default', ['build']); |
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,39 @@ | ||
{ | ||
"name": "parallax", | ||
"description": "Parallax Engine that reacts to the orientation of a smart device.", | ||
"version": "1.0.0", | ||
"license": "MIT", | ||
"homepage": "http://wagerfield.github.io/parallax/", | ||
"author": "Matthew Wagerfield <[email protected]>", | ||
"directories": { | ||
"example": "examples" | ||
}, | ||
"scripts": { | ||
"build": "gulp" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git://github.com/wagerfield/parallax.git" | ||
}, | ||
"keywords": [ | ||
"parallax", | ||
"gyroscope", | ||
"jquery", | ||
"javascript", | ||
"library" | ||
], | ||
"bugs": { | ||
"url": "https://github.com/wagerfield/parallax/issues" | ||
}, | ||
"devDependencies": { | ||
"gulp": "^3.6.1", | ||
"gulp-load-plugins": "^0.5.0", | ||
"gulp-clean": "^0.2.4", | ||
"gulp-concat": "^2.2.0", | ||
"gulp-notify": "^1.2.5", | ||
"gulp-rename": "^1.2.0", | ||
"gulp-jshint": "^1.5.3", | ||
"gulp-uglify": "^0.2.1", | ||
"jshint-stylish": "^0.1.5" | ||
} | ||
} |
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