https://github.com/midnite81/vite-watcher
Vite Watcher is a CLI tool that monitors your Vite project files and automatically triggers rebuilds when changes are detected.
https://github.com/midnite81/vite-watcher
Last synced: 3 months ago
JSON representation
Vite Watcher is a CLI tool that monitors your Vite project files and automatically triggers rebuilds when changes are detected.
- Host: GitHub
- URL: https://github.com/midnite81/vite-watcher
- Owner: midnite81
- Created: 2025-01-13T11:09:35.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2025-01-13T11:11:13.000Z (5 months ago)
- Last Synced: 2025-01-24T01:52:09.458Z (5 months ago)
- Language: JavaScript
- Size: 5.86 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.MD
Awesome Lists containing this project
README
# Vite Watcher
A CLI tool that watches your Vite project files and automatically triggers rebuilds (vite build) when changes are detected.
## Installation
```bash
# Install globally
npm install -g vite-watcher# Or install locally in your project
npm install --save-dev vite-watcher
```## Usage
Navigate to your Vite project directory and run:
```bash
vite-watch
```## Configuration
You can create a `.vitewatchrc.json` file in your project root to customize the behavior:
```json
{
"watchPaths": [
"./src/**/*.js",
"./src/**/*.css"
],
"ignorePaths": [
"**/node_modules/**",
"**/dist/**"
],
"debounceDelay": 500
}
```## Features
- Watches for file changes in your Vite project
- Automatically triggers rebuilds
- Configurable file paths and ignore patterns
- Debounced builds to prevent rapid successive builds
- Clear console output with status indicators