Skip to content

Commit

Permalink
Update ecmarkup
Browse files Browse the repository at this point in the history
  • Loading branch information
rbuckton committed May 23, 2022
1 parent f84a3ac commit b30f922
Show file tree
Hide file tree
Showing 5 changed files with 1,421 additions and 3,005 deletions.
4 changes: 3 additions & 1 deletion .gitattributes
@@ -1 +1,3 @@
* text=auto
index.html -diff merge=ours
spec.js -diff merge=ours
spec.css -diff merge=ours
10 changes: 9 additions & 1 deletion gulpfile.js
Expand Up @@ -9,7 +9,15 @@ gulp.task("clean", () => del("docs/**/*"));

gulp.task("build", () => gulp
.src(["spec.emu"])
.pipe(emu())
.pipe(emu({
log: require("ecmarkup/lib/utils").logVerbose,
warn: err => {
const file = path.resolve(err.file || "spec.emu");
const message = `Warning: ${file}:${typeof err.line === "number" ? `${err.line}:${err.column}:` : ""} ${err.message}`;
require("ecmarkup/lib/utils").logWarning(message);
},
ecma262Biblio: false,
}))
.pipe(rename("index.html"))
.pipe(gulp.dest("docs")));

Expand Down

0 comments on commit b30f922

Please sign in to comment.