Last active
April 24, 2021 14:36
-
-
Save pe3/cfdfa3f47c3c053facf55cf5b7b41b1b to your computer and use it in GitHub Desktop.
Deno fp-ts Hello world
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
import { log } from "https://cdn.skypack.dev/fp-ts/Console"; | |
log("hello world!")(); | |
// deno run deno-fp-ts-log.ts | |
// evaluating tree shaking and maximum compability bundles | |
// see ts-doc for config options https://www.typescriptlang.org/tsconfig | |
// deno bundle --config tsconfig.json deno-fp-ts-log.ts log-bundle.js | |
// as of deno 1.9.1 the following options were ignored: module, target | |
// production browser bundless still seem to require esbuid or rollup | |
// yarn based setup "Starting a TypeScript Project in 2021" | |
// https://news.ycombinator.com/item?id=26888455 |
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
Show hidden characters
{ | |
"compilerOptions": { | |
"target": "ES5", | |
"module": "UMD", | |
"strict": true | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment