Skip to content

Commit

Permalink
feat: deno example
Browse files Browse the repository at this point in the history
  • Loading branch information
CrabNejonas committed Sep 7, 2023
1 parent 783603b commit 0e60521
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 14 additions & 0 deletions examples/deno/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
[package]
name = "deno-example"
version = "0.0.0"
edition = "2021"

# This is only here to please cargo
[[bin]]
name = "hello-world"
path = "hello-world.ts"

[package.metadata.packager]
before-packaging-command = "deno compile hello-world.ts"
product-name = "Deno example"
identifier = "com.deno.example"
5 changes: 5 additions & 0 deletions examples/deno/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
then package the app

```sh
cargo r -p cargo-packager -- -p deno-example
```
Binary file added examples/deno/hello-world
Binary file not shown.
1 change: 1 addition & 0 deletions examples/deno/hello-world.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
console.log('Hello World!')

0 comments on commit 0e60521

Please sign in to comment.