aqua/cli/cli-npm
fluencebot 5adbae0677
chore(main): release aqua 0.12.0 (#853)
* chore(main): release aqua 0.12.0

* chore: Bump aqua version to 0.12.0
2023-08-25 11:55:20 +03:00
..
aqua feat: use new blueprint (#708) 2023-05-29 12:29:54 +00:00
src Api for fluence cli (#611) 2022-12-28 11:30:42 +03:00
test Api for fluence cli (#611) 2022-12-28 11:30:42 +03:00
.gitignore Api for fluence cli (#611) 2022-12-28 11:30:42 +03:00
aqua-run.md Api for fluence cli (#611) 2022-12-28 11:30:42 +03:00
aqua-run.sh chore: Refactor CI after moving tests from aqua-playground [fixes FLU-352] (#763) 2023-06-22 14:59:56 +03:00
error.js Api for fluence cli (#611) 2022-12-28 11:30:42 +03:00
index.js Api for fluence cli (#611) 2022-12-28 11:30:42 +03:00
LICENSE Api for fluence cli (#611) 2022-12-28 11:30:42 +03:00
meta-utils.js Api for fluence cli (#611) 2022-12-28 11:30:42 +03:00
package.json chore(main): release aqua 0.12.0 (#853) 2023-08-25 11:55:20 +03:00
README.md chore: Refactor CI after moving tests from aqua-playground [fixes FLU-352] (#763) 2023-06-22 14:59:56 +03:00
tsconfig.json Api for fluence cli (#611) 2022-12-28 11:30:42 +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 src/aqua src/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