summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2018-05-14 21:47:39 -0400
committerRyan Dahl <ry@tinyclouds.org>2018-05-14 21:47:39 -0400
commit8a7ac7f4f3aacfe322732c616c7622c79db9fae3 (patch)
tree38e68c1e3398330d0d5ab4e04a50ced22dd4a75e
parent471a4f461a608179cead961a5f4240c302d4a5d1 (diff)
Run clang-format on msg.proto
-rw-r--r--Makefile1
-rw-r--r--compiler.ts5
-rw-r--r--msg.proto9
-rw-r--r--util.ts2
4 files changed, 8 insertions, 9 deletions
diff --git a/Makefile b/Makefile
index 93791200e..e201e7855 100644
--- a/Makefile
+++ b/Makefile
@@ -34,5 +34,6 @@ lint: node_modules
fmt: node_modules
yarn fmt
go fmt
+ clang-format msg.proto -i
.PHONY: lint clean distclean
diff --git a/compiler.ts b/compiler.ts
index 0be5c6204..21f4d5bd3 100644
--- a/compiler.ts
+++ b/compiler.ts
@@ -6,7 +6,7 @@ import * as path from "path";
export function compile(cwd: string, inputFn: string): void {
const options: ts.CompilerOptions = {
allowJs: true,
- outFile: "out.js"
+ outDir: "_denoCache_/",
};
const host = new CompilerHost(cwd);
@@ -134,8 +134,7 @@ export class CompilerHost {
onError: ((message: string) => void) | undefined,
sourceFiles: ReadonlyArray<ts.SourceFile>
): void {
- log("writeFile", fileName);
- log("writeFile source", data);
+ log("writeFile", { fileName, data });
globalEval(data);
}
diff --git a/msg.proto b/msg.proto
index fcbd9bcbc..0d73dca66 100644
--- a/msg.proto
+++ b/msg.proto
@@ -1,7 +1,6 @@
syntax = "proto3";
package main;
-
message Msg {
enum MsgKind {
START = 0;
@@ -12,14 +11,14 @@ message Msg {
MsgKind kind = 10;
// START
- string cwd = 11;
- repeated string argv = 12;
+ string cwd = 11;
+ repeated string argv = 12;
// READ_FILE_SYNC
- string path = 20;
+ string path = 20;
// DATA_RESPONSE
- bytes data = 30;
+ bytes data = 30;
string error = 31;
// EXIT
diff --git a/util.ts b/util.ts
index b5b864a5f..40301a5bb 100644
--- a/util.ts
+++ b/util.ts
@@ -11,7 +11,7 @@ const _global = globalEval("this");
const print = V8Worker2.print;
// To control internal logging output
-const debug = false;
+const debug = true;
// Internal logging for deno. Use the "debug" variable above to control
// output.