Plugin system for Zenith framework
npm install @zenithbuild/pluginsThe official plugin ecosystem for the Zenith framework.
Zenith is designed to be extensible. The @zenithbuild/plugins package provides the core plugin system and is the home for shared official plugins that enhance the framework's capabilities.
- Extensible Hooks: Tap into different phases of the Zenith lifecycle (build, dev, runtime).
- Official Plugins: A collection of vetted plugins for common tasks (SEO, Analytics, State persistence, etc.).
- Simple API: Focused on ease of use for plugin authors.
``typescript``
export default function myZenithPlugin() {
return {
name: 'my-plugin',
setup(api) {
// Tap into the build process
api.onBuild(() => {
console.log('Zenith is building!');
});
}
}
}
Refer to the Zenith documentation for instructions on how to consume and create plugins.
MIT