Skip to content

Commit

Permalink
fix docs site deploy failures (decaporg#1442)
Browse files Browse the repository at this point in the history
  • Loading branch information
erquhart committed Jun 14, 2018
1 parent adf0709 commit bff387a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 13 deletions.
4 changes: 2 additions & 2 deletions .all-contributorsrc
Original file line number Diff line number Diff line change
Expand Up @@ -974,7 +974,7 @@
"profile": "http://gilgreenberg.com",
"contributions": [
"code"
]
}
],
"repoType": "github"
]
}
17 changes: 6 additions & 11 deletions website/gulpfile.babel.js
Original file line number Diff line number Diff line change
Expand Up @@ -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"];

Expand All @@ -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
Expand Down Expand Up @@ -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/**/*")
Expand Down Expand Up @@ -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"
Expand All @@ -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"]);
});

0 comments on commit bff387a

Please sign in to comment.