Turborepo with Tailwind CSS setup for shared ui components.

Overview

Turborepo starter

This is an official Yarn v1 starter turborepo.

What's inside?

This turborepo uses Yarn as a package manager. It includes the following packages/apps:

Apps and Packages

  • docs: a Next.js app
  • web: another Next.js app
  • ui: a stub React component library shared by both web and docs applications
  • config: eslint configurations (includes eslint-config-next and eslint-config-prettier)
  • tsconfig: tsconfig.jsons used throughout the monorepo

Each package/app is 100% TypeScript.

Utilities

This turborepo has some additional tools already setup for you:

Setup

This repository is used in the npx create-turbo command, and selected when choosing which package manager you wish to use with your monorepo (Yarn).

Build

To build all apps and packages, run the following command:

cd my-turborepo
yarn run build

Develop

To develop all apps and packages, run the following command:

cd my-turborepo
yarn run dev

Remote Caching

Turborepo can use a technique known as Remote Caching (Beta) 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 (Beta) 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

Useful Links

Learn more about the power of Turborepo:

You might also like...

Creating this clone to learn the fundamentals of Next Js and Tailwind CSS.

Next.js + Tailwind CSS Example This example shows how to use Tailwind CSS (v3.0) with Next.js. It follows the steps outlined in the official Tailwind

Feb 2, 2022

This is a movie app project using imdb database created by nextjs and tailwind css.

This is a Next.js project bootstrapped with create-next-app. Getting Started First, run the development server: npm run dev # or yarn dev Open http://

Dec 24, 2021

This is a movie app created by next.js and tailwind css using imdb database.

This is a Next.js project bootstrapped with create-next-app. Getting Started First, run the development server: npm run dev # or yarn dev Open http://

Dec 26, 2021

A React utility belt for function components and higher-order components.

A Note from the Author (acdlite, Oct 25 2018): Hi! I created Recompose about three years ago. About a year after that, I joined the React team. Today,

Jan 4, 2023

we are make our components in story book. So if we add some components you can find document and example of useage in storybook.

we are make our components in story book. So if we add some components you can find document and example of useage in storybook.

we are make our components in story book. So if we add some components you can find document and example of useage in storybook.

Aug 12, 2022

Providing accessible components with Web Components & Material You

tiny-material Still on developing, DO NOT use for production environment Run well on Google Chrome, Firefox, Chrome for Android, Microsoft Edge (Chrom

Dec 31, 2022

Nextjs-components: A collection of React components

Nextjs-components: A collection of React components

nextjs-components A collection of React components, transcribed from https://vercel.com/design. 1 Motivation Blog post from 01/09/2022 Todo's Unit tes

Nov 30, 2022

A set of React components implementing Google's Material Design specification with the power of CSS Modules

A set of React components implementing Google's Material Design specification with the power of CSS Modules

React Toolbox is a set of React components that implement Google's Material Design specification. It's powered by CSS Modules and harmoniously integra

Dec 30, 2022

A highly impartial suite of React components that can be assembled by the consumer to create a carousel with almost no limits on DOM structure or CSS styles.

A highly impartial suite of React components that can be assembled by the consumer to create a carousel with almost no limits on DOM structure or CSS styles. If you're tired of fighting some other developer's CSS and DOM structure, this carousel is for you.

Dec 24, 2021
Comments
  • Not works fine....

    Not works fine....

    Hi!

    I have cloned the project, installed the dependencies. Once finished I have tried the "yarn lint" and it has started to give a lot of errors.

    web:lint: web:lint: ./pages/index.tsx web:lint: 1:30 Error: Delete prettier/prettier web:lint: 2:29 Error: Delete prettier/prettier web:lint: 3:1 Error: Delete prettier/prettier web:lint: 4:32 Error: Delete prettier/prettier web:lint: 5:11 Error: Delete prettier/prettier web:lint: 6:7 Error: Delete prettier/prettier web:lint: 7:13 Error: Delete prettier/prettier web:lint: 8:31 Error: Delete prettier/prettier web:lint: 9:14 Error: Delete prettier/prettier web:lint: 10:1 Error: Delete prettier/prettier web:lint: 11:77 Error: Delete prettier/prettier web:lint: 12:54 Error: Delete prettier/prettier web:lint: 13:53 Error: Delete prettier/prettier web:lint: 14:21 Error: Delete prettier/prettier web:lint: 15:15 Error: Delete prettier/prettier web:lint: 16:13 Error: Delete prettier/prettier web:lint: 17:8 Error: Delete prettier/prettier web:lint: 18:5 Error: Delete prettier/prettier web:lint: 19:2 Error: Delete prettier/prettier web:lint: web:lint: ./pages/_app.tsx web:lint: 1:1 Error: Run autofix to sort these imports! simple-import-sort/imports web:lint: 1:42 Error: Delete prettier/prettier web:lint: 2:31 Error: Delete prettier/prettier web:lint: 3:1 Error: Delete prettier/prettier web:lint: 4:53 Error: Delete prettier/prettier web:lint: 5:39 Error: Delete prettier/prettier web:lint: 6:2 Error: Delete prettier/prettier web:lint: 7:1 Error: Delete prettier/prettier web:lint: 8:22 Error: Delete prettier/prettier web:lint: web:lint: info - Need to disable some ESLint rules? Learn more here: https://nextjs.org/docs/basic-features/eslint#disabling-rules docs:lint: docs:lint: ./pages/index.tsx docs:lint: 1:30 Error: Delete prettier/prettier docs:lint: 2:29 Error: Delete prettier/prettier docs:lint: 3:1 Error: Delete prettier/prettier docs:lint: 4:33 Error: Delete prettier/prettier docs:lint: 5:11 Error: Delete prettier/prettier docs:lint: 6:7 Error: Delete prettier/prettier docs:lint: 7:13 Error: Delete prettier/prettier docs:lint: 8:41 Error: Delete prettier/prettier docs:lint: 9:14 Error: Delete prettier/prettier docs:lint: 10:1 Error: Delete prettier/prettier docs:lint: 11:77 Error: Delete prettier/prettier docs:lint: 12:54 Error: Delete prettier/prettier docs:lint: 13:54 Error: Delete prettier/prettier docs:lint: 14:21 Error: Delete prettier/prettier docs:lint: 15:15 Error: Delete prettier/prettier docs:lint: 16:13 Error: Delete prettier/prettier docs:lint: 17:8 Error: Delete prettier/prettier docs:lint: 18:5 Error: Delete prettier/prettier docs:lint: 19:2 Error: Delete prettier/prettier docs:lint: docs:lint: ./pages/_app.tsx docs:lint: 1:1 Error: Run autofix to sort these imports! simple-import-sort/imports docs:lint: 1:42 Error: Delete prettier/prettier docs:lint: 2:31 Error: Delete prettier/prettier docs:lint: 3:1 Error: Delete prettier/prettier docs:lint: 4:53 Error: Delete prettier/prettier docs:lint: 5:39 Error: Delete prettier/prettier docs:lint: 6:2 Error: Delete prettier/prettier docs:lint: 7:1 Error: Delete prettier/prettier docs:lint: 8:22 Error: Delete prettier/prettier docs:lint: docs:lint: info - Need to disable some ESLint rules? Learn more here: https://nextjs.org/docs/basic-features/eslint#disabling-rules web:lint: error Command failed with exit code 1. web:lint: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command. docs:lint: error Command failed with exit code 1. docs:lint: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command. web:lint: ERROR: command finished with error: command (apps\web) yarn run lint exited (1) command (apps\web) yarn run lint exited (1)

    I assume you are referring to carriage returns. I have tried to fix it with the "yarn format".

    I run the "yarn lint" again:

    λ yarn lint yarn run v1.22.19 $ turbo run lint 2022/07/16 14:15:05 [WARNING] Turbo configuration now lives in "turbo.json". Migrate to turbo.json by running "npx @turbo/codemod create-turbo-config" • Packages in scope: config, docs, tsconfig, ui, web • Running lint in 5 packages web:lint: cache miss, executing eefdc824cc84263f docs:lint: cache miss, executing 111aa5ccc7031670 web:lint: $ next lint docs:lint: $ next lint web:lint: web:lint: ./pages/_app.tsx web:lint: 1:1 Error: Run autofix to sort these imports! simple-import-sort/imports web:lint: web:lint: info - Need to disable some ESLint rules? Learn more here: https://nextjs.org/docs/basic-features/eslint#disabling-rules docs:lint: docs:lint: ./pages/_app.tsx docs:lint: 1:1 Error: Run autofix to sort these imports! simple-import-sort/imports docs:lint: docs:lint: info - Need to disable some ESLint rules? Learn more here: https://nextjs.org/docs/basic-features/eslint#disabling-rules web:lint: error Command failed with exit code 1. web:lint: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command. docs:lint: error Command failed with exit code 1. docs:lint: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command. docs:lint: ERROR: command finished with error: command (apps\docs) yarn run lint exited (1) web:lint: ERROR: command finished with error: command (apps\web) yarn run lint exited (1) command (apps\docs) yarn run lint exited (1) command (apps\web) yarn run lint exited (1)

    Tasks: 0 successful, 2 total Cached: 0 cached, 2 total Time: 4.298s

    error Command failed with exit code 1. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command. It should now pass the linter without problems but it still gives errors. I assume you are referring to the order of imports. Shouldn't the prettier fix it already? Is there any way to fix it?

    Thank you very much!

    opened by alexllao 0
Owner
George Carl
Writes clean code.
George Carl
Getir.com-react-tailwind - Getir.com anasayfa react + tailwind front-end

Getir.com React + Tailwind Front-end Bir gece uğraşı olarak getir.com'un anasayf

Tayfun Erbilen 102 Dec 17, 2022
A Minimal Setup & Fast Boilerplate for React.js with Vite.

A Minimal Setup & Fast Boilerplate for React.js with Vite Features ?? Dynamic Pages Routing with react-router-dom from React.js ?? Fast development wi

Muhammad Fauzan 26 Oct 25, 2022
React-electron - dagimsolomon: minimalstic setup of Reactjs with electron

Getting Started with Create React App This project was bootstrapped with Create React App. Available Scripts In the project directory, you can run: np

null 2 Jan 23, 2022
Agile Planning tool for cool team, free, no setup, just come and play.

Voting Poker is an Agile Planning Tool for cool teams We're looking to create a fully customizable Zero config Pretty design tool for teams in demand.

Jefferson Moura 10 Dec 12, 2022
Webpack is an open-source JavaScript module bundler. This includes basic setup files to help me not redo all the setups for webpack when starting a new project.

Webpack Setup Webpack is an open-source JavaScript module bundler. It is made primarily for JavaScript, but it can transform front-end assets such as

Nemwel Boniface 14 Jun 23, 2022
Setup all the linters you like for your react app in 1 minute 🚀

Create React Linters ?? Setup all the linters you like and don't let ?? slip into your code base! Eslint | Stylelint | Commitlint | Prettier | EditorC

Mo'men Sherif 19 Nov 18, 2022
Source code for my tutorial on how to build customizable table component with React Table and Tailwind CSS.

React Table + Tailwind CSS = ❤️ Source code for my tutorial on how to build customizable table component with React Table and Tailwind CSS. Both parts

Samuel Liedtke 147 Jan 7, 2023
Nextjs CRUD with React Context API and Tailwind CSS

This is a Next.js project bootstrapped with create-next-app. Getting Started First, run the development server: npm run dev # or yarn dev Open http://

Fazt Web 23 Sep 25, 2022
Build Google 2.0 with Tailwind CSS & Next.js for Education Purpose..

Paradise of Creativity Parimal Nakrani This is a Next.js project bootstrapped with create-next-app. Getting Started First, run the development server:

Parimal Nakrani 1 Dec 21, 2021
Build Instagram 2.0 with Next.js (Firebase v9, Tailwind CSS, NextAuth, Recoil) for the Education Purpose..

This example shows how to use Tailwind CSS (v3.0) with Next.js. It follows the steps outlined in the official Tailwind docs.

Parimal Nakrani 1 Dec 24, 2021