0.0.4 • Published 3 years ago

@creamie/watcher v0.0.4

Weekly downloads
3
License
MIT
Repository
-
Last release
3 years ago

Creamie Watcher

Build Status

Become a patreon

Open in Gitpod

Note: This package is only dependant for @creamie/cli. Recommend not to use this for any other purpose.

Usage

To listen html & css file changes in application folder. A boot.js file will be generated under each component folder which contains html & css file contents assigned to a key (key is decided to be a html/css filename for ease).

While development run, changes being done by developer will be captured and loaded in boot.js. Then, our webpack will make use of boot.js to run our application.

Commands

To listen for html & css files change along with booter functionality.

creamie-watch

To load boot.js alone use,

creamie-watch -i

Method usage

    const  CreamieWatcher = require('creamie-watcher');
    // watch for html/css files changes and load those in boot.js
    CreamieWatcher.watch();
    // Load boot.js
    CreamieWatcher.boot();