diff --git a/.gitignore b/.gitignore index 38adffa6..de86b8a6 100644 --- a/.gitignore +++ b/.gitignore @@ -13,6 +13,7 @@ dist dist-ssr coverage *.local +.nuxt /cypress/videos/ /cypress/screenshots/ diff --git a/.nuxt-guide/README.md b/.nuxt-guide/README.md index bd8848ca..c3c37ff2 100644 --- a/.nuxt-guide/README.md +++ b/.nuxt-guide/README.md @@ -2,7 +2,7 @@ This guide will help you integrate your Nuxt.js 3.x application with [Admin One - free Vue 3 Tailwind 3 Admin Dashboard with dark mode](https://github.com/justboil/admin-one-vue-tailwind). -**Please note:** this document is work in progress and Nuxt 3 is in Release Candidate state, so some things can be missing and warnings may occur. +> **Important**: For a working version (so you don't need to go though all the steps below) please check [This Forked Repository](https://github.com/leogargioni/admin-one-nuxt-tailwind-template). Please note it may not be up to date with the latest version. ## Table of contents @@ -12,9 +12,8 @@ This guide will help you integrate your Nuxt.js 3.x application with [Admin One Check [Nuxt installation guide](https://v3.nuxtjs.org/getting-started/quick-start) for more information. -- Run `npx nuxi init sample-app` -- then `cd sample-app` -- and `npm install` +* Run `npx nuxi init sample-app` +* then `cd sample-app` Then, let's install TailwindCSS. Check [Tailwind Nuxt installation guide](https://tailwindcss.com/docs/guides/nuxtjs) for more information. @@ -25,8 +24,8 @@ npm install -D @nuxtjs/tailwindcss @tailwindcss/forms # Install other required packages npm i @mdi/js chart.js numeral -# Install Pinia (official Vuex 5). --legacy-peer-deps is required because of the package dependencies issue -npm install --legacy-peer-deps pinia @pinia/nuxt +# Install Pinia (official Vuex 5). +npm install @pinia/nuxt ``` ### Copy styles, components and scripts @@ -48,11 +47,12 @@ Next, copy these files **from justboil/admin-one-vue-tailwind project** director #### In nuxt.config.ts ```javascript -import { defineNuxtConfig } from 'nuxt' - -// https://v3.nuxtjs.org/api/configuration/nuxt.config +// https://nuxt.com/docs/api/configuration/nuxt-config export default defineNuxtConfig({ - buildModules: ['@pinia/nuxt'], + devtools: { enabled: true }, + modules: [ + '@pinia/nuxt', + ], postcss: { plugins: { tailwindcss: {}, @@ -72,16 +72,18 @@ module.exports = { content: [ './composables/**/*.{js,vue,ts}', './components/**/*.{js,vue,ts}', + './configs/**/*.{js,ts}', './layouts/**/*.vue', './pages/**/*.vue', './plugins/**/*.{js,ts}', + './stores/**/*.{js,ts}', 'app.vue' ] // ... } ``` -#### In App.vue +#### In app.vue ```vue -