/sdk-ts

A Typescript library to program a Luos based network through a high level interface.

Primary LanguageTypeScriptApache License 2.0Apache-2.0

LUOS SDK TS

Development

Requirements

  1. NodeJS version LTS 14+
  2. Yarn version 1.22+

Installation

Install the dependancies with the command : yarn install.

Run

Developement

Execute the command : yarn dev. The command is underlaying multiple actions :

  • Executing the typescript runtime tsc in watch mode.
  • Executing the plugin runtime tsc-alias in watch mode to convert absolute paths into relative ones.
  • Executing the rollup packager in watch mode to create :
    • UMD bundle for browser usage on the frontend : index.umd.js
    • ESModule bundle for the backend usage like our CLI : index.esm.js

Contribute

Workflow

You can use ACT to validate the workflows locally :

  1. Install ACT (See link for other systems):
brew install act
  1. Setup secrets variables in the .act/.secrets file :
NPM_TOKEN=
GITHUB_TOKEN=