Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add ability to install dependencies with npm or yarn #65

Open
Karnith opened this issue Aug 29, 2022 · 0 comments
Open

add ability to install dependencies with npm or yarn #65

Karnith opened this issue Aug 29, 2022 · 0 comments

Comments

@Karnith
Copy link
Contributor

Karnith commented Aug 29, 2022

The current install process for templates uses npm only to install dependencies after initializing a project by template as seen below:

}).then(({ install }) => {
if (install) {
console.log("\nRunning 'npm install'...");
return exeq([
"cd " + values.projectPath,
"npm install"
]);
}
});

What I propose is that this be modified to look for a yarn.lock file provided in the template, if a yarn.lock is not found then default to npm install. This change should be relatively simple and will allow those users that use yarn to have dependencies installed with yarn when prompted if dependencies should be installed. Currently users that use yarn init a template then must select no to installing dependencies in order to then install them via yarn, this change would bring the experience of using yarn inline with users using npm.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants