Giter Site home page Giter Site logo

frontend-starter's Introduction

Vue 3.x + Quasar 2.x starter template with Vite for Jedlik exams

Take Over Mode

To get Vue SFCs and TypeScript working together, Volar creates a separate TS language service instance patched with Vue-specific support, and uses it in Vue SFCs. At the same time, plain TS files are still handled by VSCode's built-in TS language service, which is why we need TypeScript Vue Plugin to support Vue SFC imports in TS files. This default setup works, but for each project we are running two TS language service instances: one from Volar, one from VSCode's built-in service. This is a bit inefficient and can lead to performance issues in large projects.

Volar provides a feature called "Takeover Mode" to improve performance. In takeover mode, Volar provides support for both Vue and TS files using a single TS language service instance.

Enable Take Over Mode

  1. Disable built-in TypeScript extension:
  • Run Extensions: Show Built-in Extensions command
  • Find "TypeScript and JavaScript Language Features", right click and select: Disable (Workspace)
  1. Reload VSCode (F1 -> Reload Window)

Debug your application

  1. Start build process with Ctrl-Shift-B or "npm run dev" command
  2. Close the borwser if it appears
  3. Start debug mode with F5 key (open debug browser)
  4. Open the page where you want to debug the code
  5. Set some breakpoints before lines in the page's TS code
  6. In the browser cause the process to reach the breakpoint(S)
  7. Examine the variables, continue the execution step by step (F10, F11, or for next breakpont: F5)

Used technologies

Node.js

As an asynchronous event-driven JavaScript runtime, Node.js is designed to build scalable network applications.

Vue.js

Vue.js is an approachable, performant and versatile framework for building web user interfaces.

Vue.js 3 Composition API

Composition API is a set of APIs that allows us to author Vue components using imported functions instead of declaring options.

Vue.js 3 SFC and "script setup"

"script setup" is a compile-time syntactic sugar for using Composition API inside Single File Components (SFCs). It is the recommended syntax if you are using both SFCs and Composition API.

TypeScript

TypeScript is a strongly typed programming language that builds on JavaScript, giving you better tooling at any scale.

Quasar

With Quasar you can build effortlessly build high-performance & high-quality Vue.js 3 user interfaces in record time.

Axios

Axios is a simple promise based HTTP client for the browser and node.js. Axios provides a simple to use library in a small package with a very extensible interface. GitHub

Pinia

Pinia is a store library for Vue, it allows you to share a state across components/pages.

Pinia Pugin Persist

Persist VueJs Pinia state data in sessionStorage or other storages, heavilly influenced by vuex-persistedstate.

Vite

Vite is a build tool that aims to provide a faster and leaner development experience for modern web projects. It consists a dev server that provides rich feature enhancements over native ES modules, for example extremely fast Hot Module Replacement (HMR).

ESlint

ESLint statically analyzes your code to quickly find problems. Many problems ESLint finds can be automatically fixed. Preprocess code, use custom parsers, and write your own rules that work alongside ESLint's built-in rules. You can customize ESLint to work exactly the way you need it for your project.

Prettier

Prettier an opinionated code formatter. Supports many languages, integrates with most editors.

frontend-starter's People

Contributors

nitslaszlo avatar mecsko avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.