madlabsinc / mevn-cli

Light speed setup for MEVN(Mongo Express Vue Node) Apps
https://mevn.surge.sh
MIT License
825 stars 152 forks source link

fix(add): prevent errors when supplying dependencies for `Nuxt.js` template #246

Closed jamesgeorge007 closed 1 year ago

jamesgeorge007 commented 1 year ago

What kind of change does this PR introduce?

bug fix

Did you add tests for your changes?

The existing test suite accounts for it.

If relevant, did you update the documentation?

N/A

Summary

Fixes #247

This PR fixes the issue about specifying dependencies to be installed with the add command fails for the Nuxt.js template irrespective of the directory client/server. The proposed fix skips from performing further configuration if the template chosen is Nuxt.js or the directory is server regardless of the template. All other starter templates have the client/src/main.js as a valid path, which wasn't the case with Nuxt.js. For the server directory, this isn't required since all configuration updates happen for dependencies relating to the client (vuex, vuetify, Nuxt modules, etc).

Does this PR introduce a breaking change?

No

Other information

N/A