Skip to content

Commit

Permalink
Add rebase method
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Zmenak committed Jan 18, 2015
1 parent 7595522 commit 0b40dde
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
12 changes: 12 additions & 0 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ var ngAnnotate = require('browserify-ngannotate');
var notify = require('gulp-notify');
var source = require('vinyl-source-stream');
var browserSync = require('browser-sync');
var Firebase = require('firebase');
var jsonfile = require('jsonfile');

var paths = {
sass: ['./scss/**/*.scss']
Expand Down Expand Up @@ -95,6 +97,16 @@ gulp.task('browserify', function() {
return buildScript('main.js');
});

gulp.task('rebase', function() {
var ref = new Firebase('https://mobile-turk.firebaseio.com/');
jsonfile.readFile('test/fake_data.json', function(err, obj) {
gutil.log(obj);
ref.set(obj, function() {
gutil.log('rebase', 'complete');
});
});
});

gulp.task('git-check', function(done) {
if (!sh.which('git')) {
console.log(
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"gulp-browserify": "^0.5.1",
"gulp-notify": "^2.1.0",
"gulp-util": "^2.2.14",
"jsonfile": "^2.0.0",
"shelljs": "^0.3.0",
"vinyl-source-stream": "^1.0.0",
"watchify": "^2.2.1"
Expand Down

0 comments on commit 0b40dde

Please sign in to comment.