Skip to content

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

Merged
aryanjasala merged 4 commits into
theme-elementary-v2from
chore/registry-packages
Oct 1, 2026
Merged

aryanjasala merged 4 commits into
theme-elementary-v2from
chore/registry-packages

Conversation

@aryanjasala

Copy link
Copy Markdown
Member

Every package the theme takes from rtCamp is now on a public registry, so the theme 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/theme-elementary. bin/scaffold.config.js holds the same placeholder, so npm run init still replaces it with rtcamp/<theme-slug>. The theme slug, text domain and package.json name (elementary-theme) are unchanged.
  • .npmrc and the internal docs no longer describe git installs.

Testing

  • npm ci: clean on npm 10.9 (Node 22) and npm 11.6 (Node 24)
  • npm run lint:all, npm run build:prod: pass
  • Jest: 59 of 59
  • composer validate, a clean composer install, PHPStan and PHPCS: pass
  • npm run init -- --yes --name="Acme Blog" --features=tailwind on a copy: the new theme gets rtcamp/acme-blog, 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.
Matches the repository name. bin/scaffold.config.js keeps the placeholder
identity in sync, so npm run init still replaces it with rtcamp/<theme-slug>.
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).
The shared Lint CSS job passes package.json and package-lock.json to
Stylelint when they change, and Stylelint failed on them with
CssSyntaxError. Ignore **/*.json like the plugin does.
@aryanjasala
aryanjasala merged commit 2dfa819 into theme-elementary-v2 Oct 1, 2026
29 checks passed
@aryanjasala
aryanjasala deleted the chore/registry-packages branch October 1, 2026 19:43
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