I have no idea who might be interested in this project, but thanks for your interest!
- Node.js (v20 or higher)
- npm or yarn
- latest version of Cursor IDE
-
Install Verdaccio:
npm install -g verdaccio
-
Start Verdaccio:
verdaccio # Use --config config/verdaccio.yml for custom configuration -
Configure local registry:
# Set registry npm config set @usrrname:registry http://localhost:4873/ # Verify registry setting npm config get @usrrname:registry # should return http://localhost:4873/
-
Build and publish:
npm publish --scope=@usrrname
-
Test the command locally:
## as a tarball npm pack ## as a folder npx cursorrules
-
Clean up test versions:
npm unpublish @usrrname:registry http://localhost:4873/ @usrrname/cursorrules
Automated release can be done in 2 ways:
- Creating a new release in the Releases page with the new version number as tag
- If you have no ideas for release notes, you can tell Cursor to create them for you and it will use the
release-notes-generator-manual.mdcrule. Copy that into the Release Notes section. - Once the release is public, the publishing Github Actions workflow will be triggered.
- Activate the
release-workflow-auto.mdcrule in Cursor by asking it to create or prepare a release.
- This rule will create a new release with a version bump, generate release notes and changelog, and update the version in package.json.
- It will create a new branch and tag, and push the changes to the remote repository.
- On merge to main, the publishing Github Actions workflow will be triggered.