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

Refreshed and improved to support config less repos, key libs and be more resilient #147

Merged
merged 19 commits into from
Oct 14, 2024

Conversation

AdrieanKhisbe
Copy link
Member

New huge set of enhancements to the project, following #143 with main goal to make this usable on project with no prior config, and handle command lib with adherence to node version (lerna and serverless).
Also program was improved not to require a clean state before running.
Less config is needed, the program can be run out of the box on any node repository


Exemple of command ran: (that boostrapped that PR: https://github.com/CoorpAcademy/coorpacademy-lambda/pull/1590)

update-node upgrade --target 20 -dcam "Update-node major bump :outbox_tray:" -R @Coorpacademy/development-mooc -F api-media -s media

flags:


serverless+lerna support: Serverless runtime will be updated, and every package in a lerna mono repo will be updated ⚡🐲 8fffb7f + 22dcf55

Some adjustement where also made for the program to be more flexible with the baseBranch, supporting non master branches

Beta tested on components

⬆️  About to bump node version:
- Write package.json
- Write .nvmrc
- Write .travis.yml
- Write packages/@coorpacademy-app-review/package.json
- Write packages/@coorpacademy-components/package.json
- Write packages/@coorpacademy-css-modules-require-hook/package.json
- Write packages/@coorpacademy-nova-icons/package.json
- Write packages/@coorpacademy-history/package.json
- Write packages/@coorpacademy-player-services/package.json
- Write packages/@coorpacademy-player-store/package.json
- Write packages/@coorpacademy-player-web/package.json
- Write packages/@coorpacademy-progression-engine/package.json
- Write packages/@coorpacademy-react-adapter-angular/package.json
- Write packages/@coorpacademy-react-adapter-dust/package.json
- Write packages/@coorpacademy-react-native-animation/package.json
- Write packages/@coorpacademy-redux-history/package.json
- Write packages/@coorpacademy-redux-router/package.json
- Write packages/@coorpacademy-redux-task/package.json
- Write packages/@coorpacademy-review-services-mocks/package.json
- Write packages/@coorpacademy-review-services/package.json
- Write packages/@coorpacademy-translate/package.json
- Write packages/@coorpacademy-webpack-config/package.json
+ Successfully bumped Node version to v20.17.0
And infer default config master/main/wgatever asking git
@AdrieanKhisbe AdrieanKhisbe self-assigned this Oct 9, 2024
@AdrieanKhisbe AdrieanKhisbe requested a review from a team October 11, 2024 12:44
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 🙏

exit 2
fi
if [[ ! -f $POST_CLEAN_COMMAND_FILE ]]; then
echo "Seems like pre command wasnt run"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
echo "Seems like pre command wasnt run"
echo "Seems like post command wasnt run"

@AdrieanKhisbe AdrieanKhisbe merged commit 3f4cba5 into master Oct 14, 2024
8 checks passed
@AdrieanKhisbe AdrieanKhisbe deleted the refreshed-and-improved--more branch October 14, 2024 12:24
AdrieanKhisbe added a commit that referenced this pull request Oct 21, 2024
Merge pull request #148 from CoorpAcademy/refreshed-and-improved--more-more

#143 and #147 follow up, with few enhancement and glitch fixes

- Sync the package-lock (by default, and with node nvm version loaded) 🔄 
- Add hook `-b`/`--pre-commit-bump-command` to inject commands (like updating a specific package with `ncu`) 🪝 
- Restore force push for the autobump ⛑️
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement 🍭 Nanofeatures and else ;) New Feature 🚀
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants