[go: nahoru, domu]

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

feat: support PNPM as a package manager #1531

Merged
merged 3 commits into from
Apr 8, 2019

Conversation

robertkruis
Copy link
Contributor

Enables vue-cli to use PNPM (https://pnpm.js.org/) as package manager

@robertkruis
Copy link
Contributor Author

@Akryum I think this PR is ready. Could you check it, please?
Note: AppVeyor fails because no test is defined due to temporarily disabling tests on AppVeyor due to cypress EPIPE error.

@pksunkara
Copy link
Contributor

Appveyor tests are working now, you should probably rebase on master so that the PR status is green

})
}

packageManagerChoices.push({
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What do you think to move npm choice at the end of choices?
It will increase code readability and also keep some consistency with this pattern:

if (hasYarn()) {
  // Do Yarn thing
}

if (hasPnpm()) {
  // Do PNPM thing
}

// Do NPM thing

@pksunkara
Copy link
Contributor

@robertkruis Can you address the review comment and rebase the PR please? Thanks.

@owalerys
Copy link

Is this initiative dead?

@robertkruis
Copy link
Contributor Author

@owalerys: the initiative certainly isn't dead. Due to some other obligations I did not have the time to update this PR and make the necessary changes. I'll be having more free time soon and get back to it.

@robertkruis robertkruis reopened this Jan 28, 2019
@TemaSM
Copy link
TemaSM commented Feb 1, 2019

@pksunkara Seems to be everything great now and ready for merging.

@haoqunjiang
Copy link
Member

Could you add a check for installed pnpm version? I think we are only compatible with pnpm v3.

@haoqunjiang haoqunjiang changed the base branch from dev to next-minor April 8, 2019 16:23
@haoqunjiang haoqunjiang merged commit a02ef39 into vuejs:next-minor Apr 8, 2019
haoqunjiang added a commit that referenced this pull request Apr 11, 2019
as a follow up of #1531

1. separate project pnpm check and global pnpm check
2. rename `hasPnpm` to `hasPnpm3OrLater`
3. add `--shamefully-flatten` flag for `pnpm install`
4. generate `.npmrc` when using pnpm as package manager, to persist the install flag
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants