@xmtp/content-type-primitives
Version:
Primitives for building custom XMTP content types
32 lines (22 loc) • 824 B
Markdown
# Content type primitives
This package provides primitives for building custom XMTP content types.
## Install the package
```bash
# npm
npm i @xmtp/content-type-primitives
# yarn
yarn add @xmtp/content-type-primitives
# pnpm
pnpm i @xmtp/content-type-primitives
```
## Developing
Run `yarn dev` to build the content type primitives and watch for changes, which will trigger a rebuild.
## Useful commands
- `yarn build`: Builds the content type primitives
- `yarn clean`: Removes `node_modules`, `dist`, and `.turbo` folders
- `yarn dev`: Builds the content type and watches for changes, which will trigger a rebuild
- `yarn format`: Runs Prettier format and write changes
- `yarn format:check`: Runs Prettier format check
- `yarn lint`: Runs ESLint
- `yarn test`: Runs all unit tests
- `yarn typecheck`: Runs `tsc`