This is a highly opinionated Nuxt starter template designed to quickly set up a Nuxt 3 application with preconfigured tools and best practices. It includes a variety of features that promote code quality, styling consistency, and modern development practices.
- π₯οΈ Nuxt 3 for server-side rendering, static site generation, and hybrid applications
- π¨ Tailwind CSS integration for rapid UI development
- π§° @vueuse/core and @vueuse/nuxt for seamless Vue composition utilities
- π ESLint and Prettier for code linting and formatting, ensuring code consistency
- πΆ Husky and Lint-staged for automated code linting and formatting on commit
- π Prettier Plugin for Tailwind CSS to enforce consistent class ordering
- π£οΈ Vue Router for advanced routing capabilities
-
Clone the repository:
git clone <your-repo-url> cd <your-repo-folder>
-
Install dependencies:
bun install
-
Start the development server:
bun dev
- π€ @nuxt/fonts: Font management in Nuxt
- πΌοΈ @nuxt/icon: Icon support in Nuxt
- β‘ nuxt: The core Nuxt 3 framework
- π vue: The latest version of Vue.js
- πΊοΈ vue-router: Latest version of Vue Router for flexible routing
- π @antfu/eslint-config: A minimal ESLint configuration that extends popular settings
- π¬οΈ @nuxtjs/tailwindcss: Official Tailwind CSS module for Nuxt 3
- π§Ή eslint, prettier, eslint-config-prettier, eslint-plugin-prettier: For linting and code formatting
- πΆ husky and lint-staged: Automatically run linters on commit
- π¨ prettier-plugin-tailwindcss: Automatically sorts Tailwind classes
This project uses ESLint and Prettier for linting and formatting. It enforces consistent code style and helps avoid errors.
-
Lint:
bunx lint
-
Format:
bunx format
Husky and lint-staged are set up to ensure that any staged files are linted and formatted before they are committed. This ensures that the code in the repository is always clean and follows the defined standards.
After installation, you can start developing your Nuxt 3 application right away. Here are some key directories and files:
pages/
: Add your application views and routescomponents/
: Put your Vue components herelayouts/
: Define your page layoutsassets/
: Store your images, fonts, and other static assetsnuxt.config.ts
: Configure your Nuxt application
You can customize your Tailwind configuration in the tailwind.config.js
file. This allows you to modify the default theme, add new utility classes, and more.
- ESLint configuration is in
eslint.config.js
- Prettier configuration is in
prettier.config.js
- Nuxt configuration is in
nuxt.config.ts
- Tailwind configuration is in
tailwind.config.js
This project is licensed under the MIT License. See the LICENSE file for details.
Contributions, issues, and feature requests are welcome! Feel free to check the issues page.
- Nuxt.js team for the amazing framework
- Tailwind CSS team for the utility-first CSS framework
- VueUse team for the collection of Vue Composition Utilities
Happy coding! π