Skip to content

next.js(app router) boilerplate w/ prettier, eslint, husky, lint-staged, storybook, jest and cypress

Notifications You must be signed in to change notification settings

J3m3/next-app-general-boilerplate

Repository files navigation

next-app-general-boilerplate

A boilerplate wrapping create-next-app with general FE environment setup.

This boilerplate provides integrated setup for...

CSS Variations

Want to use SCSS for styling? Refer to the main branch. It also contains stylelint for linting(allow kebap-case & BEM), and clsx & cva utilities for component styling.

Want to use Vanilla-extract for styling? Refer to the vanilla-extract branch.

Getting Started

  1. Clone this repository:
git clone --depth=1 git@github.com:J3m3/next-app-general-boilerplate.git your-project-name
cd your-project-name
  1. Install all dependencies:
pnpm install
  1. Run the local development server:
pnpm dev

Note

This boilerplate uses pnpm as a package manager. Here's some "npx" equivalents for pnpm.

# Running executables inside your downloaded dependencies
npx eslint --fix file.ts
pnpm exec eslint --fix file.ts

# Running executable commands in packages you want to download transiently
npx storybook@latest init
pnpm dlx storybook@latest init

Reference

https://stackoverflow.com/questions/75413361/can-i-use-npx-with-pnpm