@symbiont-io/sym-watch

0.0.3 • Public • Published

sym-watch

A utility to make contract changes easier when doing full-stack SymPL development.

Installation

npm install @symbiont-io/sym-watch

Run the sym-watch command by defining the directories you want to listen to and a custom task you want to run:

sym-watch -d contracts/lang9 contracts/lang10 -t customTask

Prerequisites

sym-watch assumes you already have the full version of sym > 2.0.3 installed locally.

Custom Task

The custom task argument is a configurable argument that can be run after the network is reset and contracts have been re-published.

E.g. if you wanted to run this task

-t symGenerate

Your application's package.json should have that task defined:

...
"symGenerate": "sym generate -o tests/app/frontend/src/generated -i tests/app/frontend/templates",
...

In this example, the watcher will re-generate js/ts code required for middleware and frontend development.

Development

If you would like to develop sym-watch locally, then clone the repo and run npm link from within the project root. Now you can make changes and run sym-watch elsewhere to see the results.

npm run cmd watch -- -d contracts -t myTask

License

MIT © Symbiont

Package Sidebar

Install

npm i @symbiont-io/sym-watch

Weekly Downloads

0

Version

0.0.3

License

ISC

Unpacked Size

11.5 MB

Total Files

6

Last publish

Collaborators

  • symbiont-kevin-wong
  • symbiont-io-ecosystem
  • symbiont-aurelien-bonnel