forked from googlearchive/firefeed
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request googlearchive#34 from firebase/v2
V2
- Loading branch information
Showing
10 changed files
with
265 additions
and
90 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 |
---|---|---|
@@ -0,0 +1,53 @@ | ||
var gulp = require('gulp'), | ||
connect = require('gulp-connect'), | ||
open = require('gulp-open'), | ||
port = process.env.port || 3001; | ||
|
||
gulp.task('open', function(){ | ||
var options = { | ||
url: 'http://localhost:' + port, | ||
}; | ||
gulp.src('./www/index.html') | ||
.pipe(open('', options)); | ||
}); | ||
|
||
gulp.task('connect', function() { | ||
connect.server({ | ||
root: 'www', | ||
port: port, | ||
livereload: true | ||
}); | ||
}); | ||
|
||
gulp.task('test', function() { | ||
connect.server({ | ||
root: '.', | ||
port: port - 1, | ||
livereload: true | ||
}); | ||
|
||
var options = { | ||
url: 'http://localhost:' + (port - 1), | ||
}; | ||
gulp.src('./test/index.html') | ||
.pipe(open('', options)) | ||
}); | ||
|
||
gulp.task('js', function () { | ||
gulp.src('./www/**/*.js') | ||
.pipe(connect.reload()); | ||
}); | ||
|
||
gulp.task('html', function () { | ||
gulp.src('./www/*.html') | ||
.pipe(connect.reload()); | ||
}); | ||
|
||
gulp.task('watch', function() { | ||
gulp.watch('www/dist/js/*.js', ['js']); | ||
gulp.watch('www/index.html', ['html']); | ||
}); | ||
|
||
gulp.task('default', ['connect', 'watch']); | ||
|
||
gulp.task('serve', ['connect', 'watch', 'open']); |
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,32 @@ | ||
{ | ||
"name": "firefeed", | ||
"version": "0.1.0", | ||
"description": "Firefeed is a web app that lets users post small messages called sparks to their feed. You can follow other users, and their sparks will appear on your feed.", | ||
"main": "gulpfile.js", | ||
"directories": { | ||
"test": "test" | ||
}, | ||
"scripts": { | ||
"start": "gulp serve", | ||
"build": "gulp" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/firebase/firefeed.git" | ||
}, | ||
"keywords": [ | ||
"firebase", | ||
"twitter clone" | ||
], | ||
"author": "Firebase", | ||
"license": "MIT", | ||
"bugs": { | ||
"url": "https://github.com/firebase/firefeed/issues" | ||
}, | ||
"homepage": "https://github.com/firebase/firefeed", | ||
"dependencies": { | ||
"gulp": "^3.8.8", | ||
"gulp-connect": "^2.0.6", | ||
"gulp-open": "^0.2.8" | ||
} | ||
} |
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
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
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
Oops, something went wrong.