Skip to content

Commit

Permalink
Refreshed and improved to support config less repos, key libs and be …
Browse files Browse the repository at this point in the history
…more resilient 🪭 (#147)

Merge pull request #147 from CoorpAcademy/refreshed-and-improved--more

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: CoorpAcademy/coorpacademy-lambda#1590)
```bash
update-node upgrade --target 20 -dcam "Update-node major bump 📤" -R @CoorpAcademy/development-mooc -F api-media -s media
```
flags:
- `d` for default config 🆕 7eb2685
- `c` for clean, cleanup before running 🆕 c6e0220
- `a` for autofigure what to do
- `target`(t) to search to bump for a specific node version (from #143)
- `F` to target a folder (was ran from `coorpacademy-lambda` root (from #143)
- `s` to `scope` in monorepo (scoped added in title and branch name) 🆕 a1faa74
- `R` to set reviewer (from #143)

------

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
  • Loading branch information
AdrieanKhisbe authored Oct 14, 2024
2 parents 5cc09d1 + 594ebe5 commit 3f4cba5
Show file tree
Hide file tree
Showing 15 changed files with 553 additions and 538 deletions.
55 changes: 45 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,51 @@ Commands:
[aliases: scaffold]

Options:
--help Show help [boolean]
--version Show version number [boolean]
--local, -l Run in local mode with github publication [boolean]
--token, -t Token to authentificate to github [string]
--folder, -f Run in a specific folder [string]
--force, -F Git Push with force changes
(--force-with-lease is used by default) [boolean]
--config, -c Override update-node configuration default path [string]
--auto, -A Select automatically behavior to adopt based on current commit
and branch [boolean]
--version Show version number [boolean]
-l, --local Run in local mode with github publication
[boolean]
-v, --verbose More log outputs [boolean]
-t, --token Token to authentificate to github[string]
-a, --autoToken, --at, --auto-token Get authentificated github token from gh
cli [boolean]
-A, --auto Select automatically behavior to adopt
based on current commit and branch
[boolean]
-F, --folder Run in a specific folder [string]
-s, --scope Apply to a scope of the repository
(impact on title and branch name)[string]
-C, --config Override update-node configuration
default path [string]
-d, --default-config, --default Override update-node configuration
default path [boolean]
-c, --clean Run on a clean state [boolean]
-p, --pre-clean-command Run before to clean state [array]
-P, --post-clean-command Run on a clean state [array]
-f, --force Git Push with force changes
(--force-with-lease is used by default)
[boolean]
-h, --help Show help [boolean]

Upgrade related options:
-T, --target Node version to target [string]
--ignoreDependencies, --only-node Ignore depencies [boolean]
--lerna Consider as learna monorepo (only
applies for node bump) [boolean]
-m, --message Optional extra message to attach to the
commit and pull request [string]
-r, --reviewers Extra reviewers to add to the pull
request [string]
-R, --teamReviewers Extra team reviewers to add to the pull
request [string]
--exact Keep exact version in engine version
[boolean] [default: false]
--loose For loose version for nodes version.
This will replace exisiting range
constraint (^, ~ or none).
Use --no-loose to disable or place
loose: false in config in the node
section) [boolean] [default: true]

Examples
update-node --token=TKN

Expand Down
Loading

0 comments on commit 3f4cba5

Please sign in to comment.