2.5 KiB
ZITADEL typescript with Changesets
This is an monorepo containing all typescript/javascript packages and applications for ZITADEL powered by Turborepo. Versioning and package publishing is handled by Changesets and fully automated with GitHub Actions.
What's inside?
This Turborepo includes the following:
Apps and Packages
login: The new login UI powered by Next.js@zitadel/core: core node SDK@zitadel/react-utils: shared React utilities@zitadel/tsconfig: sharedtsconfig.jsons used throughout the monorepoeslint-config-zitadel: ESLint preset
Each package and app is 100% TypeScript.
Utilities
This repo has some additional tools already setup for you:
- TypeScript for static type checking
- ESLint for code linting
- Prettier for code formatting
Useful commands
yarn build- Build all packages and the docs siteyarn dev- Develop all packages and the docs siteyarn lint- Lint all packagesyarn changeset- Generate a changesetyarn clean- Clean up allnode_modulesanddistfolders (runs each package's clean script)
Versioning and Publishing packages
Package publishing has been configured using Changesets. Please review their documentation to familiarize yourself with the workflow.
This example comes with automated npm releases setup in a GitHub Action. To get this working, you will need to create an NPM_TOKEN and GITHUB_TOKEN in your repository settings. You should also install the Changesets bot on your GitHub repository as well.
For more information about this automation, refer to the official changesets documentation
npm
If you want to publish package to the public npm registry and make them publicly available, this is already setup.
To publish packages to a private npm organization scope, remove the following from each of the package.json's
- "publishConfig": {
- "access": "public"
- },