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

Improve change-version script #33148

Merged
merged 1 commit into from
Mar 11, 2021
Merged

Improve change-version script #33148

merged 1 commit into from
Mar 11, 2021

Conversation

XhmikosR
Copy link
Member

@XhmikosR XhmikosR commented Feb 18, 2021

I have this patch around for some time now.

Using globby is a little slower than on main, but we get to simplify the script a lot.

So, apart from adding a couple of command line options, and not writing the files back to disk if they are changed, this changes the logic of the script: we only replace the version in the files we have in the glob and not all file types.

I could split the patches but I thought it might make sense to make all the changes in the same PR.

Please check the individual commits in case I missed something.

If merged, I will backport it to v4-dev.

@XhmikosR XhmikosR marked this pull request as ready for review February 18, 2021 22:27
@XhmikosR XhmikosR requested a review from a team as a code owner February 18, 2021 22:27
build/change-version.js Outdated Show resolved Hide resolved
@XhmikosR XhmikosR force-pushed the main-xmr-change-version-script branch 3 times, most recently from e7c47bc to 589e025 Compare March 11, 2021 09:25
* switch to async/await
* remove shelljs
* switch to globby; supports .gitignore out of the box
* don't write any files to the disk if they are indentical
* add two more cmd switches: --dry and --verbose
* strip leading "v" from version arguments so that we don't end up with duplicate `v`s
@XhmikosR XhmikosR force-pushed the main-xmr-change-version-script branch from 589e025 to 42c3a00 Compare March 11, 2021 09:26
@XhmikosR XhmikosR merged commit e153e5f into main Mar 11, 2021
@XhmikosR XhmikosR deleted the main-xmr-change-version-script branch March 11, 2021 09:37
XhmikosR added a commit that referenced this pull request Mar 11, 2021
* switch to async/await
* remove shelljs
* switch to globby; supports .gitignore out of the box
* don't write any files to the disk if they are indentical
* add two more cmd switches: --dry and --verbose
* strip leading "v" from version arguments so that we don't end up with duplicate `v`s
XhmikosR added a commit that referenced this pull request Mar 15, 2021
* switch to async/await
* remove shelljs
* switch to globby; supports .gitignore out of the box
* don't write any files to the disk if they are indentical
* add two more cmd switches: --dry and --verbose
* strip leading "v" from version arguments so that we don't end up with duplicate `v`s
XhmikosR added a commit that referenced this pull request Mar 23, 2021
* switch to async/await
* remove shelljs
* switch to globby; supports .gitignore out of the box
* don't write any files to the disk if they are indentical
* add two more cmd switches: --dry and --verbose
* strip leading "v" from version arguments so that we don't end up with duplicate `v`s
XhmikosR added a commit that referenced this pull request Apr 5, 2021
* switch to async/await
* remove shelljs
* switch to globby; supports .gitignore out of the box
* don't write any files to the disk if they are indentical
* add two more cmd switches: --dry and --verbose
* strip leading "v" from version arguments so that we don't end up with duplicate `v`s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants