@dot-event/watchman

dot-event watchman operation

Usage no npm install needed!

<script type="module">
  import dotEventWatchman from 'https://cdn.skypack.dev/@dot-event/watchman';
</script>

README

@dot-event/watchman

dot-event watchman operation

watch

npm install -g @dot-event/watchman

Configure package.json:

{
  "operations": {
    "watchman": {
      "triggers": [
        {
          "name": "babel",
          "expression": [
            "anyof",
            ["match", "lib/**/*.js", "wholename"]
          ],
          "command": ["npm", "run", "build"]
        }
      ]
    }
  }
}

Create watchman triggers:

dot-watchman

Remove watchman triggers:

dot-watchman --remove