aqua/npm
Dima 7556db0a93
Use .js file in aqua command by default (#278)
* move to `aqua` and `aqua-j`

* more updates

* update readme

* aqua-cli -> aqua

* don't publish aqua as aqua-cli

* update scala

Co-authored-by: Dmitry Kurinskiy <dmitry@fluence.one>
2021-09-08 13:37:59 +03:00
..
.gitignore Create aquamarine npm package (#56) 2021-04-14 18:00:51 +03:00
error.js Use .js file in aqua command by default (#278) 2021-09-08 13:37:59 +03:00
index-java.js Use .js file in aqua command by default (#278) 2021-09-08 13:37:59 +03:00
index.js Use .js file in aqua command by default (#278) 2021-09-08 13:37:59 +03:00
LICENSE Create aquamarine npm package (#56) 2021-04-14 18:00:51 +03:00
package.json Use .js file in aqua command by default (#278) 2021-09-08 13:37:59 +03:00
readme.md Use .js file in aqua command by default (#278) 2021-09-08 13:37:59 +03:00

Aqua

Aqua is a new-gen language for distributed systems.

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

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

aqua

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

usage

Get the latest package

npm i --save-dev @fluencelabs/aqua

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

mkdir aqua compiled

To compile files run:

aqua -i ./src/aqua/ -o ./src/compiled

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

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

and can be started with

npm run compile

references