Skip to content

Commit

Permalink
small fix for CNAME
Browse files Browse the repository at this point in the history
  • Loading branch information
debuggingfuture committed Jun 21, 2015
1 parent 3a80bfa commit af88bc2
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
8 changes: 6 additions & 2 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ var notify = require('gulp-notify');
var nodemon = require('gulp-nodemon');
var sass = require('gulp-sass');
var browserSync = require('browser-sync');
var file = require('gulp-file');

var webpack = require('webpack-stream');
var ghPages = require('gulp-gh-pages');
Expand Down Expand Up @@ -65,8 +66,8 @@ gulp.task('copyStaticFiles', function(){
gulp.src('./src/static/**')
.pipe(changed(DIST))
.pipe(gulp.dest(DIST))
});

});

gulp.task('webpack',function () {
return gulp.src('src/jsx/index.jsx')
Expand All @@ -76,7 +77,10 @@ gulp.task('webpack',function () {

gulp.task('deploy',['build'], function() {
return gulp.src(DIST+'/**/*')
.pipe(ghPages());
.pipe(file('CNAME', 'hike.code4.hk'))
.pipe(ghPages({
cname:"hike.code4.hk"
}));
});

gulp.task('scss', function () {
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,18 +24,19 @@
"browserify": "^10.2.4",
"gulp": "^3.9.0",
"gulp-changed": "^1.2.1",
"gulp-file": "^0.2.0",
"gulp-gh-pages": "^0.5.2",
"gulp-nodemon": "^2.0.3",
"gulp-notify": "^2.2.0",
"gulp-sass": "^2.0.1",
"gulp-util": "^3.0.5",
"jsx-loader": "~0.13.2",
"mocha": "^2.2.5",
"node-libs-browser": "^0.5.2",
"reactify": "^1.1.1",
"vinyl-source-stream": "^1.1.0",
"webpack": "^1.9.11",
"webpack-dev-server": "^1.9.0",
"jsx-loader": "~0.13.2",
"webpack-stream": "~2.0.0"
},
"scripts": {
Expand Down
1 change: 0 additions & 1 deletion src/static/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
<html lang="en">
<head>
<title></title>

<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="description" content="">
Expand Down

0 comments on commit af88bc2

Please sign in to comment.