This is a template for building MaxMsp-compatible TypeScript libraries.
- Click the
Use this template
button on the top right of this page. - Clone your new repository:
git clone https://github.com/your-username/your-repo.git
- Install dependencies:
pnpm install
- Compile the code:
pnpm build
- Run tests:
pnpm test
- Initialize changesets:
pnpm changesets init
This is a turborepo monorepo template with the following structure:
├── apps
│ └── maxmsp-test
└── packages
└── my-library
my-library
: Contains your TypeScript librarymaxmsp-test
: Contains an instance of this template withmy-library
as a dependency.
This template uses changesets to manage versioning and changelogs, and GitHub Actions to publish new versions.
To create a new changeset:
- Run
pnpm changeset
- Follow the prompts
When you're ready to publish to npm you can do it manually or with the GitHub Action.
To publish manually:
- Login to npm with
npm login
- Run
pnpm publish
- Follow the prompts
To publish with the GitHub Action:
- Set up a Repository Secret named
NPM_TOKEN
with your npm token. - The publish workflow will run automatically when you push to the
main
branch with a changeset. - The GitHub Action will create a new Pull Request with the new version and changelog.
- When you merge that Pull Request, the new version will be published to npm and released on GitHub.