-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: clean up code gen using dedent
- Loading branch information
1 parent
fcfc3bd
commit 2e17afd
Showing
9 changed files
with
257 additions
and
237 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
export { crypto } from "https://deno.land/std@0.208.0/crypto/mod.ts"; | ||
export { encodeHex } from "https://deno.land/std@0.208.0/encoding/hex.ts"; | ||
export * as tjs from "npm:typescript-json-schema@^0.62.0"; | ||
import dedent from "npm:dedent@^1.5.1"; | ||
export { dedent }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,10 @@ | ||
export function autoGenHeader(skip: boolean = false) { | ||
if (skip) return ""; | ||
import { dedent } from "./deps.ts"; | ||
|
||
return `// This file is auto-generated by the Open Game Backend build system. | ||
// Do not edit this file directly. | ||
`; | ||
export function autoGenHeader() { | ||
return dedent` | ||
// This file is auto-generated by the Open Game Backend build system. | ||
// Do not edit this file directly. | ||
// | ||
// Generated at ${new Date().toISOString()} | ||
`; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.