Giter VIP home page Giter VIP logo

Comments (13)

aulisius avatar aulisius commented on July 20, 2024 1

Sure @kedromelon. Will be creating a PR by end of this week.

from babel-upgrade.

hzoo avatar hzoo commented on July 20, 2024

👍 I certainly understand why you'd want that but not sure how it would work exactly?

The output is just a change in the files so you would just do a git reset to go back and git diff to view? Unless you have something of an idea for it?

from babel-upgrade.

aulisius avatar aulisius commented on July 20, 2024

I was thinking, the output would actually be like a git diff. The only change is that it applies no changes. There isn't any special case I had in mind.

from babel-upgrade.

hzoo avatar hzoo commented on July 20, 2024

If you are already using git and run git diff after running the command, it is necessary to have a --dry-run option? The only thing you couldn't reset is if we automatically run npm install again which isn't implemented yet either and even that you could just run again.

from babel-upgrade.

aulisius avatar aulisius commented on July 20, 2024

I do agree with you. It's not really necessary

from babel-upgrade.

hzoo avatar hzoo commented on July 20, 2024

Unless we think a better default is --dry and to use --write for the actual run?

from babel-upgrade.

aulisius avatar aulisius commented on July 20, 2024

Well. That does sound interesting. I think this is something that needs to be discussed with more ppl. Some might prefer to go ahead with the change and some (like me) might want the dry run first before accepting changes.

from babel-upgrade.

ljharb avatar ljharb commented on July 20, 2024

Yes please make the default safe.

from babel-upgrade.

ljharb avatar ljharb commented on July 20, 2024

Separately, having a dry run option that exits zero when no changes are made is always useful for CIs, to avoid having to manually check and reset a git diff.

from babel-upgrade.

hzoo avatar hzoo commented on July 20, 2024

I guess it depends what do you mean by safe? It modifies files in the git repo which can be reset. What's the usecase for running in CI other than if we figure out how to make it as a service to auto PR some repos?

from babel-upgrade.

ljharb avatar ljharb commented on July 20, 2024

I'm not sure off the top of my head :-) but in general, every tool I've ever used that modifies files, I've ended up needing a way to validate that the command has been ran in CI.

from babel-upgrade.

aulisius avatar aulisius commented on July 20, 2024

Can I take this up? @hzoo

from babel-upgrade.

noahlemen avatar noahlemen commented on July 20, 2024

@aulisius are you still interested in working on this? feel free to start a PR to continue this conversation in if so! i think this would be useful for #52

from babel-upgrade.

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.