Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 5 additions & 8 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
save-exact = true

; The @rtcamp/* packages install straight from the public rtCamp/wp-tooling
; repository (git dependencies in package.json), so no registry, token or SSH key
; is needed. package-lock.json records them as git+ssh URLs, but npm fetches public
; GitHub dependencies as HTTPS tarballs. If the packages are published to npm,
; switch them to version ranges.
; The @rtcamp/* packages are public on the npm registry, so no scope registry or
; token is needed.

; @rtcamp/wp-tooling's peer deps (e.g. eslint ^10) are advisory for this skeleton,
; which pins its own toolchain; tolerate the peer mismatch rather than force-upgrade.
; (Redundant once wp-tooling marks those peers optional — rtCamp/wp-tooling#38.)
; Some toolchain packages still declare older peers (e.g. @babel/eslint-parser wants
; eslint ^9, @react-spring wants react ^18) while this skeleton pins eslint 10 and
; react 19; tolerate the peer mismatch rather than force-downgrade.
legacy-peer-deps = true
6 changes: 3 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ All notable changes to this project are documented in this file. The format is b

- **Renamed from `features-plugin-skeleton` to `plugin-elementary`** and moved to the
`rtCamp/plugin-elementary` repository, aligning it with the sibling `theme-elementary`.
The scaffold placeholder tokens (`Project_Name`, `project-name`,
`rtcamp/project-name-features`) are unchanged; only the repository identity, URLs and
documentation moved.
The scaffold placeholder tokens (`Project_Name`, `project-name`) are unchanged. The
Composer package is now `rtcamp/plugin-elementary`, matching the repository, and
`npm run init` still replaces it with `rtcamp/<slug>-features`.
- Updated the shared engine dependency from `rtcamp/wp-framework` to `rtcamp/wp-primitives ^2.0`.
- Adopted the rtCamp shared coding standards from the common packages (PHPCS, PHPStan, ESLint, Stylelint).
- Rewrote `README.md` and `DEVELOPMENT.md` as entry points that link framework API detail to `rtcamp/wp-primitives`.
Expand Down
7 changes: 2 additions & 5 deletions bin/scaffold.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ module.exports = {
source: {
name: 'Project Name',
namespace: 'Project_Name\\Features',
package: 'rtcamp/project-name-features',
package: 'rtcamp/plugin-elementary',
},

namespace: ( id ) => `${ id.pascalSnake }\\Features`,
Expand Down Expand Up @@ -130,10 +130,7 @@ module.exports = {
},
],
devDependencies: {
// Not on npm: installed from wp-tooling's split branch, like the
// other @rtcamp/* configs in package.json.
'@rtcamp/tailwind-config':
'git+https://github.com/rtCamp/wp-tooling.git#npm/tailwind-config',
'@rtcamp/tailwind-config': '^1.1.0',
tailwindcss: '^4.3.0',
'@tailwindcss/postcss': '^4.3.0',
},
Expand Down
19 changes: 1 addition & 18 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "rtcamp/project-name-features",
"name": "rtcamp/plugin-elementary",
"description": "All backend functionality: post types, taxonomies, blocks, REST endpoints, settings, shortcodes, and custom roles.",
"type": "wordpress-plugin",
"license": "GPL-2.0-or-later",
Expand Down Expand Up @@ -52,23 +52,6 @@
"Project_Name\\Features\\Tests\\": "tests/php/"
}
},
"repositories": [
{
"type": "vcs",
"url": "https://github.com/rtCamp/wp-primitives.git",
"no-api": true
},
{
"type": "vcs",
"url": "https://github.com/rtCamp/wp-phpcs.git",
"no-api": true
},
{
"type": "vcs",
"url": "https://github.com/rtCamp/wp-phpstan.git",
"no-api": true
}
],
"scripts": {
"format": "phpcbf",
"lint": "phpcs",
Expand Down
91 changes: 41 additions & 50 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/internal/maintenance.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ The skeleton is a consumer of three shared repositories. Fix a problem where it

[`bin/scaffold.config.js`](../../bin/scaffold.config.js) is the contract between the skeleton and the init engine. It declares:

- **`source`**: the placeholder identity (`Project Name`, `Project_Name\Features`, `rtcamp/project-name-features`) the engine search-replaces. The engine never rewrites files under `bin/`, so placeholders there are safe.
- **`source`**: the placeholder identity (`Project Name`, `Project_Name\Features`, `rtcamp/plugin-elementary`) the engine search-replaces. The engine never rewrites files under `bin/`, so placeholders there are safe.
- **`versionFiles`**: where the version is written (main-file header, `package.json`).
- **`examples.groups`**: one entry per example set, built with `capability( key, label, category, { module, strip, remove, tests } )`, plus one `workflow()` entry for the CI caller.
- **`features`**: the toggleable features (`tailwind`, `hmr`, and `dev-tools` from `bin/features/dev-tools.js`).
Expand Down
25 changes: 13 additions & 12 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@
"devDependencies": {
"@babel/core": "7.29.7",
"@eslint-community/eslint-plugin-eslint-comments": "4.7.2",
"@rtcamp/eslint-config": "git+https://github.com/rtCamp/wp-tooling.git#npm/eslint-config",
"@rtcamp/stylelint-config": "git+https://github.com/rtCamp/wp-tooling.git#npm/stylelint-config",
"@rtcamp/wp-tooling": "github:rtCamp/wp-tooling#npm/wp-tooling",
"@rtcamp/eslint-config": "^1.1.0",
"@rtcamp/stylelint-config": "^1.1.0",
"@rtcamp/wp-tooling": "^2.0.0",
"@wordpress/babel-preset-default": "8.47.0",
"@wordpress/block-editor": "18.0.0",
"@wordpress/blocks": "16.1.0",
Expand Down
Loading