fix docs site deploy failures (#1442)

This commit is contained in:
Shawn Erquhart 2018-06-14 14:31:46 -04:00 committed by GitHub
parent bfd8d526cf
commit b2a3ab2918
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 13 deletions

View File

@ -974,7 +974,7 @@
"profile": "http://gilgreenberg.com",
"contributions": [
"code"
]
}
],
"repoType": "github"
]
}

View File

@ -19,6 +19,9 @@ import webpack from "webpack";
import webpackConfig from "./webpack.conf";
import url from "url";
// Always exit non-zero on unhandled promise rejection
process.on('unhandledRejection', err => { throw err });
const browserSync = BrowserSync.create();
const defaultArgs = ["-d", "../dist", "-s", "site", "-v"];
@ -40,8 +43,8 @@ gulp.task("hugo-preview", ["copy"], cb =>
buildSite(cb, ["--buildDrafts", "--buildFuture"])
);
gulp.task("build", ["css", "js", "fonts", "images", "hugo"]);
gulp.task("build-preview", ["css", "js", "fonts", "images", "hugo-preview"]);
gulp.task("build", ["css", "js", "images", "hugo"]);
gulp.task("build-preview", ["css", "js", "images", "hugo-preview"]);
gulp.task("css", () =>
gulp
@ -78,13 +81,6 @@ gulp.task("js", cb => {
});
});
gulp.task("fonts", () =>
gulp
.src("./src/fonts/**/*")
.pipe(gulp.dest("./dist/fonts"))
.pipe(browserSync.stream())
);
gulp.task("images", () =>
gulp
.src("./src/img/**/*")
@ -118,7 +114,7 @@ gulp.task("copy", () =>
.pipe(gulp.dest("./site/data"))
);
gulp.task("server", ["css", "js", "fonts", "images", "hugo"], () => {
gulp.task("server", ["css", "js", "images", "hugo"], () => {
browserSync.init({
server: {
baseDir: "./dist"
@ -128,6 +124,5 @@ gulp.task("server", ["css", "js", "fonts", "images", "hugo"], () => {
gulp.watch("./src/js/**/*.js", ["js"]);
gulp.watch("./src/css/**/*.css", ["css"]);
gulp.watch("./src/img/**/*", ["images"]);
gulp.watch("./src/fonts/**/*", ["fonts"]);
gulp.watch("./site/**/*", ["hugo"]);
});