Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/michalspano/wa-projects
- Owner: michalspano
- License: mit
- Created: 2022-07-07T13:22:53.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-07-15T20:46:42.000Z (over 2 years ago)
- Last Synced: 2024-07-29T16:58:21.891Z (5 months ago)
- Topics: assemblyscript, typescript, web3, webassembly
- Language: JavaScript
- Homepage: https://michalspano.github.io/wa-projects/
- Size: 18.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
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: