diff --git a/.gitpod.yml b/.gitpod.yml index 52607e0..252bc8a 100644 --- a/.gitpod.yml +++ b/.gitpod.yml @@ -1,6 +1,6 @@ -# This configuration file was automatically generated by Gitpod. -# Please adjust to your needs (see https://www.gitpod.io/docs/config-gitpod-file) -# and commit this file to your remote git repository to share the goodness with others. - tasks: - init: yarn install && brew install deno + +vscode: + extensions: + - denoland.vscode-deno diff --git a/deno/.gitignore b/deno/.gitignore new file mode 100644 index 0000000..40b878d --- /dev/null +++ b/deno/.gitignore @@ -0,0 +1 @@ +node_modules/ \ No newline at end of file diff --git a/deno/.vscode/settings.json b/deno/.vscode/settings.json index 307b3a6..1a48b77 100644 --- a/deno/.vscode/settings.json +++ b/deno/.vscode/settings.json @@ -1,7 +1,4 @@ { - "deno.enable": true, - "deno.lint": true, - "deno.path": "/home/linuxbrew/.linuxbrew/bin/deno", "editor.formatOnSave": true, "[typescript]": { "editor.defaultFormatter": "denoland.vscode-deno" } } diff --git a/deno/dev.sh b/deno/dev.sh new file mode 100755 index 0000000..b56cb94 --- /dev/null +++ b/deno/dev.sh @@ -0,0 +1,2 @@ +#!/bin/sh +deno run --unstable --node-modules-dir main.ts \ No newline at end of file diff --git a/deno/install.sh b/deno/install.sh new file mode 100755 index 0000000..f47aae1 --- /dev/null +++ b/deno/install.sh @@ -0,0 +1,2 @@ +#!/bin/sh +deno cache --unstable --node-modules-dir main.ts \ No newline at end of file diff --git a/deno/main.ts b/deno/main.ts index fc79f3d..132df2f 100644 --- a/deno/main.ts +++ b/deno/main.ts @@ -1,5 +1,9 @@ -import * as Effect from "https://dev.jspm.io/@effect/io/Effect"; +import * as Effect from "npm:@effect/io/Effect"; +import { pipe } from "npm:@fp-ts/data/Function"; -const hello = Effect.succeed(0); +const main = pipe( + Effect.log("hello world"), + Effect.repeatN(3), +); -console.log(hello); +Effect.unsafeFork(main); diff --git a/deno/tsconfig.json b/deno/tsconfig.json index e7c0f8e..4a022c9 100644 --- a/deno/tsconfig.json +++ b/deno/tsconfig.json @@ -1,7 +1,11 @@ { "compilerOptions": { "strict": true, - "noEmit": true + "noEmit": true, + "baseUrl": ".", + "paths": { + "npm:*": ["node_modules/*"] + } }, "include": ["./**/*.ts"] }