hcrs
hcrs copied to clipboard
nodejs scaffold generation for holochain-rust
hcrs
nodejs scaffold generation for holochain-rust
This is a prototyping solution. Ideally this functionality would be built into the hc tool, potentially hc scaffold or integrated into hc init and hc generate.
Generates holochain hApp source code tree based off a single scaffold.json file, following these rules:
- Will not overwrite any source code in a file not prefixed with a "DO NOT MODIFY" comment
- Will generate stub files if not present
- Will generate "zome_def" from the scaffold, but functional code is placed in other modules
Usage
- Make sure the
hccommand is in your path. (in theholochain-rustdirectory, runmake install_cmd). - Make sure
./holochain-rustcontains the holochain rust repo... can be a symlink
npm install
cd example
../bin/hcrs build