Skip to content

add ability to install dependencies with npm or yarn #65

@Karnith

Description

@Karnith

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions