update-cnw-templates
Installation
SKILL.md
Update CNW Templates
Bump every CNW template repo to one target nx version, verify it still builds and
still scaffolds, then open a draft PR per repo. Each template is an independent
GitHub repo under nrwl/; create-nx-workspace --template nrwl/<repo> clones its
main to scaffold a user's workspace. Each repo has a ci.yml that lints, tests,
builds, typechecks, and e2es it on PRs - but the consumer path (scaffolding from main
via --template) isn't covered there, and a force-push to main skips PR CI entirely
(how the react template broke). So verify before you ship.
This skill makes no assumption that the repos are checked out locally. It clones what it needs. Anyone on the team can run it from a fresh machine.
Input
- Target nx version - e.g.
23.2.0. If omitted, use latest stable:npm view nx@latest version. Verify it exists:npm view nx@<version> version. - Repos - one, several, or (default) all live templates. Names may be given with or without the
-templatesuffix. - Work dir - where clones land. Default
./tmp/cnw-templates/(gitignored). Reuse an existing clone if one is already there and clean.