dfinity / motoko-dev-server

A live reload development server for Motoko smart contracts.
Apache License 2.0
21 stars 1 forks source link

Possible to specify which canisters to run a given command? #43

Open atengberg opened 1 year ago

atengberg commented 1 year ago

Hello, thanks for the very useful project.

Is it possible to pass commands to mo-dev so that only specific canisters are included?

For instance, mo-dev generate will also generate the declarations for the internet_identity canister that's declared in the dfx.json but whose declarations are not needed (similarly they will be generated for a frontend canister).

rvanasa commented 1 year ago

One solution could be to use mo-dev --deploy --exec 'dfx generate my_canister'. Since generating all bindings is the usual behavior for dfx projects, I'll see if we can make it possible to specify the default canisters in the dfx.json file.

rvanasa commented 1 year ago

I opened a discussion about this here: https://github.com/dfinity/sdk/discussions/3173.