This template supports both standard application development and plugin development.
src/: Main application source code.plugins/: Directory for developing plugins.
This project includes a setup script to help you configure the environment for either Project Development or Plugin Development.
Run the setup script:
node .templateScripts/setup.cjs- Project Development: Can remove example plugins and cleanup
main.ts. - Plugin Development: Scaffolds a new plugin in the
plugins/directory and optionally adds it tosrc/main.ts.
Plugins reside in the plugins/ directory. Each plugin should be a folder containing at least:
index.ts: The entry point exporting a Vueinstallfunction.package.json: Plugin metadata.
The template is configured to alias @plugins to the plugins/ directory.
See plugins/example-plugin for a reference implementation.
VS Code + Volar (and disable Vetur).
See Vite Configuration Reference.
npm installnpm run devnpm run buildLint with ESLint
npm run lint