Code Monkey home page Code Monkey logo

Comments (5)

developit avatar developit commented on June 4, 2024 4

I agree that lockfiles are good, just for a boilerplate where people expect to install and have relatively up-to-date dependencies out of the box, it's troublesome. Perhaps a happy medium would be to list instructions for both npm and yarn in the readme?

from preact-boilerplate.

peterbe avatar peterbe commented on June 4, 2024 1

I agree. When yarn came out I fell in love on the spot because I'm a speed freak. However, I later learned about pnpm.

from preact-boilerplate.

developit avatar developit commented on June 4, 2024

What would we be switching, just the docs? I'd be a little hesitant to add a yarn lockfile to the repo since it would need constant updating.

from preact-boilerplate.

peterbe avatar peterbe commented on June 4, 2024

Well, first of all the README.

I actually like the lockfile. It's my second favorite feature of yarn after speed. Makes things easier to avoid bugs in different environments.
Besides, unlike npm outdated when you yarn outdated it just reports on packages in your package.json.

from preact-boilerplate.

developit avatar developit commented on June 4, 2024

Closing for now - I don't think Yarn users really need dedicated instructions on how to use Yarn (it would be odd to intentionally switch package managers but not know how to install a dependency). The npm run steps don't really change with yarn since run is the same in both CLI's. I'd be happy to merge a PR to add yarn to the docs, just not going to do it myself.

from preact-boilerplate.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.