Vite Plugin Uni Pages

screenshot of Vite Plugin Uni Pages

为 Vite 下的 uni-app 提供基于文件系统的路由

Overview:

The @uni-helper/vite-plugin-uni-pages is a tool designed for use on Vite-powered uni-app platforms to provide a file-based routing system. It includes core packages like vite-plugin-uni-pages, volar-service-uni-pages, and pages-json-schema to enhance the routing experience and provide IntelliSense support for route blocks. The plugin allows for the automatic discovery of all pages, making the process more efficient and seamless.

Features:

  • File-Based Routing System: Enables the use of a file-based routing system on Vite-powered uni-app platforms.
  • IntelliSense Support: Provides IntelliSense support for blocks to enhance the developer experience.
  • Global Attributes Definition: Allows the definition of global attributes in pages.config files using syntax similar to #ifdef H5.
eslint
Eslint

ESLint is a linter for JavaScript that analyzes code to detect and report on potential problems and errors, as well as enforce consistent code style and best practices, helping developers to write cleaner, more maintainable code.

typescript
Typescript

TypeScript is a superset of JavaScript, providing optional static typing, classes, interfaces, and other features that help developers write more maintainable and scalable code. TypeScript's static typing system can catch errors at compile-time, making it easier to build and maintain large applications.