gr7d / Gow

Watch your files on the gow.

Home Page:https://www.npmjs.com/package/gow

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Gow logo

NPM

Usage

Usage: gow [options]

Options:
    -c, --command     The command that should be executed at start and reload
    -f, --files       Glob pattern of files that should trigger a reload
    -s, --silent      Disable console output
    -d, --delay       Minimum delay between the reloads

The options are getting ignored, if a config file exists.

Examples

# Listen to all JavaScript files within the directory
gow -f "***/*.js"

# Listen to all JSON and TypeScript files within the directory and make sure the TypeScript files are getting compiled on reload
gow -f "***/*.ts" -f "***/*.json" -c "tsc && node ."

Config

gow.config.js

// Default config
module.exports = {
    command: "node .",  
    files: ["***/*"],
    silent: false,
    delay: 1000
}

About

Watch your files on the gow.

https://www.npmjs.com/package/gow

License:GNU Lesser General Public License v3.0


Languages

Language:TypeScript 87.6%Language:JavaScript 12.4%