@eridanus-network/sonar
v0.0.1
Published
Sonar compiler
Downloads
1
Readme
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
- For the list of compiler options see: https://github.com/eridanus-network/sonar