TezosTaqueria / taqueria

*BETA* Taqueria provides a seamless development workflow to easily build, test and deploy your Tezos applications.
https://taqueria.io
Apache License 2.0
64 stars 20 forks source link

Handle error when executing task of non-installed NPM plugin #338

Closed mweichert closed 2 years ago

mweichert commented 2 years ago

An error is emitted when you try to run 'taq compile' from a repo like 'hello-tacos' without having run npm install first.

This problem is apparent when you checkout a repo that has a .taq/state.json file.

Perhaps as a solution at the very least, when we taq init a project, we also add ".taq/state.json" to the .gitignore file if one exists, and if not, generate one.

In additional, because state.json is also aware of whether a plugin is distributed using NPM, we should be able to determine whether npm install has been run by executing npm ls before attempting to proxy a task.

mweichert commented 2 years ago

Add this to the next release as it affects the hello-tacos dapp.

mweichert commented 2 years ago

Fixed in #402