Skip to content

Commit

Permalink
Deno FTW (#2)
Browse files Browse the repository at this point in the history
* Deno-ifying the current code and adding plugins (with tasks) and templates.

* fixup

* fixup

* fixup

* Option tweaks for the TinyGo plugin

* fixup

* fixup

* fixup

* fixup
  • Loading branch information
pkedy authored Jan 26, 2023
1 parent 95fc19d commit 84b0415
Show file tree
Hide file tree
Showing 95 changed files with 2,521 additions and 14,035 deletions.
13 changes: 4 additions & 9 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,21 +17,16 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
- uses: denoland/setup-deno@v1
with:
node-version: 16
registry-url: https://registry.npmjs.org/
- run: npm install
- run: npm run test
#- run: npm run lint
- run: npm run build
deno-version: v1.x

- uses: actions/setup-go@v3
with:
go-version: '1.19'
go-version: "1.19"

- name: Install Apex CLI
run: wget -q https://apexlang.io/install.sh -O - | /bin/bash
run: deno install -A --unstable -f -n apex https://deno.land/x/apex_cli/apex.ts

- name: Generator diff test
run: ./diffcheck.sh
Expand Down
7 changes: 7 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"deno.enable": true,
"editor.formatOnSave": true,
"[typescript]": {
"editor.defaultFormatter": "denoland.vscode-deno"
}
}
24 changes: 14 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,13 @@ Make sure you have the Apex CLI installed. Here are [the instructions](https://a
From your terminal, run:

```shell
apex install @wapc/codegen
apex install https://deno.land/x/wapc_codegen/templates.ts
```

```shell
INFO Installing @wapc/assemblyscript...
INFO Installing @wapc/rust...
INFO Installing @wapc/tinygo...
```

Now you should see waPC project templates available.
Expand All @@ -19,22 +25,20 @@ apex list templates
```

```
+-----------------------+-------------------------------------+
| NAME | DESCRIPTION |
+-----------------------+-------------------------------------+
| ... | ... |
| @wapc/assemblyscript | AssemblyScript waPC module project |
| @wapc/tinygo | TinyGo waPC module project |
| @wapc/rust | Rust waPC module project |
+-----------------------+-------------------------------------+
┌──────────────────────┬────────────────────────────────────┐
│ Name │ Description │
└──────────────────────┴────────────────────────────────────┘
@wapc/assemblyscript AssemblyScript waPC module project
@wapc/rust TinyGo waPC module project
@wapc/tinygo TinyGo waPC module project
```

To create a new TinyGo waPC module, run:

```shell
apex new @wapc/tinygo hello-world
cd hello-world
make
apex all
ls -l build
```

Expand Down
1 change: 0 additions & 1 deletion assemblyscript.d.ts

This file was deleted.

1 change: 0 additions & 1 deletion assemblyscript.js

This file was deleted.

Loading

0 comments on commit 84b0415

Please sign in to comment.