🦝Contributing
First, make sure that the program so far works correctly in your environment. If it does not work properly, please report a bug at Issues.
- npm
- Yarn
- pnpm
- Bun
npm i
npm run test
npm run build:package
yarn install
yarn run test
yarn build:package
pnpm i
pnpm run test
pnpm run build:package
bun install
bun run test
bun run build:package
Contribute Component
Launch Storybook.
- React
- npm
- Yarn
- pnpm
- Bun
npm run sb -w packages/react
yarn sb -w packages/react
pnpm run sb -w packages/react
bun run sb -w packages/react
Then check the component in your browser.
Contribute function
Make changes to the source code and test them.
- npm
- Yarn
- pnpm
- Bun
npm run test -w packages/functions
yarn run test -w packages/functions
pnpm run test -w packages/functions
bun run test -w packages/functions
To run only a specific test file, add the path as the first argument.
- npm
- Yarn
- pnpm
- Bun
cd packages/functions
npm run test __tests__/any.test.ts
cd packages/functions
yarn run test __tests__/any.test.ts
cd packages/functions
pnpm run test __tests__/any.test.ts
cd packages/functions
bun run test __tests__/any.test.ts
In order to use the added functionality with react you need to build the package.
- npm
- Yarn
- pnpm
- Bun
npm run build:package -w packages/functions
yarn build:package -w packages/functions
pnpm run build:package -w packages/functions
bun run build:package -w packages/functions
Changeset
If your change should be included in a release, add a changeset.
- npm
- Yarn
- pnpm
- Bun
npm run changeset
yarn changeset
pnpm run changeset
bun run changeset
This creates a markdown file under .changeset/. Commit it together with your change.
Choose the bump type as follows:
patch— bug fixesminor— new features, and breaking changes (this project stays on0.x, andmajorwould bump it to1.0.0)major— do not use for now
@tremolo-ui/functions and @tremolo-ui/react are always released at the same version,
so selecting only one of them still bumps both.
Releases are automated: when a change lands on main, a "Version Packages" pull request is
opened (or updated). Merging that pull request publishes the packages to npm and generates
the CHANGELOG.
Security Issues
Please see Reporting a Vulnerability