Skip to content

proprogrammer2015/swatchercli

Repository files navigation

swatchercli

Instalation

npm install swatchercli

Run command

Help

swatchercli --help

Single run

swatchercli -s -o ./output -p ./src/**

Continuous run

swatchercli -o ./output -p ./src/**

Using js configutaion

swatchercli -c ./path/to/watcher.config.js

Configuration

watcher.config.js

const { Html, Js, Css } = require('any-file-merge');

const ext = '[name].html';
exports.watch = true;
exports.quiet = false;
exports.patterns = [
    './src/components/**'
];
exports.output = './output';
exports.fileName = `${ext}`;
exports.processors = [
    new Html(),
    new Js(),
    new Css()
];

exports.hooks = {
    ready: data => console.log(data),
    error: data => console.log(data),
    change: data => console.log(data),
    delete: data => console.log(data),
    add: data => console.log(data),
    compile: data => console.log(data)
}

Licence MIT

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published