chenrui333 / monorepo

Frontend monorepo template

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

monorepo

This is a Frontend monorepo template for NextJS applications.

Supports:

  • Create application / shared module
  • Shared TypeScript / ESLint / Prettier configs
  • Global and per Application Storybook
  • Global and per Application Start / Stop
  • Global and per Application / Shared Module Tests

Start

$ yarn
$ yarn test
$ yarn start

$ open http://localhost:3000/template

To create new Application / Shared Module

$ yarn generate

And follow the prompts

Storybook

Global Storybook

$ yarn storybook

Local Application Storybook

$ yarn workspace @outsrc/template storybook

Tests

Run all tests

$ yarn test

Run Application / Shared Module only tests

$ yarn workspace @outsrc/template test

$ yarn workspace @outsrc/functions test

Running Applications

To run all applications on SSG mode (no dev mode)

$ yarn start

To run all applications using dev mode for some

$ yarn start --dev template

(You can now make changes to the @outsrc/template application and see changes hot reloading on the browser)

To stop all applications

$ yarn stop

Change repository organization.

If you want to make this repo yours start by using the change-org script.

$ yarn change-org --from @outsrc --to @yourcompany

About

Frontend monorepo template


Languages

Language:TypeScript 73.8%Language:JavaScript 25.2%Language:SCSS 1.0%