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
$ yarn
$ yarn test
$ yarn start
$ open http://localhost:3000/template
$ yarn generate
And follow the prompts
Global Storybook
$ yarn storybook
Local Application Storybook
$ yarn workspace @andreani/template storybook
Run all tests
$ yarn test
Run Application / Shared Module only tests
$ yarn workspace @andreani/template test
$ yarn workspace @andreani/functions test
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 @andreani/template application and see changes hot reloading on the browser)
To stop all applications
$ yarn stop
If you want to make this repo yours start by using the change-org
script.
$ yarn change-org --from @andreani --to @yourcompany