Closed dmihal closed 5 years ago
I'm interested in developing this feature, does anybody have any thoughts or comments before I dive into the code?
@dmihal Yes. If you'd like to work on this please do. -s
looks free to me.
@lazaridiscom EthPM.js doesn't have any mechanism for writing to ethpm.json, except for ETHPM.init()
, which copies the template ethpm.json file.
I was thinking truffle could use ETHPM.init()
if the user uses the -s
flag, but hasn't created an ethpm.json file yet.
Thank you for raising this issue! It has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. If you would like to keep this issue open, please respond with information about the current state of this problem.
There has been no new activity on this issue since it was marked as stale 7 days ago, so it is being automatically closed. If you'd like help with this or a different problem, please open a new issue. Thanks!
Issue
Truffle & EthPM seem to be designed to function similar to NPM.
truffle install <package>
installs the package to theinstalled_contracts
directory, similar to hownpm install <package>
installs a NPM package to thenode_modules
directory.Also,
truffle install
will install any dependencies from theethpm.json
file, similar to hownpm install
installs any dependencies frompackage.json
.One feature that seems missing is a command analogous to
npm install -s <package>
, which installs a package and adds the dependency topackage.json
.Proposal
A feature would be added to the Truffle CLI to allow installing new dependencies and saving the dependency to
ethpm.json
. Keeping in line with NPM, this could be added with a-s
flag, sotruffle install -s <package>
.If the
ethpm.json
file doesn't exist, a new file could be automatically generated.