Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/RodrigoRVSN/next-boilerplate-bunny

🚀 A boilerplate with generic configurations to a Nextjs project with bun, vitest, cicd and etc
https://github.com/RodrigoRVSN/next-boilerplate-bunny

bun cypress eslint husky nextjs typescript vitest

Last synced: 25 days ago
JSON representation

🚀 A boilerplate with generic configurations to a Nextjs project with bun, vitest, cicd and etc

Awesome Lists containing this project

README

        

# 👕 Next.JS Template with Linter


___
## ðŸ”Ļ Tools:

- NextJS
- Typescript
- ESLint (Code Pattern)
- Prettier (Formatter)
- Husky (Pre-commit)
- Vitest (Unit/Integration Test)
- Cypress (Test E2E)
- Bun
___
## ðŸĪš How to use:

```bash
git clone https://github.com/rodrigorvsn/next-boilerplate-bunny.git
```

```bash
bun install
```

```bash
bun dev
```

```bash
bun test
```

```bash
bun test:cov
```

```bash
bun lint
```

```bash
bun cy:run
```

```bash
bun cy:open
```

___
## ðŸĪ– Auto-formatting on save:

Inside `/.vscode/settings.json` we set prettier as the default formatter, and also set `editor.codeActionsOnSave` to run:

- **Lint:** `"source.fixAll.eslint"`
- **Format:** `"source.fixAll.format"`

___
## ✅ Checking standards pre-commit:

Using [husky](https://www.npmjs.com/package/husky) we can check all of our style standards to make sure our git commits are up to par. Check those checks out at [`.husky/pre-commit`](.husky/pre-commit)