0.0.1 • Published 1 year ago

@eridanus-network/sonar v0.0.1

Weekly downloads
-
License
Apache-2.0
Repository
-
Last release
1 year ago

Sonar

Sonar is a new-gen language for distributed systems.

Sonar programs are executed on many peers, sequentially or in parallel, forming a single-use coordination network.

Sonar's runtime is heterogeneous: it includes browsers, servers, devices, all involved in solving a single task. Therefore, Sonar scripts are compiled into several targets at once, with FIR and Typescript as a default.

sonar

The package contains a convenience sonar wrapper for usage in npm-based projects.

usage

Get the latest package

npm i --save-dev @eridanus-network/sonar

Create a directory for the source files: .sonar and for compiled files: .ts

mkdir src/sonar src/compiled

To compile files run:

sonar -i ./src/sonar/ -o ./src/compiled

Alternatively the compilation script can be put into scripts section of package.json

...
"scripts": {
    ...
    "compile": "sonar -i ./src/sonar/ -o ./src/compiled"
},
...

and can be started with

npm run compile

references