Description
Presently, the cli while setting up a service using the generate command instead of setting it up during the bootstrapping phase does not install the external/extra dependencies if any. This should not be the case, those should be added alongside the service setup.
Potential fix
- Detect the
lock file in the package root, if the package root contains only yarn.lock or pnpm.lock use yarn or pnpm respectively, incase there is no lock file of multiple lock files default to npm.
- Read, parse and update the
package.json to add the dependency with the particular version that is required and print a message for the user to install the new dependencies using a package manager of their choice.
Objective
The goal of this issue is to update the package.json when user runs the generate command and prompt user on which package manager he needs to install the packages or use the registry generated here #20 to know which package manager the user has chosen while bootstraping the project.
Goals
Before generate command |
After generate command |
Complexity : Medium
Product Name
Stencil-Cli
Organisation Name
SamagraX
Domain
Command Line Interface
Tech Skills Needed
TypeScript, Cli
Description
Presently, the cli while setting up a service using the
generatecommand instead of setting it up during the bootstrapping phase does not install the external/extra dependencies if any. This should not be the case, those should be added alongside the service setup.Potential fix
lockfile in the package root, if the package root contains onlyyarn.lockorpnpm.lockuseyarnorpnpmrespectively, incase there is no lock file of multiple lock files default tonpm.package.jsonto add the dependency with the particular version that is required and print a message for the user to install the new dependencies using a package manager of their choice.Objective
The goal of this issue is to update the package.json when user runs the
generatecommand and prompt user on which package manager he needs to install the packages or use the registry generated here #20 to know which package manager the user has chosen while bootstraping the project.Goals
generatecommandgeneratecommandComplexity : Medium
Product Name
Stencil-Cli
Organisation Name
SamagraX
Domain
Command Line Interface
Tech Skills Needed
TypeScript, Cli