Skip to content

Instantly share code, notes, and snippets.

@pe3
Last active April 24, 2021 14:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pe3/cfdfa3f47c3c053facf55cf5b7b41b1b to your computer and use it in GitHub Desktop.
Save pe3/cfdfa3f47c3c053facf55cf5b7b41b1b to your computer and use it in GitHub Desktop.
Deno fp-ts Hello world
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
{
"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