File tree Expand file tree Collapse file tree 4 files changed +13
-2
lines changed
Expand file tree Collapse file tree 4 files changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ var eslint = require('gulp-eslint');
99var server = require ( 'gulp-webserver' ) ;
1010var runSequence = require ( 'run-sequence' ) ;
1111var minifyHtml = require ( 'gulp-htmlmin' ) ;
12+ var deployToPages = require ( 'gulp-gh-pages' ) ;
1213
1314var directories = {
1415 source : {
@@ -30,6 +31,9 @@ gulp.task('statics', function() {
3031 gulp . src ( './node_modules/bootstrap-sass/assets/fonts/**/*' )
3132 . pipe ( gulp . dest ( directories . distribution + '/fonts' ) ) ;
3233
34+ gulp . src ( directories . source . base + '/CNAME' )
35+ . pipe ( gulp . dest ( directories . distribution ) ) ;
36+
3337 gulp . src ( directories . source . base + '/images/**/*' )
3438 . pipe ( gulp . dest ( directories . distribution + '/images' ) ) ;
3539} ) ;
@@ -136,4 +140,9 @@ gulp.task('serve', function () {
136140 } ) ) ;
137141} ) ;
138142
143+ gulp . task ( 'deploy' , [ 'build:production' ] , function ( ) {
144+ return gulp . src ( './' + directories . distribution + '/**/*' )
145+ . pipe ( deployToPages ( ) ) ;
146+ } ) ;
147+
139148gulp . task ( 'default' , [ 'build' , 'watch' ] ) ;
Original file line number Diff line number Diff line change 11{
22 "name" : " encountr" ,
3- "version" : " 0.3.3 " ,
3+ "version" : " 1.0.0 " ,
44 "description" : " A D&D encounter manager built with react." ,
55 "repository" : {
66 "type" : " git" ,
4040 "gulp-concat" : " ^2.6.0" ,
4141 "gulp-cssnano" : " ^2.0.1" ,
4242 "gulp-eslint" : " ^1.1.1" ,
43+ "gulp-gh-pages" : " ^0.5.4" ,
4344 "gulp-htmlmin" : " ^1.3.0" ,
4445 "gulp-sass" : " ^2.1.1" ,
4546 "gulp-webserver" : " ^0.9.1" ,
Original file line number Diff line number Diff line change 1+ encountr.io
Original file line number Diff line number Diff line change 66 < meta name ="viewport " content ="width=device-width, initial-scale=1 ">
77 < title > encountr</ title >
88 < link rel ="stylesheet " href ="style.css ">
9+ < link rel ="canonical " href ="encountr.io ">
910 <!-- favicons -->
1011 < link rel ="shortcut icon " href ="/favicon.ico ">
1112 < link rel ="icon " sizes ="16x16 32x32 64x64 " href ="images/favicons/favicon.ico ">
3637 < header class ="page-header ">
3738 < h1 >
3839 < img src ="images/logo_large.svg " alt ="encountr " class ="main-logo ">
39- < small > beta 3</ small >
4040 </ h1 >
4141 </ header >
4242
You can’t perform that action at this time.
0 commit comments