Skip to content

Commit

Permalink
Upgrade Gulp to v5 (needs fomantic-ui updates)
Browse files Browse the repository at this point in the history
  • Loading branch information
arcatdmz committed Jul 27, 2024
1 parent 5861ada commit a4e5811
Show file tree
Hide file tree
Showing 3 changed files with 2,739 additions and 1,312 deletions.
20 changes: 17 additions & 3 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,19 +131,32 @@ gulp.task("copy:bibtex", function () {
// [copy:fonts]
gulp.task("copy:fonts", function () {
return gulp
.src("node_modules/devicon/fonts/*", { base: "node_modules/devicon" })
.src("node_modules/devicon/fonts/*", { base: "node_modules/devicon", encoding: false })
.pipe(
plumber({ errorHandler: notify.onError("Error: <%= error.message %>") })
)
.pipe(gulp.dest("dist/stylesheets"));
});

// [copy:default]
gulp.task("copy:default", function () {
gulp.task("copy:default-binary", function () {
return gulp
.src(
[
"src/**/*.{pdf,png,jpg,bib,json,html,css,txt,package-list}",
"src/**/*.{pdf,png,jpg}"
],
{ base: "src", encoding: false }
)
.pipe(
plumber({ errorHandler: notify.onError("Error: <%= error.message %>") })
)
.pipe(gulp.dest("dist"));
});
gulp.task("copy:default-text", function () {
return gulp
.src(
[
"src/**/*.{bib,json,html,css,txt,package-list}",
"src/.htaccess",
],
{ base: "src" }
Expand All @@ -153,6 +166,7 @@ gulp.task("copy:default", function () {
)
.pipe(gulp.dest("dist"));
});
gulp.task("copy:default", gulp.parallel("copy:default-binary", "copy:default-text"));

// [copy]
gulp.task("copy", gulp.parallel("copy:bibtex", "copy:fonts", "copy:default"));
Expand Down
Loading

0 comments on commit a4e5811

Please sign in to comment.