-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Make mustache.mjs work with Deno #1
Conversation
Hoorray great work! Tried The CI failures seems to be related to eslint is still targeting |
Took the liberty of pushing back to your branch with some minor whitespace changes -- CI is now green 🎉 Thanks a lot for looking into making this deno-friendly! I'll merge your changes into my branch now, before taking a step back and double checking a few things before opening the PR to upstream mustache.js. |
Great! |
@zekth I really want to ensure deno works with mustache going forward by having a CI job run a trivial test. Ideally I'd like import { test } from "https://deno.land/std/testing/mod.ts";
import { assertEquals } from "https://deno.land/std/testing/asserts.ts";
import mustache from "../../mustache.mjs";
const view = {
title: "Joe",
calc: function() {
return 2 + 4;
}
};
test(function canUseMustache() {
assertEquals(
mustache.render("{{title}} spends {{calc}}", view),
"Joe spends 6"
);
}); I've introduced a bug locally to trigger TypeScript compile error:
Sadly that won't do much good in CI :/ At first glance there's no |
Nevermind, found the blooper; should have checked the exit code with |
Also there is a Deno Github action if you want : https://github.com/denolib/deno-action |
Ahh cool! Google suggested https://github.com/denolib/setup-deno, but that deno-action alternative might be better for all I know 🤷♂ |
There is an improvement on the exposure of properties on importing json files : denoland/deno#3210 |
Oh cool! Will give that a shot before opening the PR to the upstream mustache.js repo. |
Minor adjustments needed to make the TypeScript compiler that is built into Deno, be happy with how mustache.js' ES module source looks in terms of function parameters passed and object mutability. Refs #1
Minor adjustments needed to make the TypeScript compiler that is built into Deno, be happy with how mustache.js' ES module source looks in terms of function parameters passed and object mutability. Refs #1
Minor adjustments needed to make the TypeScript compiler that is built into Deno, be happy with how mustache.js' ES module source looks in terms of function parameters passed and object mutability. Refs #1
Minor adjustments needed to make the TypeScript compiler that is built into Deno, be happy with how mustache.js' ES module source looks in terms of function parameters passed and object mutability. Refs #1
Minor adjustments needed to make the TypeScript compiler that is built into Deno, be happy with how mustache.js' ES module source looks in terms of function parameters passed and object mutability. Refs #1
Minor adjustments needed to make the TypeScript compiler that is built into Deno, be happy with how mustache.js' ES module source looks in terms of function parameters passed and object mutability. Refs #1
Minor adjustments needed to make the TypeScript compiler that is built into Deno, be happy with how mustache.js' ES module source looks in terms of function parameters passed and object mutability. Refs #1
Minor adjustments needed to make the TypeScript compiler that is built into Deno, be happy with how mustache.js' ES module source looks in terms of function parameters passed and object mutability. Refs #1
Minor adjustments needed to make the TypeScript compiler that is built into Deno, be happy with how mustache.js' ES module source looks in terms of function parameters passed and object mutability. Refs #1
Minor adjustments needed to make the TypeScript compiler that is built into Deno, be happy with how mustache.js' ES module source looks in terms of function parameters passed and object mutability. Refs phillipj#1
Here is the working changes.
The first import had to be changed due to this: denoland/deno#1065
Also just done what we discussed and it's working :)