Skip to content

Commit

Permalink
add gulp deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
debuggingfuture committed Jun 21, 2015
1 parent d30ef6b commit 4c92ade
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ www
config.js

.idea
.publish
23 changes: 23 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1 +1,24 @@
# hike4hk-web

Hike better, together for Hong Kong.
Covert Your calories to charity donations.

![https://files.slack.com/files-pri/T026JTSEG-F06KME17Y/hike4hk.gif]


## Contribution guide

### You're welcome!
- Everyone is welcome to raise issues for any discussion/suggestion.
- PR is super welcome.

### Stack used
- reactjs
- iojs(node)
- mapboxjs(leafletjs)
- gulp, webpack


### Coding Convention
- Let's stick with [airbnb's guide](https://github.com/airbnb/javascript) unless otherwise specified
- consider consistency with https://github.com/code4hk/hike4hk-mobile
8 changes: 8 additions & 0 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ var sass = require('gulp-sass');
var browserify = require('browserify');
var browserSync = require('browser-sync');

var ghPages = require('gulp-gh-pages');

var DIST = 'www';
///////////////////////////////////////////////////////////
Expand Down Expand Up @@ -66,6 +67,13 @@ gulp.task('copyStaticFiles', function(){
.pipe(gulp.dest(DIST))
});



gulp.task('deploy',['build'], function() {
return gulp.src(DIST+'/**/*')
.pipe(ghPages());
});

gulp.task('scss', function () {
gulp.src('./src/scss/index.scss')
.pipe(sass().on('error', gutil.log))
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
"gulp-notify": "^2.2.0",
"gulp-sass": "^2.0.1",
"gulp-util": "^3.0.5",
"gulp-gh-pages": "^0.5.2",
"mocha": "^2.2.5",
"reactify": "^1.1.1",
"vinyl-source-stream": "^1.1.0"
Expand Down

0 comments on commit 4c92ade

Please sign in to comment.