How to use the buntstift.default function in buntstift

To help you get started, we’ve selected a few buntstift examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github thenativeweb / roboter / lib / watchFilesAndExecute.js View on Github external
'use strict';

const buntstift = require('buntstift').default,
      chokidar = require('chokidar');

const noop = require('./noop');

let isCurrentlyExecuting = false;

const watchFilesAndExecute = async function ({ message, files, execute, executeOnStart = false }) {
  if (!message) {
    throw new Error('Message is missing.');
  }
  if (!files) {
    throw new Error('Files are missing.');
  }
  if (!execute) {
    throw new Error('Execute is missing.');
  }