deno2: compile in TS, build protobuf

This commit is contained in:
Ryan Dahl 2018-06-12 03:54:55 +02:00
parent 356fd18c73
commit b3003535be
7 changed files with 495 additions and 2979 deletions

View file

@ -1,6 +1,13 @@
/// <reference path="deno.d.ts" />
//import { main as pb } from "deno_pb/msg.pb"
import * as ts from "typescript";
const globalEval = eval;
const window = globalEval("this");
window["denoMain"] = () => {
//const msg = pb.Msg.fromObject({});
//denoPrint(`msg.command: ${msg.command}`);
denoPrint(`ts.version: ${ts.version}`);
denoPrint("Hello world from foo");
return "foo";
};