This is an official Yarn v1 starter turborepo.
This turborepo uses Yarn as a package manager. It includes the following packages/apps:
apps/core
: a single-spa microfrontend this houses most of zurimain's uipackages/root-config
: a single-spa rootconfig this is the zurimain wrapper and is what binds all packages and pluginspackages/sidebar
: a react application that houses the sidebar and navigation controlspackages/utilities
: a library housing essential helper functions used by all pluginspackages/ui
: a stub React component library shared by bothcore
application and all pluginspackages/eslint-config-custom
:eslint
configurations (includeseslint-config-prettier
)packages/tsconfig
:tsconfig.json
s used throughout the monorepo
Each package/app is 100% TypeScript.
Make sure you have nodejs installed by running the following command:
node -v
If the output is not the version of your nodejs installation, install nodejs from here
After installing nodejs install yarn if you have it then install the project's dependencies:
yarn install
To build all apps and packages, run the following command:
cd my-turborepo
yarn run build
To remove dist folder
yarn clean
To remove dist folder and all node_modules
yarn clean-fresh
To develop all apps and packages, run the following command:
cd my-turborepo
yarn run dev
Open http://localhost:9000 with your browser to see the result.
For detailed information on how to go about contributing to this project. Check out the
Before send PR or making a merge make sure you code is properly formatted. You can easily do that by running
yarn lint # to lint all files # in project directory
yarn lint:js # to lint only js,jsx files # in project directory
yarn prettify # to prettify files # in project directory
you can also lint for all files in the repo by running that command in the root folder.
Turborepo can use a technique known as Remote Caching to share cache artifacts across machines, enabling you to share build caches with your team and CI/CD pipelines.
By default, Turborepo will cache locally. To enable Remote Caching you will need an account with Vercel. If you don't have an account you can create one, then enter the following commands:
cd my-turborepo
npx turbo login
This will authenticate the Turborepo CLI with your Vercel account.
Next, you can link your Turborepo to your Remote Cache by running the following command from the root of your turborepo:
npx turbo link
Learn more about the power of Turborepo: