https://github.com/sandinmyjoints/rollup-plugin-anybar
See the status of rollup or vite builds in macOS menubar via Anybar.
https://github.com/sandinmyjoints/rollup-plugin-anybar
Last synced: 3 months ago
JSON representation
See the status of rollup or vite builds in macOS menubar via Anybar.
- Host: GitHub
- URL: https://github.com/sandinmyjoints/rollup-plugin-anybar
- Owner: sandinmyjoints
- Created: 2025-01-14T20:36:04.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2025-02-11T17:36:41.000Z (4 months ago)
- Last Synced: 2025-02-11T18:37:46.758Z (4 months ago)
- Language: JavaScript
- Size: 59.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# rollup-plugin-anybar
For use with [anybar](https://github.com/tonsky/AnyBar):
> AnyBar is a small indicator for your menubar that does one simple thing: it displays a colored dot. What the dot means and when to change it is up to you.
rollup-plugin-anybar makes the dot:
- green when rollup is watching
- yellow when rollup is making changes
- red when rollup has errored
- hollow when rollup is not watching/runningCompatible with vite, though note that vite has [some limitations](https://vite.dev/guide/api-plugin.html#universal-hooks):
> Output Generation Hooks (except closeBundle) are not called during dev. You
> can think of Vite's dev server as only calling rollup.rollup() without
> calling bundle.generate().So in practice, you only get green and hollow, letting you know whether vite
is watching or not.## Install
``` shell
npm install --save-dev rollup-plugin-anybar
# OR
yarn add -D rollup-plugin-anybar
```## Usage
``` javascript
export default defineConfig({
plugins: [
rollupPluginAnybar({
port: 1738, // optional, default is 1738
host: 'localhost', // optional, default is 'localhost'
}),
]
})
```