1.2.0 • Published 4 years ago

watch-then-execute v1.2.0

Weekly downloads
56
License
MIT
Repository
github
Last release
4 years ago

watch-then-execute

Dependency Status devDependency Status Build Status: Linux Build Status: Windows npm version Downloads type-coverage

A CLI tool to execute script after source file changes.

install

yarn global add watch-then-execute

usage

watch-then-execute "src/*.ts" --script "npm run build"

options

keydescription
-e,--excludeexclude files, repeatable
--scriptexecuted script
-h,--helpPrint this message.
-v,--versionPrint the version

API

import { watch } from "watch-then-execute";

watch(["src/*.ts"], [], "npm run build");
watch(["src/*.ts"], ["src/*.d.ts"], "npm run build");

exclude files

watch-then-execute "src/*.ts" --exclude "src/*.d.ts" --script "npm run build"

1.2.0

4 years ago

1.1.4

4 years ago

1.1.3

4 years ago

1.1.2

4 years ago

1.1.1

7 years ago

1.1.0

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago