@deg-skeletor/plugin-watch

A Skeletor plugin for running tasks when watched files change

Usage no npm install needed!

<script type="module">
  import degSkeletorPluginWatch from 'https://cdn.skypack.dev/@deg-skeletor/plugin-watch';
</script>

README

skeletor-plugin-watch

Build Status

Config

{
    targets: [
        {
            name: "css",
            paths: "source/css/*.css",
            events: ['add', 'change', 'delete'],
            tasks: [
                {
                    name: "build",
                    subTasks: ["css"]
                }
            ]
        },
        {
            name: "js",
            paths: "source/js/*.js",
            events: ['add', 'change', 'delete'],
            tasks: [
                {
                    name: "build",
                    subTasks: ["js"]
                }
            ]
        }
    ]
}