Skip to content

Commit

Permalink
Add the work-in-progress Bun-based implementation
Browse files Browse the repository at this point in the history
It doesn't have all the features of the Node-based implementation yet, but it's getting there and there are to-do items in the readme capturing what's missing.
  • Loading branch information
TomasHubelbauer committed Oct 28, 2024
1 parent 11d35bb commit d558c35
Show file tree
Hide file tree
Showing 22 changed files with 1,168 additions and 355 deletions.
6 changes: 6 additions & 0 deletions Block.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
export type Block = {
tag: string;
meta: string;
code: string;
path?: string;
};
5 changes: 5 additions & 0 deletions demo/javascript-exception/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# JavaScript exception

```javascript
throw new Error('Hello, world!')
```
5 changes: 5 additions & 0 deletions demo/javascript-expression/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# JavaScript expression

```javascript
'Hello, world!'
```
9 changes: 9 additions & 0 deletions demo/shell/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Shell

```sh
echo "Hello, world!"
```

```sh
>&2 echo "Hello, world!"
```
1 change: 1 addition & 0 deletions demo/stderr-file/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
stderr.txt
7 changes: 7 additions & 0 deletions demo/stderr-file/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Standard error stream to a file Hello World!

`stderr.txt`:

```stderr
Hello, standard error!
```
5 changes: 5 additions & 0 deletions demo/stderr/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Standard error stream Hello World!

```stderr
Hello, standard error!
```
1 change: 1 addition & 0 deletions demo/stdout-file/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
stdout.txt
7 changes: 7 additions & 0 deletions demo/stdout-file/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Standard output stream to a file Hello World!

`stdout.txt`:

```stdout
Hello, standard output!
```
5 changes: 5 additions & 0 deletions demo/stdout/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Standard output stream Hello World!

```stdout
Hello, standard output!
```
5 changes: 5 additions & 0 deletions demo/typescript-exception/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# JavaScript exception

```typescript
throw new Error('Hello, world!' as string)
```
5 changes: 5 additions & 0 deletions demo/typescript-expression/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# JavaScript expression

```typescript
'Hello, world!' as string
```
Loading

0 comments on commit d558c35

Please sign in to comment.