Vue development tools include: 1. Vue CLI; 2. Vue Press; 3. Vuex; 4. Nuxt; 5. Vuetify; 6. Quasar; 7. Storybook; 8. Visual Studio Code; 9. WebStorm etc.
The operating environment of this tutorial: windows7 system, vue2.9.6 version, DELL G3 computer.
In addition to JavaScript, the front-end now also has three frameworks, react, vue, and angular, which are more commonly used in the market. It can be said that these three frameworks have changed the status of the front-end to a great extent, compared to angular. Generally speaking, vue also has rich instructions and is a typical MVC framework. Vue is relatively lightweight.
Currently vue is used by many developers and is becoming more and more popular, so Its ecological environment has also become more complete, and related tools are also abundant. This mainly relies on Vue's learning curve and clear design structure and usage documentation, allowing experienced developers to easily start from other frameworks. Let me introduce to you what are the development tools of Vue?
Vue CLI
In order to facilitate developers to get started quickly, like the strange framework, it provides CLI-like scaffolding tools. VueCLI is a set of Full-featured tools for rapid Vue development. Vue standardizes the tool base in the Vue ecosystem, ensuring that various build tools can be smoothly connected based on intelligent default configurations, so that you can focus on writing applications instead of spending a long time. Time to worry about configuration issues, for example, you can easily integrate plug-ins such as Babel, TypeScript, ESLint, PostCSS, Jest, Mocha, Nightwatch and Cypress into the project.
Vue Press
VuePress is a static website generator driven by Vue. It is a single-page application driven by Vue, Vue Router and webpack. In VuePress, you can Use Markdown to write documents and then generate web pages. Each page generated by VuePress has pre-rendered HTML, so it has very good loading performance and search engine optimization. At the same time, once the page is loaded, Vue will take over the content. , and convert it into a complete single-page application. Other pages will only need to be loaded when the user browses to them.
Vuex
In SPA In the development of single-page components, Vue's vuex and React's React are collectively called the same state management, which can also be called global state management. The simple understanding is that after you define a data in the state, you can use it anywhere in the project. Get and modify in a component, and the modified part can get global response changes. The core of every Vuex application is the Store. The store can be used as a container, containing most of the status of the application.
Nuxt
Nuxt.js is a lightweight application framework based on Vue.js. It can be used to create server-side rendering applications and can also be used as a static site engine to generate Static site application, with features such as elegant code structure layering and hot loading.
Vuetify
Vuetify is currently one of the best UI component libraries based on veu. It provides a large number of components carefully crafted based on Material Design specifications, which can satisfy any application requirements.
Quasar
Quasar is an MIT-licensed Kaiyuan framework based on Vue that can help web developers create responsive websites, PWA, build mobile APPs through Apacha Cordova, and more Platform App Quasar requires developers to write code once and then deploy it as a website, PWA, Mobile APP and Electron App simultaneously using the same code base. Design applications using the most advanced CLI and provide carefully written, very fast Quasar Web components,
Storybook
For the front end, componentization technology It is already a required course, which mainly focuses on react and vue, but I usually have some troubles when developing components, especially public components or third-party components,
It cannot manage components very well. It cannot be clear at a glance when previewing components, nor can it reflect the different states of a component very well.
Enzyme can be used for automated interactive testing, but in many cases it has to be done manually. Test,
When writing the document, the component preview and the document need to be written together, and different states need to be switched,
So, storbook is In order to solve these problems, it can build a powerful development environment for components, mainly providing the following points
Provides a powerful UI component management page, which can be very convenient and clear Group and manage multiple components or different states of a component
In addition to automated interactive testing, manual interactive testing can be easily performed, and component parameters can be dynamically changed to view view changes
You can export the component preview as a static resource, so you can easily view the component's documentation and different views corresponding to different parameters. There are also a series of plug-ins to better help us complete development, testing and optimization. Components work.
The tool enables developers to display them interactively, independently of the main application components, in an isolated development environment without having to worry about application-specific dependencies and requirements. Personnel, designers and many other people are involved in the project.
Visual Studio Code
Visual Studio Code (referred to as "VS Code") is a software that Microsoft officially announced at the Build Developer Conference on April 30, 2015. A cross-platform source code editor for writing modern web and cloud applications on Mac OS X, Windows and Linux that runs on the desktop and is available for Windows, macOS and Linux. It has built-in support for JavaScript, TypeScript, and Node.js, and a rich ecosystem of extensions for other languages (such as C, C#, Java, Python, PHP, Go) and runtimes (such as .NET and Unity).
WebStorm
WebStorm is a JavaScript development tool owned by JetBrains. It has been praised by the majority of Chinese JS developers as "Web front-end development artifact", "the most powerful HTML5 editor", "the most intelligent JavaScript IDE", etc. It has the same origin as IntelliJ IDEA and inherits the functions of the powerful JS part of IntelliJ IDEA.
Related recommendations: "vue.js Tutorial"
The above is the detailed content of What are the vue development tools?. For more information, please follow other related articles on the PHP Chinese website!