/vue3boilerplate

This is a starting place for creating a Vue3 App with all the freshest hits like Vite, Pinia, Vuetify3, TS and auth

Primary LanguageVue

Vue3 Boilerplate

This is a starting place for creating a Vue3 App with all the freshest hits like Vite, Pinia, Vuetify 3 beta, TS and user auth

Quickstart

# Project setup
npm i

# build and hot-load
npm run dev

# compile and Minify for Production
npm run build

# lint
npm run lint

Notes

Deployment

  • to deploy as a subdir to your website, maybe try "build": "vite build --base=/vue3/" in package.json

To-do

  • provide login and signup
  • implement more robust user management
  • lazy-loading in router/index.ts
  • get knowing about CompositionAPI and OptionsAPI -- check that you're using best practices
  • scss -- maybe? css may be preferred

Done

  • absolute component paths
  • add Vuetify
  • change auth to something more flexible/remove redirect
  • purge the rest of okta
  • make the FeedBar mobile-friendly

Type Support for .vue Imports in TS

If the standalone TypeScript plugin doesn't feel fast enough to you, Volar has also implemented a Take Over Mode that is more performant. You can enable it by the following steps:

  1. Disable the built-in TypeScript Extension
    1. Run Extensions: Show Built-in Extensions from VSCode's command palette
    2. Find TypeScript and JavaScript Language Features, right click and select Disable (Workspace)
  2. Reload the VSCode window by running Developer: Reload Window from the command palette.