@ernest-cll/cre-sdk-javy-plugin-test
v0.0.2
Published
Chainlink CRE SDK Javy Plugin.
Readme
CRE SDK Javy Plugin
TypeScript SDK for CRE is using Javy as a way to compile TypeScript workflows to WebAssembly. This package contains the source code and the distribution binary for the Javy plugin which adds the support for Chainlink CRE SDK.
Current version of the plugin is compatible with Javy v5.0.4.
Usage
This package is part of the CRE TypeScript SDK, which is already configured to use it.
If you want to use it in your project, you can add it as a dependency with the following commands:
npm add @chainlink/cre-sdk-javy-plugin- adds the package as a dependency to your project.npx cre-setup- one-time setup command to download the Javy binary matching your operating system and compile the plugin.
Once that is done you can start using npx cre-compile-workflow to compile your workflows to WebAssembly.
npx cre-compile-workflow <input.js> <output.wasm>- concrete example:npx cre-compile-workflow src/hello-world.js dist/hello-world.wasm(this will compile your javascript source file located insrcdirectory and save the output wasm file indistdirectory of your project).
Build
When contributing to the project, you can build the plugin after making your changes with the following command:
npm run build