Skip to content

Commit fa1f8c0

Browse files
committed
Update gulpfile for consistency with other projects
1 parent fe9e85d commit fa1f8c0

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

gulpfile.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,17 @@ var docTasks = [];
2727
var docTask = function(name) {
2828
var taskName = "docs-" + name.toLowerCase();
2929
gulp.task(taskName, function () {
30-
return gulp.src("src/Control/" + name + ".purs")
30+
return gulp.src("src/" + name.replace(/\./g, "/") + ".purs")
3131
.pipe(plumber())
3232
.pipe(purescript.pscDocs())
33-
.pipe(gulp.dest("docs/Control." + name + ".md"));
33+
.pipe(gulp.dest("docs/" + name + ".md"));
3434
});
3535
docTasks.push(taskName);
3636
};
3737

38-
["Alt", "Alternative", "Apply", "Bind", "Comonad", "Extend", "Functor", "Lazy", "Monad", "MonadPlus", "Plus"].forEach(docTask);
38+
["Control.Alt", "Control.Alternative", "Control.Apply", "Control.Bind",
39+
"Control.Comonad", "Control.Extend", "Control.Functor", "Control.Lazy",
40+
"Control.Monad", "Control.MonadPlus", "Control.Plus"].forEach(docTask);
3941

4042
gulp.task("docs", docTasks);
4143

0 commit comments

Comments
 (0)