Open danishyasin33 opened 2 years ago
agoric cli
commands are actually all written in packages/agoric-cli/src
directory in the agoric-sdk
src
there is a main.js
file which consists of function for each command where the arguments
and optional
params are a parsed and then their corresponding functions are called.add
command.react-toastify
package to the ui directory's package.json, now we just need the command:
agoric add ui react-toastify
agoric add ui react-toastify@1.2.4
agoric add directory package@version
agoric add ui package
.agoric install
command will run automatically.
There is no easy way to install packages in the UI of an Agoric dapp. Currently user has to manually insert package name in
packages.json
file in the ui directory. This is inconvenient.There should be a command similar to
agoric add <package-name>
that easily installs packages in the UI directory.I believe Agoric uses workspaces to install packages in the dapp projects. So we will need to think about that while building this command.