@wapc/codegen
TypeScript icon, indicating that this package has built-in type declarations

0.0.5 • Public • Published

waPC Code Generators

This library provides the code generators for producing waPC modules using the Apex language.

Installation

Make sure you have the Apex CLI installed. Here are the instructions.

From your terminal, run:

apex install @wapc/codegen

Now you should see waPC project templates available.

apex list templates
+-----------------------+-------------------------------------+
| NAME                  | DESCRIPTION                         |
+-----------------------+-------------------------------------+
| ...                   | ...                                 |
| @wapc/assemblyscript  | AssemblyScript waPC module project  |
| @wapc/tinygo          | TinyGo waPC module project          |
| @wapc/rust            | Rust waPC module project          |
+-----------------------+-------------------------------------+

To create a new TinyGo waPC module, run:

apex new @wapc/tinygo hello-world
cd hello-world
make
ls -l build
-rwxr-xr-x  1 uname  staff  18454 Sep 19 14:56 hello-world.wasm

If you load the project in VS Code (code . from the terminal if VS code is in your path), a task will monitor the Apex interface definition for changes and regenerate boilerplate code.

Readme

Keywords

Package Sidebar

Install

npm i @wapc/codegen

Weekly Downloads

1

Version

0.0.5

License

none

Unpacked Size

751 kB

Total Files

162

Last publish

Collaborators

  • pkedy
  • jsoverson
  • wapcbot