The following is a set of guidelines and tips for contributing to the TinaCMS and its packages.
- Reporting Bugs
- Suggesting Enhancements
- Writing Docs, Guides, or Blog Posts
- Volunteering for User Testing
TinaCMS uses Conventional Commits to generate CHANGELOG entries. Please make sure your commits follow this convention.
Packages in Tina are organized according to their name
| Type | Naming Convention | Example Path |
|---|---|---|
| Internal packages | @tinacms/* |
@tinacms/core |
| Node API extensions | @tinacms/api-* |
@tinacms/api-git |
| React specific packages | react-tinacms-* |
react-tinacms-remark |
| Gatsby plugins | gatsby-tinacms-* |
gatsby-tinacms-json |
| Next.js helpers | next-tinacms-* |
next-tinacms-json |
| Demo Projects | demo-* |
demo-gatsby |
This section contains solutions to various problems you may run into when developing for TinaCMS.
The links between the local packages may have been broken. If this is the problem, then
running npm run bootstrap should fix the issue.
sh: tinacms-scripts: command not found
Linking prevents running npm install from directly inside a package from working. There are two ways to get around this issue.
-
Add the package with lerna
You can use lerna to add new dependencies to a package from the root of the repository:
lerna add react --scope react-cmsThe downside of this approach is you can only add one dependency at a time. If you need to add many packages, you can use the next method.
-
Add dependencies manually, then bootstrap
The other approach is to manually add the dependencies to the
package.jsonand then runnpm run bootstrapfrom the root of the repository. -
When I run
npm run bsit deletes the contents of a package?This sucks. Try running
lerna cleanand then runningnpm run bsagain.
There are two reasons this error might occur:
-
The package did not link to
some-tinacms-packageThis is likely the problem if
some-tinacms-packageis missing from thenode_modules. If it is, do the following:- Make sure
some-tinacms-packageis listed in thepackage.json - Run
npm run bootstrapfrom the root of the repo.
- Make sure
-
some-tinacms-packagewas not built.This is likely the problem if: the
builddirectory is missing; there are no.d.tsor.jsfiles. To fix this issue simply runnpm run buildfrom the root of the repository.
The TinaCMS core team releases frequently. Checkout the RELEASE.md file to see how to create a release.