Overview
Lightning is an opinionated collection of packages, utilities, and a set of rules for a Next.js 13.4 project. It includes features such as Next.js 13.4 support, type checking with TypeScript, integration with Tailwind CSS, strict mode for TypeScript and React 18, ESLint linter with NextJS, NextJS Core Web Vitals, Tailwind CSS, and Airbnb configuration, code formatter with Prettier, Git Hooks with Husky, lint-staged for running linters on Git staged files, running tests on pull requests with GitHub Actions, absolute imports using @ prefix, VSCode configuration for debugging, settings, tasks, and extensions for PostCSS, ESLint, Prettier, and TypeScript, fonts optimization with Next/font, and user authentication with providers like Google, Twitter, and GitHub.
Features
- Next.js 13.4 support
- Type checking with TypeScript
- Integration with Tailwind CSS
- Strict Mode for TypeScript and React 18
- Linter with ESLint (default NextJS, NextJS Core Web Vitals, Tailwind CSS, and Airbnb configuration)
- Code Formatter with Prettier
- Git Hooks with Husky
- Lint-staged for running linters on Git staged files
- Running tests on pull requests with GitHub Actions
- Absolute Imports using @ prefix
- VSCode configuration for debugging, settings, tasks, and extensions for PostCSS, ESLint, Prettier, and TypeScript
- Fonts optimization with Next/font
- User authentication with providers like Google, Twitter, and GitHub
Installation
To create an app using Lightning, you can run any of the following three commands and answer the command prompt questions:
npm create lightning-app@latestyarn create lightning-app@latestpnpm create lightning-app@latest
Alternatively, you can run the following command on your local environment:
cp .env.example .env.local
Update the variables in the .env.local file, and then run the app locally in development mode:
npm run dev
Open http://localhost:3000 with your favorite browser to see the project.
Summary
Lightning is a collection of packages, utilities, and rules for Next.js 13.4 projects. It provides various features such as support for Next.js 13.4, TypeScript type checking, integration with Tailwind CSS, and strict mode for TypeScript and React 18. It also includes linter and code formatter tools, Git Hooks for managing Git staged files, tests running on pull requests with GitHub Actions, and user authentication with providers like Google, Twitter, and GitHub. The theme is easy to install and use, with a comprehensive guide for developers.