Skip to content

docs: add composer create-project as a way to start - #41

Merged
AnuragVasanwala merged 3 commits into
mainfrom
docs/create-project
Oct 1, 2026
Merged

AnuragVasanwala merged 3 commits into
mainfrom
docs/create-project

Conversation

@aryanjasala

@aryanjasala aryanjasala commented Oct 1, 2026 •

Copy link
Copy Markdown
Member

Adds composer create-project as a way to start a plugin, next to git clone. Once rtcamp/plugin-elementary is on Packagist, this gives a new project the skeleton without its Git history.

Changes

  • README.md: the create-project command under Get started, with a generic folder name (my-plugin). The walkthrough keeps the Acme demo name so its derived names line up.
  • docs/getting-started.md, step 1: the Composer route first, then the clone route.
    • create-project also runs composer install; step 2's npm install is still needed.
    • git init and a first commit give the copy a baseline to review init's changes against. A Composer download has no .git, npm run init -- --yes skips init's optional Git setup, and npm install only installs the Git hooks inside a repository.

Before merging

create-project installs the latest stable version, and the repository has no tags yet, so the command fails until v1.0.0 is tagged. Merge this after the v1.0.0 tag and the Packagist submission.

Testing

Followed the new step 1 from an empty folder, downloading from GitHub with the same VCS driver Packagist uses (--prefer-dist, the zip a release serves):

  • composer create-project: a complete skeleton with no .git
  • npm install, then npm run init -- --name="Acme Content" --version=1.0.0 --yes --keep-examples: passes
  • After git init, wp-tooling install-hooks (run by npm install) installs the commit-msg and pre-commit hooks

Packagist serves the starter as rtcamp/plugin-elementary, so a new project can start
from a Composer download without the starter's Git history. The guide
pairs it with --no-install and a first commit, so the dependency and init
steps that follow stay the same.
The walkthrough keeps the Acme demo name, so its derived names still line
up; the README quick start reads better with a placeholder.
Drop --no-install so the command matches the usual Composer form.
@AnuragVasanwala
AnuragVasanwala merged commit 7bbe98a into main Oct 1, 2026
19 of 20 checks passed
@AnuragVasanwala
AnuragVasanwala deleted the docs/create-project branch October 1, 2026 23:29
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