Skip to content

chore: use the published @rtcamp and rtcamp packages, rename to rtcamp/plugin-elementary - #22

Merged
aryanjasala merged 4 commits into
mainfrom
chore/registry-packages
Oct 1, 2026
Merged

aryanjasala merged 4 commits into
mainfrom
chore/registry-packages

Conversation

@aryanjasala

Copy link
Copy Markdown
Member

Every package the plugin takes from rtCamp is now on a public registry, so the plugin installs them from there instead of git, and the Composer package takes the repository's name.

Changes

  • npm: @rtcamp/eslint-config ^1.1.0, @rtcamp/stylelint-config ^1.1.0 and @rtcamp/wp-tooling ^2.0.0 instead of the npm/* git branches. The Tailwind feature adds @rtcamp/tailwind-config ^1.1.0. package-lock.json changes only those three entries, from git+ssh URLs to registry tarballs with integrity hashes.
  • Composer: rtcamp/wp-primitives, rtcamp/wp-phpcs and rtcamp/wp-phpstan resolve from Packagist, so the three GitHub VCS repositories are gone. wp-primitives stays at v2.0.0; wp-phpcs and wp-phpstan move to v1.0.1 (README, licence and package metadata only).
  • Rename: the Composer package is now rtcamp/plugin-elementary instead of rtcamp/project-name-features. bin/scaffold.config.js holds the same placeholder, so npm run init still produces rtcamp/<slug>-features. The Project_Name and project-name placeholders are unchanged. The CHANGELOG and the maintenance doc say so.
  • .npmrc: the git-install note is gone. legacy-peer-deps stays, since without it npm install fails with ERESOLVE (@babel/eslint-parser wants eslint ^9, @react-spring wants react ^18); its comment now says that instead of blaming wp-tooling, which has no peers.

Testing

  • npm ci: clean on npm 10.9 (Node 22) and npm 11.6 (Node 24)
  • npm run lint, npm run build:prod: pass
  • Jest: 19 of 19
  • composer validate, a clean composer install, PHPStan and PHPCS: pass
  • npm run init -- --yes --name="Acme Blog" --features=tailwind on a copy: the new plugin gets rtcamp/acme-blog-features, all four @rtcamp packages on ^ ranges, and npm install plus build:prod succeed with @rtcamp/tailwind-config from npm
  • PHPUnit was not run (it needs wp-env); no PHP code changes

@rtcamp/eslint-config, @rtcamp/stylelint-config and @rtcamp/wp-tooling are
published, so package.json asks for ^1.1.0, ^1.1.0 and ^2.0.0 instead of the
npm/* git branches, and the Tailwind feature adds @rtcamp/tailwind-config
^1.1.0. The lockfile now records registry tarballs with integrity hashes
instead of git+ssh URLs. legacy-peer-deps stays, with its comment corrected:
wp-tooling has no peers, but parts of the toolchain still declare older ones.
Matches the repository name. bin/scaffold.config.js keeps the placeholder
identity in sync, so npm run init still replaces it with
rtcamp/<slug>-features. composer.lock only gets the new content-hash.
rtcamp/wp-primitives, rtcamp/wp-phpcs and rtcamp/wp-phpstan are on Packagist,
so composer.json drops their GitHub VCS repositories. The lock re-resolves them
from Packagist: wp-primitives stays at v2.0.0, and wp-phpcs and wp-phpstan move
to v1.0.1 (README, licence and package metadata only).
AnuragVasanwala
AnuragVasanwala previously approved these changes Oct 1, 2026
Takes the combined Dependabot updates from #23. package-lock.json is main's,
with only the three @rtCamp entries moved to the npm registry releases.
@aryanjasala
aryanjasala merged commit ae941f0 into main Oct 1, 2026
30 checks passed
@aryanjasala
aryanjasala deleted the chore/registry-packages branch October 1, 2026 19:47
@aryanjasala aryanjasala mentioned this pull request Oct 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants