/nextjs-monorepo

Monorepo using Nextjs, AntD, Tailwind CSS, Eslint, Prettier, Husky.

Primary LanguageJavaScript

Monorepo using Nextjs, AntD, and Tailwind CSS

This repository is to demonstrate the use of the Nextjs, AntD, and tailwind CSS on the same repository, separate on apps and components.

Others features

  • ✅ Husky
  • ✅ Eslint
  • ✅ Prettier

Get started

Install all the dependencies

yarn

Run the app

yarn workspace app1 dev

Install dependencies

If you want to install any dependency on any of the packages/apps, you need to use workspace on your add command;

yarn workspace components add antd

Or if you want to add any dependency on the root package.json use the following command;

yarn add antd -W

Create App

The next command help you to create a new app, copy the next command and run into a new terminal;

yarn create-next-app

After app creation, you can run it with the following command;

yarn workspace app-name dev

Change app-name for your app name and dev for you run command if this not called dev