Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/michalspano/wa-projects

Web Assembly (WA) projects within one repositery.
https://github.com/michalspano/wa-projects

assemblyscript typescript web3 webassembly

Last synced: about 2 months ago
JSON representation

Web Assembly (WA) projects within one repositery.

Awesome Lists containing this project

README

        


Web Assembly ~

Here I gather __personal projects__ made for `WA` using `Assembly Script` (AS). That is, a `TypeScript`-like language that is compiled to `Web Assembly`.

### Instructions

Taken from the `AS`'s official [documentation](https://www.assemblyscript.org/introduction.html).

1. We assume that `npm` is installed.
```bash
$ npm init
```

2. We install the `AS` __compiler__.
```bash
$ npm install --save-dev assemblyscript
```

3. Setup an `AS` project.
```bash
$ npx asinit .
```

4. Compile `assembly/index.ts` to `WA`:
```bash
$ npm run asbuild
```

\*we use `... asbuild:release` to compile to `WA` with __optimizations__; `... asbuild:debug` to compile to `WA` with __debug information__.

5. Deploy `index.html` to localhost:
```bash
$ npm start
```

I'm open to any suggestions or pull requests. :+1: