watch-then-execute
TypeScript icon, indicating that this package has built-in type declarations

1.2.0 • Public • Published

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

key description
-e,--exclude exclude files, repeatable
--script executed script
-h,--help Print this message.
-v,--version Print 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"

Readme

Keywords

none

Package Sidebar

Install

npm i watch-then-execute

Weekly Downloads

16

Version

1.2.0

License

MIT

Unpacked Size

8.1 kB

Total Files

8

Last publish

Collaborators

  • plantain_00