Skip to content

Commit bb273cd

Browse files
authored
Merge pull request #1 from Tankenstein/v1_github_pages
move to github pages, 1.0 because why not
2 parents 1f53eab + 7e4a216 commit bb273cd

File tree

4 files changed

+13
-2
lines changed

4 files changed

+13
-2
lines changed

Gulpfile.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ var eslint = require('gulp-eslint');
99
var server = require('gulp-webserver');
1010
var runSequence = require('run-sequence');
1111
var minifyHtml = require('gulp-htmlmin');
12+
var deployToPages = require('gulp-gh-pages');
1213

1314
var 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+
139148
gulp.task('default', ['build', 'watch']);

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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",
@@ -40,6 +40,7 @@
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",

src/CNAME

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
encountr.io

src/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
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">
@@ -36,7 +37,6 @@
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

0 commit comments

Comments
 (0)