Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jefferson1104/boilerplate-nextjs
With this boilerplate start your project well configured with Eslint, prettier, Husky, babel, next-config and even the use of PLOP for you to automatically create your component structure, with style, storiebook and test files.
https://github.com/jefferson1104/boilerplate-nextjs
jest nextjs react storybook styled-components typescript
Last synced: 2 days ago
JSON representation
With this boilerplate start your project well configured with Eslint, prettier, Husky, babel, next-config and even the use of PLOP for you to automatically create your component structure, with style, storiebook and test files.
- Host: GitHub
- URL: https://github.com/jefferson1104/boilerplate-nextjs
- Owner: jefferson1104
- Created: 2021-11-19T15:25:24.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-01-07T14:19:43.000Z (almost 2 years ago)
- Last Synced: 2023-03-04T16:47:30.342Z (over 1 year ago)
- Topics: jest, nextjs, react, storybook, styled-components, typescript
- Language: TypeScript
- Homepage:
- Size: 1.42 MB
- Stars: 11
- Watchers: 1
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
NEXTJS BOILERPLATE
## About this project
This is a boilerplate to be use in your project with tecnologies NextJS, TypeScript, Storybook, Styled-components, Jest & React-testing-library.## Technologies
- [TypeScript](https://www.typescriptlang.org/)
- [NextJS](https://nextjs.org/)
- [Styled Components](https://styled-components.com/)
- [Jest](https://jestjs.io/)
- [React Testing Library](https://testing-library.com/docs/react-testing-library/intro)
- [Storybook](https://storybook.js.org/)
- [Eslint](https://eslint.org/)
- [Prettier](https://prettier.io/)
- [Husky](https://github.com/typicode/husky)## Run this project
```bash
# Creating your project using this boilerplate
$ yarn create next-app -e https://github.com/jefferson1104/boilerplate-nextjs PROJECT_NAME# Project directory
cd PROJECT_NAME# Install dependencies
$ yarn# Run project
$ yarn dev
```## Commands
- `yarn dev`: run application on `localhost:3000`
- `yarn build`: creates the production build version
- `yarn start`: starts a simple server with the build production code
- `yarn lint`: runs ESLint to test all components and pages
- `test`: run Jest to test all components and pages
- `test:watch`: run Jest to test in watch mode
- `yarn storybook`: run storybook on `localhost:6006`
- `yarn generate`: create the component structure in an automated way## Init Husky in your project
Execute command: `npx husky-init && yarn`In the **pre-commit** file inside the .husky directory **.husky/pre-commit** Change line content `npm test` to `npx --no-install lint-staged`