0.0.3 • Published 2 years ago

@symbiont-io/sym-watch v0.0.3

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

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