-
-
Notifications
You must be signed in to change notification settings - Fork 133
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
Delete destination environment file before writting new #1034
Conversation
@JeroenVinke I am not sure is this too much for 90% of users who do not use TFS? Is there any other option we have (like hiding this behind a custom menu)? |
why change the target file I thought you wanted to change the on the same note: |
@lorond thanks for looking into this and creating the pr! I also think that there are better ways to handle these environment settings. While we look into that, people who use tfs and run into this problem can use the fix that’s in this PR. |
Probably need to add an entry here https://aurelia.io/docs/cli/recipes @lorond would you like to help on the doc? |
Thought, it would fail to delete readonly file, but it isn't. Changed it.
Sure |
@lorond LOL, just found out gulp.src('a.js')
.pipe(gulp.dest('out', {mode: parseInt('666', 8)})); Or if you want more strict, |
@huochunpeng not sure if it is a good solution as it changes mode after file copied, not before. |
I tested gulp.dest thing, it works very well when source file is read only, it ensures target file is not read only. |
Yep, but consider it already readonly - someone run build without solution, fount fix, integrated it and run build again - build will fail. Removing readonly is kind of hack, removed entire file - normal cleanup (and could be implemented as separate task). |
is this PR going to be merged? it's a beautiful solution for a common TFS problem. |
@EisenbergEffect @JeroenVinke how do you think of bringing in this fix? @lorond the new files to be touched are
|
I'm fine with merging this if someone can resolve the conflicts. |
I'll resolve them. |
Also, please rewrite commit message to follow our Git Commit Guidelines. I guess this one is a "fix(all): ..." as the bug was in both cli-bundler and webpack based projects. Thanks for the contribution! |
done #1118 |
issue: #1031