Skip to content

Commit 84b0415

Browse files
authored
Deno FTW (#2)
* 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
1 parent 95fc19d commit 84b0415

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

95 files changed

+2521
-14035
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,21 +17,16 @@ jobs:
1717
runs-on: ubuntu-latest
1818
steps:
1919
- uses: actions/checkout@v1
20-
- uses: actions/setup-node@v1
20+
- uses: denoland/setup-deno@v1
2121
with:
22-
node-version: 16
23-
registry-url: https://registry.npmjs.org/
24-
- run: npm install
25-
- run: npm run test
26-
#- run: npm run lint
27-
- run: npm run build
22+
deno-version: v1.x
2823

2924
- uses: actions/setup-go@v3
3025
with:
31-
go-version: '1.19'
26+
go-version: "1.19"
3227

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

3631
- name: Generator diff test
3732
run: ./diffcheck.sh

.vscode/settings.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"deno.enable": true,
3+
"editor.formatOnSave": true,
4+
"[typescript]": {
5+
"editor.defaultFormatter": "denoland.vscode-deno"
6+
}
7+
}

README.md

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,13 @@ Make sure you have the Apex CLI installed. Here are [the instructions](https://a
99
From your terminal, run:
1010

1111
```shell
12-
apex install @wapc/codegen
12+
apex install https://deno.land/x/wapc_codegen/templates.ts
13+
```
14+
15+
```shell
16+
INFO Installing @wapc/assemblyscript...
17+
INFO Installing @wapc/rust...
18+
INFO Installing @wapc/tinygo...
1319
```
1420

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

2127
```
22-
+-----------------------+-------------------------------------+
23-
| NAME | DESCRIPTION |
24-
+-----------------------+-------------------------------------+
25-
| ... | ... |
26-
| @wapc/assemblyscript | AssemblyScript waPC module project |
27-
| @wapc/tinygo | TinyGo waPC module project |
28-
| @wapc/rust | Rust waPC module project |
29-
+-----------------------+-------------------------------------+
28+
┌──────────────────────┬────────────────────────────────────┐
29+
│ Name │ Description │
30+
└──────────────────────┴────────────────────────────────────┘
31+
@wapc/assemblyscript AssemblyScript waPC module project
32+
@wapc/rust TinyGo waPC module project
33+
@wapc/tinygo TinyGo waPC module project
3034
```
3135

3236
To create a new TinyGo waPC module, run:
3337

3438
```shell
3539
apex new @wapc/tinygo hello-world
3640
cd hello-world
37-
make
41+
apex all
3842
ls -l build
3943
```
4044

assemblyscript.d.ts

Lines changed: 0 additions & 1 deletion
This file was deleted.

assemblyscript.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)