- Initialize Vite app
- Setup Tailwind CSS
- Setup ESLint & Prettier
- Setup Vue Router
- Setup Vuex
- Styling
- Vuex usage example
- Vue router usage example
npm init @vitejs/app project-name
npm install -D tailwindcss@latest postcss@latest autoprefixer@latest
npm install --save-dev eslint prettier eslint-plugin-vue eslint-config-prettier
npm install vue-router@4
npm install vuex@next --save
-
.eslintrc.js: module.exports = { extends: [ 'plugin:vue/vue3-essential', 'prettier', ], rules: { // override/add rules settings here, such as: 'vue/no-unused-vars': 'error', }, }
-
.prettierrc.js: module.exports = { semi: false, tabWidth: 4, useTabs: false, printWidth: 80, endOfLine: 'auto', singleQuote: true, trailingComma: 'es5', bracketSpacing: true, arrowParens: 'always', }
- NOTE:-
After cloning the above repository, go to the project folder and install node modules
npm install
This is essentially a fresh install of Vue 3 + Vite, ESLint, Prettier, TailwindCSS, Vue Router & Vuex.