Skip to content

Instantly share code, notes, and snippets.

View andreyctkn's full-sized avatar
🚨

Andrey M andreyctkn

🚨
View GitHub Profile
@andreyctkn
andreyctkn / example.js
Created January 29, 2019 05:30
NodeShellExecutor
const { watch } = require("chokidar");
const { spawn } = require("child_process");
const { NodeShellExecutor } = require("./shell-executor");
const { OUTPUTS, INPUTS, DIRS } = require("./constants");
const waitForTsBuild = () => {
return new Promise((resolve) => {
const watcher = watch(INPUTS.jsDev).once("add", (path) => {
console.log("waitForTsBuild");
watcher.close();