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

Make gulp workable into Yarn's PnP mode #2621

Closed
bhanubais opened this issue Aug 12, 2021 · 1 comment
Closed

Make gulp workable into Yarn's PnP mode #2621

bhanubais opened this issue Aug 12, 2021 · 1 comment

Comments

@bhanubais
Copy link

Now yarn reached at it's version 3.0.0 and gulp reached at 4.0.2
But gulp is still not working in yarn's default PnP (plug and play) mode.

To run gulp in yarn we have to change yarn's mode from pnp to node-modules as follow.

  1. insert nodeLinker: node-modules into .yarnrc.yml file.
  2. run yarn install
  3. now you can run gulp.

But we lost plug and play feature of yarn and almost every package placed in two places one copy into .yarn folder and another one into node_modules folder.

There is no doubt that yarn did a great job to make dependencies neat and clean. It's also very fast compare to npm.
But an excited user can't just install latest NodeJs, Yarn, Gulp and hope gulp will run. Because by default Yarn run on PnP mode.

In the current scenario, we have to install package into .yarn as well as into node_modules to run gulp command. If gulp will agree upon to run on PnP mode we don't need to waste double storage.

@phated
Copy link
Member

phated commented Aug 23, 2021

In yarnpkg/berry#3318 - yarn seems to claim that pnp support exists for gulp 4, so I'm going to close this.

@phated phated closed this as completed Aug 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants