noseglid / atom-build

:hammer: Build your project directly from the Atom editor
https://atom.io/packages/build
MIT License
248 stars 97 forks source link

Removal of Build Targets #431

Closed 03k64 closed 8 years ago

03k64 commented 8 years ago

This may or may not be an issue, but should/would it be possible to remove build targets on deletion of all files matching the isEligible() check from a project?

For example, with the build-coffeescript package, if all .coffee and .cson files are deleted from a project then I would expect the build targets in the above package to disappear from those available to me within that project.

Is this something that is currently possible that I need to implement or is it currently not within the capability of the atom-build system?

noseglid commented 8 years ago

Anytime a build provider thinks that the build targets must be updated, it can emit the refresh event (see how it's done in build-gulp). This will remove all the build targets and replace them with a new invocation of settings().