Skip to content

Commit

Permalink
use npm package
Browse files Browse the repository at this point in the history
  • Loading branch information
mikearnaldi committed Jan 14, 2023
1 parent 0edad3b commit 8b7c343
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 11 deletions.
8 changes: 4 additions & 4 deletions .gitpod.yml
Original file line number Diff line number Diff line change
@@ -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
1 change: 1 addition & 0 deletions deno/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules/
3 changes: 0 additions & 3 deletions deno/.vscode/settings.json
Original file line number Diff line number Diff line change
@@ -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" }
}
2 changes: 2 additions & 0 deletions deno/dev.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/sh
deno run --unstable --node-modules-dir main.ts
2 changes: 2 additions & 0 deletions deno/install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/sh
deno cache --unstable --node-modules-dir main.ts
10 changes: 7 additions & 3 deletions deno/main.ts
Original file line number Diff line number Diff line change
@@ -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);
6 changes: 5 additions & 1 deletion deno/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
{
"compilerOptions": {
"strict": true,
"noEmit": true
"noEmit": true,
"baseUrl": ".",
"paths": {
"npm:*": ["node_modules/*"]
}
},
"include": ["./**/*.ts"]
}

0 comments on commit 8b7c343

Please sign in to comment.