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

升级时保留有冲突的旧文件 #50

Open
donaldshen opened this issue May 30, 2019 · 0 comments
Open

升级时保留有冲突的旧文件 #50

donaldshen opened this issue May 30, 2019 · 0 comments

Comments

@donaldshen
Copy link

donaldshen commented May 30, 2019

当前场景

原.babelrc有test相关的配置;新的.babelrc删去了相关内容。当前的行为是cli不改动这个文件,导致用户不知道要升级;
而build.sh这类的文件则会粗暴覆盖。

期望行为

升级覆盖文件时,进行字符串比对。如果不同,则生成一个文件副本,并在命令行提示用户需要手动合并。比如:

# 升级前文件目录
.babelrc

# 升级后,发现文本内容有不同。用户需要手动合并
.babelrc # 新文件
.babelrc.old # 原文件
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

1 participant