postcss / postcss-cli

CLI for postcss
Other
836 stars 93 forks source link

Add support for `dir-dependency` messages #383

Closed bradlc closed 3 years ago

bradlc commented 3 years ago

This PR adds support for dir-dependency messages.

Directory dependencies are added to the dependency graph in the same way that files are. Chokidar accepts directories and will watch them recursively. Then, when a file changes we determine the "recompile" list by finding the dependants of each of the files ancestor directories.

Any questions or concerns let me know 👍

coveralls commented 3 years ago

Coverage Status

Coverage decreased (-5.2%) to 76.19% when pulling 57a2ef4c9e68c15a2489ccfb788fb8ed57c96b54 on bradlc:dir-dependency into ab73f3652351a4a7f470aca185badc0a7af4e355 on postcss:master.

bradlc commented 3 years ago

No problem @RyanZim, thanks for taking a look! I have added some tests now 👍