Comments (13)
Sure @kedromelon. Will be creating a PR by end of this week.
from babel-upgrade.
👍 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.
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.
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.
I do agree with you. It's not really necessary
from babel-upgrade.
Unless we think a better default is --dry and to use --write
for the actual run?
from babel-upgrade.
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.
Yes please make the default safe.
from babel-upgrade.
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.
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.
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.
Can I take this up? @hzoo
from babel-upgrade.
@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)
- plugins aren't added to package.json
- [Ignore]
- SUGGESTION: Modify useBuiltIns for babel-preset-env in babelrc
- Plugins order are incorrect: proposal-decorators compatibility with proposal-class-properties
- Packages are capped at ^7.0.0 HOT 3
- add help
- Jest 24 dropped support for babel 6
- Upgrade failed
- "Move this into the monorepo when somewhat ready"
- Export package.json dependencies and .babelrc from repl
- @babel/core was added twice into package.json HOT 2
- cannot find module babel-plugin-transform-object-rest-spread HOT 1
- After upgrade to Babel7, I see Cannot find module '@babel/runtime-corejs2/core-js/reflect/construct' HOT 1
- Resolve duplicate entries HOT 2
- error on transform-export-extensions plugin upgrade
- Not have support to babel-plugin-transform-decorators-legacy HOT 1
- [ Bug ] Wrong behavior with unknown parameters HOT 1
- babel-upgrade is broken if you have spaces in user folder.
- ERROR in multi babel-polyfill ./src/client/index Module not found: Error: Can't resolve 'babel' in 'C:\Users\messi\New folder' @ multi babel-polyfill ./src/client/index main[1] HOT 2
- Babel Upgrade Online HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from babel-upgrade.